lpsstabilization.h

Go to the documentation of this file.
00001 #ifndef __LpsStabilization_h
00002 #define __LpsStabilization_h
00003 
00004 #include  "stabilization.h"
00005 
00006 /*-------------------------------------------*/
00007 
00008 namespace Gascoigne
00009 {
00010 class LpsStabilization : public Stabilization
00011 {
00012  protected:
00013 
00014   double _delta, _tau;
00015   nvector<double> _sdelta;
00016 
00017   void NavierStokes(double h, double visc);
00018 
00019  public:
00020 
00021   LpsStabilization();
00022 
00023   double delta0, sdelta0, tau0;
00024 
00025   double&  tau()      { return _tau;}
00026   double   tau()      const { return _tau;}
00027   double&  delta()      { return _delta;}
00028   double  delta()      const { return _delta;}
00029   double  delta(int i) const { return _sdelta[i];}
00030   void BasicInit(int n);
00031   void ReInit(double h, double visc, double u, double v)
00032     {
00033       norm(u,v);
00034       NavierStokes(h,visc);
00035     };
00036   void ReInit(double h, double visc, double u, double v, double w)
00037     {
00038       norm(u,v,w);
00039       NavierStokes(h,visc);
00040     };
00041   void ConvectionDiffusion(double visc);
00042   void ConvectionDiffusion(const nvector<double>& visc);
00043 };
00044 }
00045 
00046 /*-------------------------------------------*/
00047 
00048 #endif

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