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

#include <EBAMRGodunov.H>

Inheritance diagram for EBAMRGodunov:
Inheritance graph
[legend]

Public Member Functions

 EBAMRGodunov ()
 
virtual ~EBAMRGodunov ()
 
void sumConserved (Real &a_sumcons, const int &a_ivar) const
 
virtual void define (AMRLevel *a_coarser_level_ptr, const Box &a_problem_domain, int a_level, int a_ref_ratio)
 
virtual void define (AMRLevel *a_coarser_level_ptr, const ProblemDomain &a_problem_domain, int a_level, int a_ref_ratio)
 
virtual Real advance ()
 advance by one timestep More...
 
virtual void postTimeStep ()
 things to do after a timestep More...
 
virtual void syncWithFineLevel ()
 setup fine->coarse stuff More...
 
void dumpDebug ()
 
virtual void tagCells (IntVectSet &a_tags)
 create tags More...
 
virtual void tagCellsInit (IntVectSet &a_tags)
 create tags at initialization More...
 
virtual void regrid (const Vector< Box > &a_new_grids)
 regrid More...
 
virtual void initialGrid (const Vector< Box > &a_new_grids)
 initialize grids More...
 
virtual void initialData ()
 initialize data More...
 
virtual void postInitialize ()
 things to do after initialization More...
 
virtual void patchGodunov (const EBPatchGodunovFactory *const a_ebpatchGodunovFactory)
 object for physics integration More...
 
void dumpDebug (const string &a_debstring)
 
virtual void writeCheckpointHeader (HDF5Handle &a_handle) const
 write checkpoint header More...
 
virtual void writeCheckpointLevel (HDF5Handle &a_handle) const
 write checkpoint data for this level More...
 
virtual void readCheckpointHeader (HDF5Handle &a_handle)
 read checkpoint header More...
 
virtual void readCheckpointLevel (HDF5Handle &a_handle)
 read checkpoint data for this level More...
 
virtual void writePlotHeader (HDF5Handle &a_handle) const
 write plotfile header More...
 
void writePlotHeaderOld (HDF5Handle &a_handle) const
 
virtual void writePlotLevel (HDF5Handle &a_handle) const
 write plot file data for this level More...
 
void writePlotLevelOld (HDF5Handle &a_handle) const
 
virtual Real getDt () const
 
virtual Real computeDt ()
 compute dt More...
 
virtual Real computeInitialDt ()
 compute dt with initial data More...
 
virtual void CFL (Real a_cfl)
 CFL. More...
 
virtual void doSmushing (bool a_doSmushing)
 
virtual void doRZCoords (bool a_doRZCoords)
 
virtual void hasSourceTerm (bool a_hasSourceTerm)
 
virtual void redistRadius (int a_redistRad)
 redistribution radius More...
 
virtual void domainLength (RealVect a_domainLength)
 longest length of the domain in real space More...
 
virtual void refinementThreshold (Real a_refine_thresh)
 refinement threshold More...
 
virtual void tagBufferSize (int a_tag_buffer_size)
 tag buffer size More...
 
virtual void useMassRedistribution (bool a_useMassRedist)
 
virtual void levelSetup ()
 
const EBISLayoutgetEBISLayout () const
 
virtual void fillConsAndPrim (LevelData< EBCellFAB > &a_data) const
 
void tagAll (bool a_tagAll)
 
LevelData< EBCellFAB > & getStateOld ()
 
LevelData< EBCellFAB > & getStateNew ()
 
- Public Member Functions inherited from AMRLevel
 AMRLevel ()
 
virtual ~AMRLevel ()
 
virtual bool convergedToSteadyState ()
 
virtual void preRegrid (int a_base_level, const Vector< Vector< Box > > &a_new_grids)
 
virtual void postRegrid (int a_base_level)
 
virtual void postInitialGrid (const bool a_restart)
 
virtual void conclude (int a_step) const
 
virtual void writeCustomPlotFile (const std::string &a_prefix, int a_step) const
 
virtual void finerLevelPtr (AMRLevel *a_finer_level_ptr)
 
virtual void dt (Real a_dt)
 
virtual void time (Real a_time)
 
virtual void initialDtMultiplier (Real a_initial_dt_multiplier)
 
