Main Page   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 
00076   virtual int numFluxes();
00077 
00078 protected:
00080 
00085   virtual int numPrimitives();
00086 
00088 
00094   virtual int numSlopes();
00095 
00097 
00099   virtual void consToPrim(FArrayBox&       a_W,
00100                           const FArrayBox& a_U,
00101                           const Box&       a_box);
00102 
00104 
00106   virtual void primToCons(FArrayBox&       a_U,
00107                           const FArrayBox& a_W,
00108                           const Box&       a_box);
00109 
00111 
00116   virtual void normalPred(FArrayBox&       a_WMinus,
00117                           FArrayBox&       a_WPlus,
00118                           const FArrayBox& a_W,
00119                           const FArrayBox& a_dW,
00120                           const Real&      a_scale,
00121                           const int&       a_dir,
00122                           const Box&       a_box);
00123 
00125 
00129   virtual void riemann(FArrayBox&       a_F,
00130                        const FArrayBox& a_WLeft,
00131                        const FArrayBox& a_WRight,
00132                        const int&       a_dir,
00133                        const Box&       a_box);
00134 
00136 
00141   virtual void updatePrim(FArrayBox&       a_WMinus,
00142                           FArrayBox&       a_WPlus,
00143                           const FArrayBox& a_F,
00144                           const Real&      a_scale,
00145                           const int&       a_dir,
00146                           const Box&       a_box);
00147 
00149 
00155   virtual void updateCons(FArrayBox&       a_U,
00156                           const FArrayBox& a_F,
00157                           const Real&      a_scale,
00158                           const int&       a_dir,
00159                           const Box&       a_box);
00160 
00161   // RS added 06/10/02
00162   virtual void postUpdateCons(FArrayBox&       a_U,
00163                           const FArrayBox& a_Uold,
00164                           const Real&      a_dt,
00165                           const Real&      a_dx,
00166                           const Box&       a_box);
00167 
00169 
00174   virtual Interval velocityInterval();
00175 
00177 
00181   virtual int pressureIndex();
00182 
00184 
00189   virtual int bulkModulusIndex();
00190 };
00191 
00192 #endif

Generated on Tue Jul 2 10:42:20 2002 for Chombo by doxygen1.2.16