Chombo + EB + MF  3.2
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
MOLMappedPhysics Class Reference

#include <MOLMappedPhysics.H>

Inheritance diagram for MOLMappedPhysics:
Inheritance graph
[legend]

Public Member Functions

 MOLMappedPhysics ()
 Constructor. More...
 
virtual ~MOLMappedPhysics ()
 Destructor. More...
 
virtual void copyTo (MOLMappedPhysics *a_newMOLMP) const
 Copy the data from us into a ptr of the same (base) type. More...
 
virtual void setCurrentCoordSys (const NewCoordSys *a_coordSys)
 Set the current coordinate system (default implementation - do nothing) More...
 
virtual void setCurrentTime (const Real &a_currentTime)
 Set the current time (default implementation - do nothing) More...
 
virtual void primBC (FArrayBox &a_WGdnv, const FArrayBox &a_WLeft, const FArrayBox &a_WRight, const FArrayBox &a_W, const Real &a_time, const int &a_dir)
 Set face-averaged primitive state on boundary faces. More...
 
virtual void setUnitNormalBasisPtr (const FluxBox *const a_unitNormalBasisPtr)
 
virtual void mappedArtVisc (FluxBox &a_NtF, const FArrayBox &a_U, const FluxBox &a_N, const FArrayBox &a_J, const Real &a_alpha, const Real &a_currentTime, const Box &a_box)
 
virtual void getAux (FArrayBox &a_auxFab, const FArrayBox &a_UFab)
 
virtual Vector< string > auxNames ()
 
- Public Member Functions inherited from MOLPhysics
 MOLPhysics ()
 Constructor. More...
 
virtual ~MOLPhysics ()
 Destructor. More...
 
PhysIBCgetPhysIBC () const
 Get the initial and boundary condition object. More...
 
void setPhysIBC (PhysIBC *a_bc)
 Set the initial and boundary condition object. More...
 
virtual void define (const ProblemDomain &a_domain, const Real &a_dx)
 Define the object. More...
 
virtual void setCurrentBox (const Box &a_currentBox)
 Set the current box (default implementation - do nothing) More...
 
virtual bool fourthOrderArtificialViscosityIsDefined () const
 Returns true if 4th-order artificial viscosity is defined. More...
 
virtual void setFourthOrderArtificialViscosityParameter (const Real &M0sq)
 Defines fourth-order artifical viscosity strong shock threshold. More...
 
virtual Real getFourthOrderArtificialViscosityParameter () const
 Returns fourth-order artifical viscosity strong shock threshold. More...
 
virtual Real getMaxWaveSpeed (const FArrayBox &a_U, const Box &a_box)=0
 Compute the maximum wave speed. More...
 
virtual void soundSpeed (FArrayBox &a_speed, const FArrayBox &a_U, const Box &a_box)
 Compute the maximum wave speed. More...
 
virtual MOLPhysicsnew_molPhysics () const =0
 Object factory for this class. More...
 
virtual void copyTo (MOLPhysics *a_mol) const
 Copy our values into one of us. More...
 
virtual int numConserved () const =0
 Number of conserved variables. More...
 
virtual Vector< string > stateNames ()=0
 Names of the conserved variables. More...
 
virtual int numFluxes () const =0
 Number of flux variables. More...
 
virtual void getFlux (FArrayBox &a_flux, const FArrayBox &a_WHalf, const int &a_dir, const Box &a_box)
 Compute the fluxes from primitive variable values on a face. More...
 
virtual bool isDefined () const
 Is the object completely defined. More...
 
virtual int numPrimitives () const =0
 Number of primitive variables. More...
 
virtual void riemann (FArrayBox &a_WStar, const FArrayBox &a_WLeft, const FArrayBox &a_WRight, const FArrayBox &a_W, const Real &a_time, const int &a_dir, const Box &a_box)=0
 Compute the solution to the Riemann problem. More...
 
virtual void consToPrim (FArrayBox &a_W, const FArrayBox &a_U, const Box &a_box)=0
 Compute primitive variables from conserved variables. More...
 
