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

PatchAdvection.H

Go to the documentation of this file.
00001 /* _______              __
00002   / ___/ /  ___  __ _  / /  ___
00003  / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00004  \___/_//_/\___/_/_/_/_.__/\___/
00005 */
00006 //
00007 // This software is copyright (C) by the Lawrence Berkeley
00008 // National Laboratory.  Permission is granted to reproduce
00009 // this software for non-commercial purposes provided that
00010 // this notice is left intact.
00011 //
00012 // It is acknowledged that the U.S. Government has rights to
00013 // this software under Contract DE-AC03-765F00098 between
00014 // the U.S.  Department of Energy and the University of
00015 // California.
00016 //
00017 // This software is provided as a professional and academic
00018 // contribution for joint exchange. Thus it is experimental,
00019 // is provided ``as is'', with no warranties of any kind
00020 // whatsoever, no support, no promise of updates, or printed
00021 // documentation. By using this software, you acknowledge
00022 // that the Lawrence Berkeley National Laboratory and
00023 // Regents of the University of California shall have no
00024 // liability with respect to the infringement of other
00025 // copyrights by any part of this software.
00026 //
00027 
00028 #ifndef _PATCH_ADVECTION_H_
00029 #define _PATCH_ADVECTION_H_
00030 
00031 #include "PatchGodunov.H"
00032 #include "FluxBox.H"
00033 
00035 
00037 class PatchAdvection : public PatchGodunov
00038 {
00039 public:
00041 
00043   PatchAdvection();
00044 
00046 
00050   virtual PatchGodunov* new_patchGodunov() const;
00051   
00052 
00054 
00066   //virtual void computeFluxes(FArrayBox&       a_U,
00067   //                         FArrayBox        a_F[CH_SPACEDIM],
00068   //                         const FArrayBox& a_S,
00069   //                         const Real&      a_dt,
00070   //                         const Box&       a_box);
00071   
00072 
00074 
00076   virtual Real getMaxWaveSpeed(const FArrayBox& a_U,
00077                                const Box&       a_box);
00078 
00080 
00083   virtual int numConserved();
00084 
00086 
00089   virtual Vector<string> stateNames();
00090 
00092 
00097   virtual int numFluxes();
00098 
00100   void setAdvVelPtr(FluxBox* a_advVelPtr);
00101 
00103   const FluxBox* advectionVelPtr() const;
00104   
00106   void setCellVelPtr(FArrayBox* a_cellVelPtr);
00107 
00109   const FArrayBox* cellVelPtr() const;
00110 
00112 
00115   virtual void setNumVar(int a_numVar);
00116   
00117 
00118 protected:
00120 
00125   virtual int numPrimitives();
00126 
00128 
00134   virtual int numSlopes();
00135 
00136 
00138 
00140   virtual void consToPrim(FArrayBox&       a_W,
00141                           const FArrayBox& a_U,
00142                           const Box&       a_box);
00143 
00145 
00147   virtual void primToCons(FArrayBox&       a_U,
00148                           const FArrayBox& a_W,
00149                           const Box&       a_box);
00150 
00152 
00157   virtual void normalPred(FArrayBox&       a_WMinus,
00158                           FArrayBox&       a_WPlus,
00159                           const FArrayBox& a_W,
00160                           const FArrayBox& a_dW,
00161                           const Real&      a_scale,
00162                           const int&       a_dir,
00163                           const Box&       a_box);
00164 
00166 
00168   virtual void incrementWithSource(FArrayBox&       a_W,
00169                                    const FArrayBox& a_S,
00170                                    const Real&      a_scale,
00171                                    const Box&       a_box);
00172 
00174 
00178   virtual void riemann(FArrayBox&       a_F,
00179                        const FArrayBox& a_WLeft,
00180                        const FArrayBox& a_WRight,
00181                        const int&       a_dir,
00182                        const Box&       a_box);
00183 
00185 
00190   virtual void updatePrim(FArrayBox&       a_WMinus,
00191                           FArrayBox&       a_WPlus,
00192                           const FArrayBox& a_F,
00193                           const Real&      a_scale,
00194                           const int&       a_dir,
00195                           const Box&       a_box);
00196 
00198 
00204   virtual void updateCons(FArrayBox&       a_U,
00205                           const FArrayBox& a_F,
00206                           const Real&      a_scale,
00207                           const int&       a_dir,
00208                           const Box&       a_box);
00209   
00210 
00212 
00218   virtual void finalUpdate(FArrayBox&       a_U,
00219                            const FArrayBox& a_F,
00220                            const Real&      a_scale,
00221                            const int&       a_dir,
00222                            const Box&       a_box);
00223 
00224 
00225 
00226 
00228 
00233   virtual Interval velocityInterval();
00234 
00236 
00240   virtual int pressureIndex();
00241 
00243 
00248   virtual int bulkModulusIndex();
00249 
00251   FluxBox* m_advVelPtr;
00252 
00254   FArrayBox* m_cellVelPtr;
00255 
00257 
00260   int m_numCons;
00261   
00263   int m_numPrim;
00264 
00266   int m_numFlux;
00267 
00269   int m_numSlope;
00270 
00271 };
00272 
00273 #endif
00274 
00275 
00276 
00277 
00278 
00279 
00280 
00281 
00282 

Generated on Wed Jun 2 13:53:35 2004 for Chombo&INSwithParticles by doxygen 1.3.2