Chombo + EB  3.0
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 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() [1/2]

EBAMRGodunov::EBAMRGodunov ( )

◆ ~EBAMRGodunov()

virtual EBAMRGodunov::~EBAMRGodunov ( )
virtual

◆ EBAMRGodunov() [2/2]

EBAMRGodunov::EBAMRGodunov ( const EBAMRGodunov a_input)
inlineprivate

References MayDay::Error().

Member Function Documentation

◆ sumConserved()

void EBAMRGodunov::sumConserved ( Real a_sumcons,
const int &  a_ivar 
) const

◆ define() [1/2]

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.

◆ define() [2/2]

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.

◆ advance()

virtual Real EBAMRGodunov::advance ( )
virtual

advance by one timestep

Implements AMRLevel.

◆ postTimeStep()

virtual void EBAMRGodunov::postTimeStep ( )
virtual

things to do after a timestep

Implements AMRLevel.

◆ syncWithFineLevel()

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

◆ dumpDebug() [1/2]

void EBAMRGodunov::dumpDebug ( )

◆ tagCells()

virtual void EBAMRGodunov::tagCells ( IntVectSet a_tags)
virtual

create tags

Implements AMRLevel.

◆ tagCellsInit()

virtual void EBAMRGodunov::tagCellsInit ( IntVectSet a_tags)
virtual

create tags at initialization

Implements AMRLevel.

◆ regrid()

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

regrid

Implements AMRLevel.

◆ initialGrid()

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

initialize grids

Implements AMRLevel.

◆ initialData()

virtual void EBAMRGodunov::initialData ( )
virtual

initialize data

Implements AMRLevel.

◆ postInitialize()

virtual void EBAMRGodunov::postInitialize ( )
virtual

things to do after initialization

Implements AMRLevel.

◆ patchGodunov()

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

object for physics integration

◆ dumpDebug() [2/2]

void EBAMRGodunov::dumpDebug ( const string &  a_debstring)

◆ writeCheckpointHeader()

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

write checkpoint header

Implements AMRLevel.

◆ writeCheckpointLevel()

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

write checkpoint data for this level

Implements AMRLevel.

◆ readCheckpointHeader()

virtual void EBAMRGodunov::readCheckpointHeader ( HDF5Handle a_handle)
virtual

read checkpoint header

Implements AMRLevel.

◆ readCheckpointLevel()

virtual void EBAMRGodunov::readCheckpointLevel ( HDF5Handle a_handle)
virtual

read checkpoint data for this level

Implements AMRLevel.

◆ writePlotHeader()

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

write plotfile header

Implements AMRLevel.

◆ writePlotHeaderOld()

void EBAMRGodunov::writePlotHeaderOld ( HDF5Handle a_handle) const

◆ writePlotLevel()

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

write plot file data for this level

Implements AMRLevel.

◆ writePlotLevelOld()

void EBAMRGodunov::writePlotLevelOld ( HDF5Handle a_handle) const

◆ getDt()

virtual Real EBAMRGodunov::getDt ( ) const
virtual

◆ computeDt()

virtual Real EBAMRGodunov::computeDt ( )
virtual

compute dt

Implements AMRLevel.

◆ computeInitialDt()

virtual Real EBAMRGodunov::computeInitialDt ( )
virtual

compute dt with initial data

Implements AMRLevel.

◆ CFL()

virtual void EBAMRGodunov::CFL ( Real  a_cfl)
virtual

CFL.

◆ doSmushing()

virtual void EBAMRGodunov::doSmushing ( bool  a_doSmushing)
virtual

◆ doRZCoords()

virtual void EBAMRGodunov::doRZCoords ( bool  a_doRZCoords)
virtual

◆ hasSourceTerm()

virtual void EBAMRGodunov::hasSourceTerm ( bool  a_hasSourceTerm)
virtual

◆ redistRadius()

virtual void EBAMRGodunov::redistRadius ( int  a_redistRad)
virtual

redistribution radius

◆ domainLength()

virtual void EBAMRGodunov::domainLength ( RealVect  a_domainLength)
virtual

longest length of the domain in real space

◆ refinementThreshold()

virtual void EBAMRGodunov::refinementThreshold ( Real  a_refine_thresh)
virtual

refinement threshold

◆ tagBufferSize()

virtual void EBAMRGodunov::tagBufferSize ( int  a_tag_buffer_size)
virtual

tag buffer size

◆ useMassRedistribution()

virtual void EBAMRGodunov::useMassRedistribution ( bool  a_useMassRedist)
virtual

◆ levelSetup()

virtual void EBAMRGodunov::levelSetup ( )
virtual

◆ getEBISLayout()

const EBISLayout& EBAMRGodunov::getEBISLayout ( ) const

◆ fillConsAndPrim()

virtual void EBAMRGodunov::fillConsAndPrim ( LevelData< EBCellFAB > &  a_data) const
virtual

◆ tagAll()

void EBAMRGodunov::tagAll ( bool  a_tagAll)

