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

PatchIdealMHD.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_IDEAL_MHD_H_
00029 #define _PATCH_IDEAL_MHD_H_
00030 
00031 #include "PatchGodunov.H"
00032 #include "PatchGodunovF_F.H"
00033 
00035 
00037 class PatchIdealMHD : public PatchGodunov
00038 {
00039 public:
00041 
00043   PatchIdealMHD();
00044 
00046 
00050   virtual PatchGodunov* new_patchGodunov() const;
00051 
00053 
00055   virtual Real getMaxWaveSpeed(const FArrayBox& a_U,
00056                                const Box&       a_box);
00057 
00059 
00062   virtual int numConserved();
00063 
00065 
00068   virtual Vector<string> stateNames();
00069 
00071 
00074   virtual Vector<string> plotNames();
00075 
00077 
00082   virtual int numFluxes();
00083 
00085 
00087   virtual void plottingVars(FArrayBox&       a_W,
00088                           const FArrayBox& a_U,
00089                           const Box&       a_box);
00090 
00091   virtual void correctState(FArrayBox&       a_U,
00092                             FArrayBox&       a_phi,
00093                             FArrayBox&       a_rhs,
00094                             FArrayBox       a_flux[CH_SPACEDIM],
00095                             const Real&     a_dt,
00096                             const Box&      a_Box);
00097 
00098 
00099 
00100 protected:
00102 
00107   virtual int numPrimitives();
00108 
00110 
00116   virtual int numSlopes();
00117 
00119 
00121   virtual void consToPrim(FArrayBox&       a_W,
00122                           const FArrayBox& a_U,
00123                           const Box&       a_box);
00124 
00126 
00128   virtual void primToCons(FArrayBox&       a_U,
00129                           const FArrayBox& a_W,
00130                           const Box&       a_box);
00131 
00133 
00138   virtual void normalPred(FArrayBox&       a_WMinus,
00139                           FArrayBox&       a_WPlus,
00140                           const FArrayBox& a_W,
00141                           const FArrayBox& a_dW,
00142                           const Real&      a_scale,
00143                           const int&       a_dir,
00144                           const Box&       a_box);
00145 
00147 
00151   virtual void riemann(FArrayBox&       a_F,
00152                        const FArrayBox& a_WLeft,
00153                        const FArrayBox& a_WRight,
00154                        const int&       a_dir,
00155                        const Box&       a_box);
00156 
00158 
00163   virtual void updatePrim(FArrayBox&       a_WMinus,
00164                           FArrayBox&       a_WPlus,
00165                           const FArrayBox& a_F,
00166                           const Real&      a_scale,
00167                           const int&       a_dir,
00168                           const Box&       a_box);
00169 
00171 
00177   virtual void updateCons(FArrayBox&       a_U,
00178                           const FArrayBox& a_F,
00179                           const Real&      a_scale,
00180                           const int&       a_dir,
00181                           const Box&       a_box);
00182 
00183   virtual void updateConsFinal(FArrayBox&       a_U,
00184                           const FArrayBox& a_F,
00185                           const Real&      a_scale,
00186                           const int&       a_dir,
00187                           const Box&       a_box);
00188 
00189   // RS added 06/10/02
00190   virtual void postUpdateCons(FArrayBox&       a_U,
00191                               FArrayBox&       a_rhs,
00192                               const FArrayBox& a_Uold,
00193                               const FArrayBox a_F[CH_SPACEDIM],
00194                               const Real&      a_dt,
00195                               const Real&      a_dx,
00196                               const Box&       a_box);
00197 
00199 
00204   virtual Interval velocityInterval();
00205 
00207 
00211   virtual int pressureIndex();
00212 
00214 
00219   virtual int bulkModulusIndex();
00220 };
00221 
00222 #endif

Generated on Fri Jul 2 17:53:43 2004 for Chombo by doxygen 1.3.2