AMRLevelPolytropicGas Class Reference

#include <AMRLevelPolytropicGas.H>

Inheritance diagram for AMRLevelPolytropicGas:

Inheritance graph
[legend]

List of all members.


Detailed Description

AMR Godunov.

Public Member Functions

 AMRLevelPolytropicGas ()
 Constructor.
virtual ~AMRLevelPolytropicGas ()
 Destructor.
void defineParams (const Real &a_cfl, const Real &a_domainLength, const int &a_verbosity, const Real &a_refineThresh, const int &a_tagBufferSize, const Real &a_initialDtMultiplier, const GodunovPhysics *const a_godunovPhysics, const int &a_normalPredOrder, const bool &a_useFourthOrderSlopes, const bool &a_usePrimLimiting, const bool &a_useCharLimiting, const bool &a_useFlattening, const bool &a_useArtificialViscosity, const Real &a_artificialViscosity, const bool &a_useSourceTerm, const Real &a_sourceTermScaling, const bool &a_highOrderLimiter)
 Define the parameters the object needs.
virtual void define (AMRLevel *a_coarserLevelPtr, const Box &a_problemDomain, int a_level, int a_refRatio)
 This instance should never get called - historical.
virtual void define (AMRLevel *a_coarserLevelPtr, const ProblemDomain &a_problemDomain, int a_level, int a_refRatio)
 Define new AMRLevelPolytropicGas.
virtual Real advance ()
 Advance by one timestep.
virtual void postTimeStep ()
 Things to do after a timestep.
virtual void tagCells (IntVectSet &a_tags)
 Create tags for regridding.
virtual void tagCellsInit (IntVectSet &a_tags)
 Create tags at initialization.
virtual void regrid (const Vector< Box > &a_newGrids)
 Set up data on this level after regridding.
virtual void initialGrid (const Vector< Box > &a_newGrids)
 Initialize grids.
virtual void initialData ()
 Initialize data.
virtual void postInitialize ()
 Things to do after initialization.
virtual void writeCheckpointHeader (HDF5Handle &a_handle) const
 Write checkpoint header.
virtual void writeCheckpointLevel (HDF5Handle &a_handle) const
 Write checkpoint data for this level.
virtual void readCheckpointHeader (HDF5Handle &a_handle)
 Read checkpoint header.
virtual void readCheckpointLevel (HDF5Handle &a_handle)
 Read checkpoint data for this level.
virtual void writePlotHeader (HDF5Handle &a_handle) const
 Write plotfile header.
virtual void writePlotLevel (HDF5Handle &a_handle) const
 Write plotfile data for this level.
virtual Real computeDt ()
 Returns the dt computed earlier for this level.
virtual Real computeInitialDt ()
 Compute dt using initial data.
const LevelData< FArrayBox > & getStateNew () const
const LevelData< FArrayBox > & getStateOld () const
bool allDefined () const

Protected Member Functions

DisjointBoxLayout loadBalance (const Vector< Box > &a_grids)
void levelSetup ()
AMRLevelPolytropicGasgetCoarserLevel () const
AMRLevelPolytropicGasgetFinerLevel () const

Protected Attributes

LevelData< FArrayBoxm_UOld
LevelData< FArrayBoxm_UNew
Real m_cfl
Real m_dx
FineInterp m_fineInterp
CoarseAverage m_coarseAverage
Real m_dtNew
int m_numStates
Vector< string > m_stateNames
int m_numGhost
Real m_domainLength
LevelGodunov m_levelGodunov
LevelFluxRegister m_fluxRegister
GodunovPhysicsm_gdnvPhysics
int m_normalPredOrder
bool m_useFourthOrderSlopes
bool m_usePrimLimiting
bool m_useCharLimiting
bool m_useFlattening
bool m_useArtificialViscosity
Real m_artificialViscosity
bool m_useSourceTerm
Real m_sourceTermScaling
bool m_highOrderLimiter
Real m_refineThresh
int m_tagBufferSize
bool m_hasCoarser
bool m_hasFiner
DisjointBoxLayout m_grids
bool m_paramsDefined

Private Member Functions

void operator= (const AMRLevelPolytropicGas &)
 AMRLevelPolytropicGas (const AMRLevelPolytropicGas &)

Constructor & Destructor Documentation

AMRLevelPolytropicGas::AMRLevelPolytropicGas (  ) 

Constructor.

virtual AMRLevelPolytropicGas::~AMRLevelPolytropicGas (  )  [virtual]

Destructor.

AMRLevelPolytropicGas::AMRLevelPolytropicGas ( const AMRLevelPolytropicGas  )  [private]


Member Function Documentation