virtual Real dt () const
 
virtual Real time () const
 
virtual Real initialDtMultiplier () const
 
virtual const ProblemDomainproblemDomain () const
 
virtual Vector< Boxboxes () const
 
bool isDefined () const
 
bool hasCoarserLevel () const
 
bool hasFinerLevel () const
 
virtual int level () const
 
virtual int refRatio () const
 
Vector< AMRLevel * > getAMRLevelHierarchy ()
 Retrieve an array of all of the AMRLevel objects in the entire hierarchy. More...
 

Static Public Member Functions

static void setLoadBalance (LoadBalanceFunc a_func)
 
- Static Public Member Functions inherited from AMRLevel
static int verbosity ()
 
static void verbosity (int a_verbosity)
 

Static Public Attributes

static int s_NewPlotFile
 

Protected Member Functions

Real calculateMass () const
 
EBAMRGodunovgetCoarserLevel () const
 
EBAMRGodunovgetFinerLevel () const
 

Protected Attributes

bool m_tagAll
 
bool m_useMassRedist
 
Box m_domainBox
 
DisjointBoxLayout m_grids
 
EBISLayout m_ebisl
 
LevelData< EBCellFABm_stateOld
 
LevelData< EBCellFABm_stateNew
 
int m_nComp
 
int m_nGhost
 
Vector< string > m_stateNames
 
Vector< string > m_primNames
 
RealVect m_origin
 
RealVect m_dx
 
RealVect m_aspect
 
RealVect m_domainLength
 
Real m_cfl
 
Real m_dtNew
 
EBCoarseAverage m_ebCoarseAverage
 
EBPWLFineInterp m_ebFineInterp
 
EBLevelGodunov m_ebLevelGodunov
 
EBFluxRegister m_ebFluxRegister
 
EBPatchGodunovm_ebPatchGodunov
 
const EBPatchGodunovFactorym_ebPatchGodunovFactory
 
Real m_refineThresh
 
LevelData< BaseIVFAB< Real > > m_massDiff
 
LayoutData< IntVectSetm_sets
 
RedistStencil m_redStencil
 
EBCoarToFineRedist m_ebCoarToFineRedist
 
EBCoarToCoarRedist m_ebCoarToCoarRedist
 
EBFineToCoarRedist m_ebFineToCoarRedist
 
int m_tagBufferSize
 
int m_redistRad
 
bool m_doRZCoords
 
bool m_hasSourceTerm
 
bool m_doSmushing
 
bool m_hasCoarser
 
bool m_hasFiner
 
bool m_isDefined
 
- Protected Attributes inherited from AMRLevel
ProblemDomain m_problem_domain
 
Vector< Boxm_level_grids
 
int m_level
 
int m_ref_ratio
 
Real m_initial_dt_multiplier
 
Real m_dt
 
Real m_time
 
AMRLevelm_coarser_level_ptr
 
AMRLevelm_finer_level_ptr
 
bool m_isDefined
 

Static Protected Attributes

static LoadBalanceFunc s_loadBalance
 
static bool s_isLoadBalanceSet
 
- Static Protected Attributes inherited from AMRLevel
static int s_verbosity
 

Private Member Functions

void operator= (const EBAMRGodunov &a_input)
 
 EBAMRGodunov (const EBAMRGodunov &a_input)
 

Constructor & Destructor Documentation

EBAMRGodunov::EBAMRGodunov ( )
virtual EBAMRGodunov::~EBAMRGodunov ( )
virtual
EBAMRGodunov::EBAMRGodunov ( const EBAMRGodunov a_input)
inlineprivate

References MayDay::Error().

Member Function Documentation

void EBAMRGodunov::sumConserved ( Real a_sumcons,
const int &  a_ivar 
) const
virtual void EBAMRGodunov::define ( AMRLevel a_coarser_level_ptr,
const Box a_problem_domain,
int  a_level,
int  a_ref_ratio 
)
virtual

Defines this AMRLevel.

  • a_coarser_level_ptr (not modified): pointer to next coarser level object.
  • a_problem_domain (not modified): problem domain of this level.
  • a_level (not modified): index of this level. The base level is zero.
  • a_ref_ratio (not modified): the refinement ratio between this level and the next finer level.

Reimplemented from AMRLevel.

