EBAMRGodunov Class Reference

#include <EBAMRGodunov.H>

Inheritance diagram for EBAMRGodunov:

Inheritance graph
[legend]

List of all members.

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
virtual void postTimeStep ()
 things to do after a timestep
virtual void syncWithFineLevel ()
 setup fine->coarse stuff
void dumpDebug ()
virtual void tagCells (IntVectSet &a_tags)
 create tags
virtual void tagCellsInit (IntVectSet &a_tags)
 create tags at initialization
virtual void regrid (const Vector< Box > &a_new_grids)
 regrid
virtual void initialGrid (const Vector< Box > &a_new_grids)
 initialize grids
virtual void initialData ()
 initialize data
virtual void postInitialize ()
 things to do after initialization
virtual void patchGodunov (const EBPatchGodunovFactory *const a_ebpatchGodunovFactory)
 object for physics integration
void dumpDebug (const string &a_debstring)
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
void writePlotHeaderOld (HDF5Handle &a_handle) const
virtual void writePlotLevel (HDF5Handle &a_handle) const
 write plot file data for this level
void writePlotLevelOld (HDF5Handle &a_handle) const
virtual Real getDt () const
virtual Real computeDt ()
 compute dt
virtual Real computeInitialDt ()
 compute dt with initial data
virtual void CFL (Real a_cfl)
 CFL.
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
virtual void domainLength (RealVect a_domainLength)
 longest length of the domain in real space
virtual void refinementThreshold (Real a_refine_thresh)
 refinement threshold
virtual void tagBufferSize (int a_tag_buffer_size)
 tag buffer size
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 ()

Static Public Member Functions

static void setLoadBalance (LoadBalanceFunc a_func)

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

Static Protected Attributes

static LoadBalanceFunc s_loadBalance
static bool s_isLoadBalanceSet

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  )  [inline, private]

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  )  [inline, static]

Real EBAMRGodunov::calculateMass (  )  const [protected]

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

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

void EBAMRGodunov::operator= ( const EBAMRGodunov a_input  )  [inline, private]

References MayDay::Error().


Member Data Documentation

Referenced by setLoadBalance().

bool EBAMRGodunov::s_isLoadBalanceSet [static, protected]

Referenced by setLoadBalance().

bool EBAMRGodunov::m_tagAll [protected]

int EBAMRGodunov::m_nComp [protected]

int EBAMRGodunov::m_nGhost [protected]

Vector<string> EBAMRGodunov::m_stateNames [protected]

Vector<string> EBAMRGodunov::m_primNames [protected]

int EBAMRGodunov::m_redistRad [protected]

bool EBAMRGodunov::m_doRZCoords [protected]

bool EBAMRGodunov::m_doSmushing [protected]

bool EBAMRGodunov::m_hasCoarser [protected]

bool EBAMRGodunov::m_hasFiner [protected]

bool EBAMRGodunov::m_isDefined [protected]

Reimplemented from AMRLevel.


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

Generated on Fri Apr 5 04:25:00 2019 for Chombo + EB by  doxygen 1.5.5