void AMRLevelPolytropicGas::defineParams ( const Real a_cfl,
const Real a_domainLength,
const int &  a_verbosity,
const Real a_refineThresh,
const int &  a_tagBufferSize,
const Real a_initialDtMultiplier,
const GodunovPhysics *const   a_godunovPhysics,
const int &  a_normalPredOrder,
const bool &  a_useFourthOrderSlopes,
const bool &  a_usePrimLimiting,
const bool &  a_useCharLimiting,
const bool &  a_useFlattening,
const bool &  a_useArtificialViscosity,
const Real a_artificialViscosity,
const bool &  a_useSourceTerm,
const Real a_sourceTermScaling,
const bool &  a_highOrderLimiter 
)

Define the parameters the object needs.

Parameters:
a_cfl  CFL number
a_domainLength  physical dimension of the longest side of the domain
a_verbosity  verbosity level
a_refineThresh  undivided gradient size over which a cell will be tagged for refinement
a_tagBufferSize  number of buffer cells around each tagged cell that will also be tagged
a_initialDtMultiplier  CFL number at beginning of calculation
a_godunovPhysics  physics class
a_normalPredOrder  order of the normal predictor: 1 for PLM, 2 for PPM
a_useFourthOrderSlopes  whether to use 4th-order slopes
a_usePrimLimiting  whether to apply slope limiting to primitive variables
a_useCharLimiting  whether to apply slope limiting to characteristic variables
a_useFlattening  whether to apply slope flattening
a_useArtificialViscosity  whether to apply artificial viscosity
a_artificialViscosity  artificial viscosity coefficient
a_useSourceTerm  whether to apply source term
a_sourceTermScaling  scaling of source term
a_highOrderLimiter  whether to apply 4th-order limiter

virtual void AMRLevelPolytropicGas::define ( AMRLevel a_coarserLevelPtr,
const Box a_problemDomain,
int  a_level,
int  a_refRatio 
) [virtual]

This instance should never get called - historical.

Reimplemented from AMRLevel.

virtual void AMRLevelPolytropicGas::define ( AMRLevel a_coarserLevelPtr,
const ProblemDomain a_problemDomain,
int  a_level,
int  a_refRatio 
) [virtual]

Define new AMRLevelPolytropicGas.

Reimplemented from AMRLevel.

virtual Real AMRLevelPolytropicGas::advance (  )  [virtual]

Advance by one timestep.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::postTimeStep (  )  [virtual]

Things to do after a timestep.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::tagCells ( IntVectSet a_tags  )  [virtual]

Create tags for regridding.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::tagCellsInit ( IntVectSet a_tags  )  [virtual]

Create tags at initialization.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::regrid ( const Vector< Box > &  a_newGrids  )  [virtual]

Set up data on this level after regridding.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::initialGrid ( const Vector< Box > &  a_newGrids  )  [virtual]

Initialize grids.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::initialData (  )  [virtual]

Initialize data.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::postInitialize (  )  [virtual]

Things to do after initialization.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::writeCheckpointHeader ( HDF5Handle a_handle  )  const [virtual]

Write checkpoint header.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::writeCheckpointLevel ( HDF5Handle a_handle  )  const [virtual]

Write checkpoint data for this level.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::readCheckpointHeader ( HDF5Handle a_handle  )  [virtual]

Read checkpoint header.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::readCheckpointLevel ( HDF5Handle a_handle  )  [virtual]

Read checkpoint data for this level.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::writePlotHeader ( HDF5Handle a_handle  )  const [virtual]

Write plotfile header.

Implements AMRLevel.

virtual void AMRLevelPolytropicGas::writePlotLevel ( HDF5Handle a_handle  )  const [virtual]

Write plotfile data for this level.

Implements AMRLevel.

virtual Real AMRLevelPolytropicGas::computeDt (  )  [virtual]

Returns the dt computed earlier for this level.

Implements AMRLevel.

virtual Real AMRLevelPolytropicGas::computeInitialDt (  )  [virtual]

Compute dt using initial data.

Implements AMRLevel.

const LevelData<FArrayBox>& AMRLevelPolytropicGas::getStateNew (  )  const

const LevelData<FArrayBox>& AMRLevelPolytropicGas::getStateOld (  )  const

bool AMRLevelPolytropicGas::allDefined (  )  const

DisjointBoxLayout AMRLevelPolytropicGas::loadBalance ( const Vector< Box > &  a_grids  )  [protected]

void AMRLevelPolytropicGas::levelSetup (  )  [protected]

AMRLevelPolytropicGas* AMRLevelPolytropicGas::getCoarserLevel (  )  const [protected]

AMRLevelPolytropicGas* AMRLevelPolytropicGas::getFinerLevel (  )  const [protected]

void AMRLevelPolytropicGas::operator= ( const AMRLevelPolytropicGas  )  [private]


Member Data Documentation


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

Generated on Fri Apr 5 04:24:52 2019 for Chombo + EB by  doxygen 1.5.5