virtual void EBAMRGodunov::define ( AMRLevel a_coarser_level_ptr,
const ProblemDomain a_problem_domain,
int  a_level,
int  a_ref_ratio 
)
virtual

Defines this AMRLevel.

  • a_coarser_level_ptr (not modified): pointer to next coarser level object.
  • a_problem_domain (not modified): problem domain of this level.
  • a_level (not modified): index of this level. The base level is zero.
  • a_ref_ratio (not modified): the refinement ratio between this level and the next finer level.

Reimplemented from AMRLevel.

virtual Real EBAMRGodunov::advance ( )
virtual

advance by one timestep

Implements AMRLevel.

virtual void EBAMRGodunov::postTimeStep ( )
virtual

things to do after a timestep

Implements AMRLevel.

virtual void EBAMRGodunov::syncWithFineLevel ( )
virtual

setup fine->coarse stuff

stuff that needs to be setup from the finer level. A bunch of objects depend upon the layouts from both levels and the finer level changes more often from regrid so this needs to be called from the finer level

void EBAMRGodunov::dumpDebug ( )
virtual void EBAMRGodunov::tagCells ( IntVectSet a_tags)
virtual

create tags

Implements AMRLevel.

virtual void EBAMRGodunov::tagCellsInit ( IntVectSet a_tags)
virtual

create tags at initialization

Implements AMRLevel.

virtual void EBAMRGodunov::regrid ( const Vector< Box > &  a_new_grids)
virtual

regrid

Implements AMRLevel.

virtual void EBAMRGodunov::initialGrid ( const Vector< Box > &  a_new_grids)
virtual

initialize grids

Implements AMRLevel.

virtual void EBAMRGodunov::initialData ( )
virtual

initialize data

Implements AMRLevel.

virtual void EBAMRGodunov::postInitialize ( )
virtual

things to do after initialization

Implements AMRLevel.

virtual void EBAMRGodunov::patchGodunov ( const EBPatchGodunovFactory *const  a_ebpatchGodunovFactory)
virtual

object for physics integration

void EBAMRGodunov::dumpDebug ( const string &  a_debstring)
virtual void EBAMRGodunov::writeCheckpointHeader ( HDF5Handle a_handle) const
virtual

write checkpoint header

Implements AMRLevel.

virtual void EBAMRGodunov::writeCheckpointLevel ( HDF5Handle a_handle) const
virtual

write checkpoint data for this level

Implements AMRLevel.

virtual void EBAMRGodunov::readCheckpointHeader ( HDF5Handle a_handle)
virtual

read checkpoint header

Implements AMRLevel.

virtual void EBAMRGodunov::readCheckpointLevel ( HDF5Handle a_handle)
virtual

read checkpoint data for this level

Implements AMRLevel.

virtual void EBAMRGodunov::writePlotHeader ( HDF5Handle a_handle) const
virtual

write plotfile header

Implements AMRLevel.

void EBAMRGodunov::writePlotHeaderOld ( HDF5Handle a_handle) const
virtual void EBAMRGodunov::writePlotLevel ( HDF5Handle a_handle) const
virtual

write plot file data for this level

Implements AMRLevel.

void EBAMRGodunov::writePlotLevelOld ( HDF5Handle a_handle) const
virtual Real EBAMRGodunov::getDt ( ) const
virtual
virtual Real EBAMRGodunov::computeDt ( )
virtual

compute dt

Implements AMRLevel.

virtual Real EBAMRGodunov::computeInitialDt ( )
virtual

compute dt with initial data

Implements AMRLevel.

virtual void EBAMRGodunov::CFL ( Real  a_cfl)
virtual

CFL.

virtual void EBAMRGodunov::doSmushing ( bool  a_doSmushing)
virtual
virtual void EBAMRGodunov::doRZCoords ( bool  a_doRZCoords)
virtual
virtual void EBAMRGodunov::hasSourceTerm ( bool  a_hasSourceTerm)
virtual
virtual void EBAMRGodunov::redistRadius ( int  a_redistRad)
virtual

redistribution radius

virtual void EBAMRGodunov::domainLength ( RealVect  a_domainLength)
virtual

longest length of the domain in real space

