constantboundaryfunctional.h

Go to the documentation of this file.
00001 #ifndef  __ConstantBoundaryFunctional_h
00002 #define  __ConstantBoundaryFunctional_h
00003 
00004 
00005 #include  "boundaryfunctional.h"
00006 
00007 /*-----------------------------------------*/
00008 
00009 
00010 namespace Gascoigne
00011 {
00012 class ConstantBoundaryFunctional : public BoundaryFunctional
00013 {
00014 protected:
00015 
00016   int              comp;
00017   std::set<int>    colors;
00018   double           value;
00019 
00020 public:
00021 
00022 
00023   ConstantBoundaryFunctional();
00024   ConstantBoundaryFunctional(const std::vector<std::string>& args);
00025   ~ConstantBoundaryFunctional();
00026   void Construct(const std::vector<std::string>& args);
00027   
00028   std::string GetName() const {return "ConstantBoundaryFunctional";}
00029 
00030   std::set<int> GetColors() const {return colors;}
00031 
00032   void AddColor(int    c) {colors.insert(c);}
00033   void SetComp (int    c) {comp =c;}
00034   void SetValue(double v) {value=v;}
00035 
00036   double J(const FemFunction& U, const Vertex2d& v) const;
00037 
00038 };
00039 }
00040 
00041 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7