convectiondiffusionequation2d.h

Go to the documentation of this file.
00001 #ifndef __ConvectionDiffusionEquation_h
00002 #define __ConvectionDiffusionEquation_h
00003 
00004 #include "equation.h"
00005 #include "paramfile.h"
00006 
00007 /*---------------------------------------------------*/
00008 
00009 namespace Gascoigne{
00010 
00011 class ConvectionDiffusionEquation2d : public virtual Equation
00012 {
00013 protected:
00014 
00015   double _visc, _bx, _by;
00016 
00017   double betax() const {return _bx;}
00018   double betay() const {return _by;}
00019   double Convection(const TestFunction& N) const;
00020 
00021 public:
00022 
00023   ConvectionDiffusionEquation2d(const ParamFile* paramfile);
00024   ~ConvectionDiffusionEquation2d() {}
00025   void SetTimePattern(TimePattern& P) const;
00026 
00027   std::string GetName() const {return "ConvectionDiffusionEquation";}
00028 
00029   int  GetNcomp()    const { return 1;}
00030 
00031   void OperatorStrong(DoubleVector& b, const FemFunction& U) const;
00032 
00033   void point(double h, const FemFunction& U, FemData& Q, 
00034              const Vertex2d& v) const {}
00035 
00036   void Form(VectorIterator b, const FemFunction& U, 
00037             const TestFunction& N) const;
00038 
00039   void Matrix(EntryMatrix& A, const FemFunction& U, 
00040               const TestFunction& M, const TestFunction& N) const;
00041 };
00042 }
00043 /*---------------------------------------------------*/
00044 
00045 #endif

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