virtual void EBAMRGodunov::refinementThreshold ( Real  a_refine_thresh)
virtual

refinement threshold

virtual void EBAMRGodunov::tagBufferSize ( int  a_tag_buffer_size)
virtual

tag buffer size

virtual void EBAMRGodunov::useMassRedistribution ( bool  a_useMassRedist)
virtual
virtual void EBAMRGodunov::levelSetup ( )
virtual
const EBISLayout& EBAMRGodunov::getEBISLayout ( ) const
virtual void EBAMRGodunov::fillConsAndPrim ( LevelData< EBCellFAB > &  a_data) const
virtual
void EBAMRGodunov::tagAll ( bool  a_tagAll)
LevelData<EBCellFAB>& EBAMRGodunov::getStateOld ( )
LevelData<EBCellFAB>& EBAMRGodunov::getStateNew ( )
static void EBAMRGodunov::setLoadBalance ( LoadBalanceFunc  a_func)
inlinestatic
Real EBAMRGodunov::calculateMass ( ) const
protected
EBAMRGodunov* EBAMRGodunov::getCoarserLevel ( ) const
protected
EBAMRGodunov* EBAMRGodunov::getFinerLevel ( ) const
protected
void EBAMRGodunov::operator= ( const EBAMRGodunov a_input)
inlineprivate

References MayDay::Error().

Member Data Documentation

int EBAMRGodunov::s_NewPlotFile
static
LoadBalanceFunc EBAMRGodunov::s_loadBalance
staticprotected

Referenced by setLoadBalance().

bool EBAMRGodunov::s_isLoadBalanceSet
staticprotected

Referenced by setLoadBalance().

bool EBAMRGodunov::m_tagAll
protected
bool EBAMRGodunov::m_useMassRedist
protected
Box EBAMRGodunov::m_domainBox
protected
DisjointBoxLayout EBAMRGodunov::m_grids
protected
EBISLayout EBAMRGodunov::m_ebisl
protected
LevelData<EBCellFAB> EBAMRGodunov::m_stateOld
protected
LevelData<EBCellFAB> EBAMRGodunov::m_stateNew
protected
int EBAMRGodunov::m_nComp
protected
int EBAMRGodunov::m_nGhost
protected
Vector<string> EBAMRGodunov::m_stateNames
protected
Vector<string> EBAMRGodunov::m_primNames
protected
RealVect EBAMRGodunov::m_origin
protected
RealVect EBAMRGodunov::m_dx
protected
RealVect EBAMRGodunov::m_aspect
protected
RealVect EBAMRGodunov::m_domainLength
protected
Real EBAMRGodunov::m_cfl
protected
Real EBAMRGodunov::m_dtNew
protected
EBCoarseAverage EBAMRGodunov::m_ebCoarseAverage
protected
EBPWLFineInterp EBAMRGodunov::m_ebFineInterp
protected
EBLevelGodunov EBAMRGodunov::m_ebLevelGodunov
protected
EBFluxRegister EBAMRGodunov::m_ebFluxRegister
protected
EBPatchGodunov* EBAMRGodunov::m_ebPatchGodunov
protected
const EBPatchGodunovFactory* EBAMRGodunov::m_ebPatchGodunovFactory
protected
Real EBAMRGodunov::m_refineThresh
protected
LevelData<BaseIVFAB<Real> > EBAMRGodunov::m_massDiff
protected
LayoutData<IntVectSet> EBAMRGodunov::m_sets
protected
RedistStencil EBAMRGodunov::m_redStencil
protected
EBCoarToFineRedist EBAMRGodunov::m_ebCoarToFineRedist
protected
EBCoarToCoarRedist EBAMRGodunov::m_ebCoarToCoarRedist
protected
EBFineToCoarRedist EBAMRGodunov::m_ebFineToCoarRedist
protected
int EBAMRGodunov::m_tagBufferSize
protected
int EBAMRGodunov::m_redistRad
protected
bool EBAMRGodunov::m_doRZCoords
protected
bool EBAMRGodunov::m_hasSourceTerm
protected
bool EBAMRGodunov::m_doSmushing
protected
bool EBAMRGodunov::m_hasCoarser
protected
bool EBAMRGodunov::m_hasFiner
protected
bool EBAMRGodunov::m_isDefined
protected

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