◆ getStateOld()

LevelData<EBCellFAB>& EBAMRGodunov::getStateOld ( )

◆ getStateNew()

LevelData<EBCellFAB>& EBAMRGodunov::getStateNew ( )

◆ setLoadBalance()

static void EBAMRGodunov::setLoadBalance ( LoadBalanceFunc  a_func)
inlinestatic

◆ calculateMass()

Real EBAMRGodunov::calculateMass ( ) const
protected

◆ getCoarserLevel()

EBAMRGodunov* EBAMRGodunov::getCoarserLevel ( ) const
protected

◆ getFinerLevel()

EBAMRGodunov* EBAMRGodunov::getFinerLevel ( ) const
protected

◆ operator=()

void EBAMRGodunov::operator= ( const EBAMRGodunov a_input)
inlineprivate

References MayDay::Error().

Member Data Documentation

◆ s_NewPlotFile

int EBAMRGodunov::s_NewPlotFile
static

◆ s_loadBalance

LoadBalanceFunc EBAMRGodunov::s_loadBalance
staticprotected

Referenced by setLoadBalance().

◆ s_isLoadBalanceSet

bool EBAMRGodunov::s_isLoadBalanceSet
staticprotected

Referenced by setLoadBalance().

◆ m_tagAll

bool EBAMRGodunov::m_tagAll
protected

◆ m_useMassRedist

bool EBAMRGodunov::m_useMassRedist
protected

◆ m_domainBox

Box EBAMRGodunov::m_domainBox
protected

◆ m_grids

DisjointBoxLayout EBAMRGodunov::m_grids
protected

◆ m_ebisl

EBISLayout EBAMRGodunov::m_ebisl
protected

◆ m_stateOld

LevelData<EBCellFAB> EBAMRGodunov::m_stateOld
protected

◆ m_stateNew

LevelData<EBCellFAB> EBAMRGodunov::m_stateNew
protected

◆ m_nComp

int EBAMRGodunov::m_nComp
protected

◆ m_nGhost

int EBAMRGodunov::m_nGhost
protected

◆ m_stateNames

Vector<string> EBAMRGodunov::m_stateNames
protected

◆ m_primNames

Vector<string> EBAMRGodunov::m_primNames
protected

◆ m_origin

RealVect EBAMRGodunov::m_origin
protected

◆ m_dx

RealVect EBAMRGodunov::m_dx
protected

◆ m_aspect

RealVect EBAMRGodunov::m_aspect
protected

◆ m_domainLength

RealVect EBAMRGodunov::m_domainLength
protected

◆ m_cfl

Real EBAMRGodunov::m_cfl
protected

◆ m_dtNew

Real EBAMRGodunov::m_dtNew
protected

◆ m_ebCoarseAverage

EBCoarseAverage EBAMRGodunov::m_ebCoarseAverage
protected

◆ m_ebFineInterp

EBPWLFineInterp EBAMRGodunov::m_ebFineInterp
protected

◆ m_ebLevelGodunov

EBLevelGodunov EBAMRGodunov::m_ebLevelGodunov
protected

◆ m_ebFluxRegister

EBFluxRegister EBAMRGodunov::m_ebFluxRegister
protected

◆ m_ebPatchGodunov

EBPatchGodunov* EBAMRGodunov::m_ebPatchGodunov
protected

◆ m_ebPatchGodunovFactory

const EBPatchGodunovFactory* EBAMRGodunov::m_ebPatchGodunovFactory
protected

◆ m_refineThresh

Real EBAMRGodunov::m_refineThresh
protected

◆ m_massDiff

LevelData<BaseIVFAB<Real> > EBAMRGodunov::m_massDiff
protected

◆ m_sets

LayoutData<IntVectSet> EBAMRGodunov::m_sets
protected

◆ m_redStencil

RedistStencil EBAMRGodunov::m_redStencil
protected

◆ m_ebCoarToFineRedist

EBCoarToFineRedist EBAMRGodunov::m_ebCoarToFineRedist
protected

◆ m_ebCoarToCoarRedist

EBCoarToCoarRedist EBAMRGodunov::m_ebCoarToCoarRedist
protected

◆ m_ebFineToCoarRedist

EBFineToCoarRedist EBAMRGodunov::m_ebFineToCoarRedist
protected

◆ m_tagBufferSize

int EBAMRGodunov::m_tagBufferSize
protected

◆ m_redistRad

int EBAMRGodunov::m_redistRad
protected

◆ m_doRZCoords

bool EBAMRGodunov::m_doRZCoords
protected

◆ m_hasSourceTerm

bool EBAMRGodunov::m_hasSourceTerm
protected

◆ m_doSmushing

bool EBAMRGodunov::m_doSmushing
protected

◆ m_hasCoarser

bool EBAMRGodunov::m_hasCoarser
protected

◆ m_hasFiner

bool EBAMRGodunov::m_hasFiner
protected

◆ m_isDefined

bool EBAMRGodunov::m_isDefined
protected

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