Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Regulator.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __REGULATOR_H
00005 #define __REGULATOR_H
00006 
00007 #include <dolfin/constants.h>
00008 
00009 namespace dolfin {
00010 
00012 
00013   class Regulator {
00014   public:
00015     
00017     Regulator();
00018 
00020     Regulator(real k);
00021 
00023     ~Regulator();
00024 
00026     void init(real k);
00027 
00029     void update(real k, real kmax, bool kfixed);
00030 
00032     void update(real kmax);
00033     
00035     real timestep() const;
00036 
00037   private:
00038 
00039     real k;
00040 
00041   };
00042 
00043 }
00044 
00045 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.