virtual Interval velocityInterval () const =0
 Interval within the primitive variables corresponding to the velocities. More...
 
virtual Interval vectorFluxInterval () const
 Interval within the flux variables corresponding to vector flux. More...
 
virtual int pressureIndex ()=0
 Component index within the primitive variables of the pressure. More...
 
virtual Real smallPressure ()=0
 Used to limit the absolute value of a "pressure" difference. More...
 
virtual int bulkModulusIndex ()=0
 Component index within the primitive variables of the bulk modulus. More...
 
virtual int densityIndex ()
 Component index within the primitive variables of the density. More...
 
virtual void artVisc (FArrayBox &a_F, const FArrayBox &a_U, const Real &a_artificialViscosity, const Real &a_currentTime, const int &a_dir, const Box &a_box)
 Compute the artificial viscosity contribution to the flux. More...
 
virtual void expressions (HDF5HeaderData &a_holder) const
 

Protected Attributes

Real m_time
 
NewFourthOrderCoordSysm_coordSys
 
bool m_haveUnitNormalBasis
 
FluxBoxm_unitNormalBasisPtr
 
- Protected Attributes inherited from MOLPhysics
bool m_isDefined
 
ProblemDomain m_domain
 
Real m_dx
 
MOLUtilities m_util
 
bool m_useFourthOrderArtificialViscosity
 
Real m_M0sq
 
PhysIBCm_bc
 
bool m_isBCSet
 

Private Member Functions

MOLMappedPhysicsoperator= (const MOLMappedPhysics &a_input)
 
 MOLMappedPhysics (const MOLMappedPhysics &a_input)
 

Detailed Description

Extends the base class MOLPhysics to include awareness of mapped grids

Constructor & Destructor Documentation

MOLMappedPhysics::MOLMappedPhysics ( )
explicit

Constructor.

virtual MOLMappedPhysics::~MOLMappedPhysics ( )
virtual

Destructor.

MOLMappedPhysics::MOLMappedPhysics ( const MOLMappedPhysics a_input)
private

Member Function Documentation

virtual void MOLMappedPhysics::copyTo ( MOLMappedPhysics a_newMOLMP) const
virtual

Copy the data from us into a ptr of the same (base) type.

virtual void MOLMappedPhysics::setCurrentCoordSys ( const NewCoordSys a_coordSys)
virtual

Set the current coordinate system (default implementation - do nothing)

virtual void MOLMappedPhysics::setCurrentTime ( const Real a_currentTime)
virtual

Set the current time (default implementation - do nothing)

virtual void MOLMappedPhysics::primBC ( FArrayBox a_WGdnv,
const FArrayBox a_WLeft,
const FArrayBox a_WRight,
const FArrayBox a_W,
const Real a_time,
const int &  a_dir 
)
virtual

Set face-averaged primitive state on boundary faces.

Default implementation calls m_bc->primBC. Need to call setUnitNormalBasisPtr() before this.

virtual void MOLMappedPhysics::setUnitNormalBasisPtr ( const FluxBox *const  a_unitNormalBasisPtr)
virtual
virtual void MOLMappedPhysics::mappedArtVisc ( FluxBox a_NtF,
const FArrayBox a_U,
const FluxBox a_N,
const FArrayBox a_J,
const Real a_alpha,
const Real a_currentTime,
const Box a_box 
)
virtual
virtual void MOLMappedPhysics::getAux ( FArrayBox a_auxFab,
const FArrayBox a_UFab 
)
virtual
virtual Vector<string> MOLMappedPhysics::auxNames ( )
virtual
MOLMappedPhysics& MOLMappedPhysics::operator= ( const MOLMappedPhysics a_input)
private

Member Data Documentation

Real MOLMappedPhysics::m_time
protected
NewFourthOrderCoordSys* MOLMappedPhysics::m_coordSys
protected
bool MOLMappedPhysics::m_haveUnitNormalBasis
protected
FluxBox* MOLMappedPhysics::m_unitNormalBasisPtr
protected

The documentation for this class was generated from the following file: