#include <AMRLevelWaveEquation.H>
Public Member Functions | |
AMRLevelWaveEquation () | |
Constructor. | |
virtual | ~AMRLevelWaveEquation () |
Destructor. | |
virtual void | define (AMRLevel *a_coarserLevelPtr, const ProblemDomain &a_problemDomain, int a_level, int a_refRatio) |
Define new AMR level. | |
virtual Real | advance () |
Advance by one timestep -- RK4. | |
virtual void | postTimeStep () |
Things to do after a timestep -- reflux. | |
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 Real | computeDt () |
Returns the dt computed earlier for this level. | |
virtual Real | computeInitialDt () |
Compute dt using initial data. | |
Real | computeEnergy () |
Compute integral of energy over this and all finer levels. | |
virtual void | CFL (Real a_cfl) |
Set the CFL number. | |
virtual void | domainLength (Real a_domainLength) |
Set the physical dimension of the longest side of the domain. | |
virtual void | refinementThreshold (Real a_refineThresh) |
Set the refinement threshold. | |
void | tagBufferSize (int a_tagBufferSize) |
Set the tag buffer size. | |
void | IBC (PhysIBC *a_ibc) |
LevelData< FArrayBox > * | phi () |
Accessors. | |
LevelData< FArrayBox > * | pi () |
Protected Member Functions | |
DisjointBoxLayout | loadBalance (const Vector< Box > &a_grids) |
void | levelSetup () |
AMRLevelWaveEquation * | getCoarserLevel () const |
AMRLevelWaveEquation * | getFinerLevel () const |
void | initializeODE (LevelData< FArrayBox > &a_piOld, LevelData< FArrayBox > &a_pi) |
void | updateODE (LevelData< FArrayBox > &a_LOfPhi, LevelData< FArrayBox > &a_pi, Real a_dt) |
Protected Attributes | |
Real | m_r0 |
LevelData< FArrayBox > | m_phiOld |
LevelData< FArrayBox > | m_phiNew |
LevelData< FArrayBox > | m_piOld |
LevelData< FArrayBox > | m_piNew |
Real | m_cfl |
Real | m_dx |
FineInterp | m_fineInterp |
CoarseAverage | m_coarseAverage |
Real | m_dtNew |
int | m_numStates |
Vector< std::string > | m_stateNames |
int | m_numGhost |
Real | m_domainLength |
LevelWaveOperator | m_levelWaveOperator |
LevelFluxRegister | m_fluxRegister |
Real | m_refineThresh |
int | m_tagBufferSize |
bool | m_hasCoarser |
bool | m_hasFiner |
DisjointBoxLayout | m_grids |
PhysIBC * | m_physIBCPtr |
Private Member Functions | |
void | operator= (const AMRLevelWaveEquation &a_input) |
AMRLevelWaveEquation (const AMRLevelWaveEquation &a_input) | |
Friends | |
class | AMRLevelWaveEqnFactory |
AMRLevelWaveEquation::AMRLevelWaveEquation | ( | ) |
Constructor.
virtual AMRLevelWaveEquation::~AMRLevelWaveEquation | ( | ) | [virtual] |
Destructor.
AMRLevelWaveEquation::AMRLevelWaveEquation | ( | const AMRLevelWaveEquation & | a_input | ) | [inline, private] |
References MayDay::Error().
virtual void AMRLevelWaveEquation::define | ( | AMRLevel * | a_coarserLevelPtr, | |
const ProblemDomain & | a_problemDomain, | |||
int | a_level, | |||
int | a_refRatio | |||
) | [virtual] |
virtual Real AMRLevelWaveEquation::advance | ( | ) | [virtual] |
virtual void AMRLevelWaveEquation::postTimeStep | ( | ) | [virtual] |
virtual void AMRLevelWaveEquation::tagCells | ( | IntVectSet & | a_tags | ) | [virtual] |
virtual void AMRLevelWaveEquation::tagCellsInit | ( | IntVectSet & | a_tags | ) | [virtual] |
virtual void AMRLevelWaveEquation::initialData | ( | ) | [virtual] |
virtual void AMRLevelWaveEquation::postInitialize | ( | ) | [virtual] |
virtual Real AMRLevelWaveEquation::computeDt | ( | ) | [virtual] |
virtual Real AMRLevelWaveEquation::computeInitialDt | ( | ) | [virtual] |
Real AMRLevelWaveEquation::computeEnergy | ( | ) |
Compute integral of energy over this and all finer levels.
virtual void AMRLevelWaveEquation::CFL | ( | Real | a_cfl | ) | [virtual] |
Set the CFL number.
virtual void AMRLevelWaveEquation::domainLength | ( | Real | a_domainLength | ) | [virtual] |
Set the physical dimension of the longest side of the domain.
virtual void AMRLevelWaveEquation::refinementThreshold | ( | Real | a_refineThresh | ) | [virtual] |
Set the refinement threshold.
void AMRLevelWaveEquation::tagBufferSize | ( | int | a_tagBufferSize | ) |
Set the tag buffer size.
void AMRLevelWaveEquation::IBC | ( | PhysIBC * | a_ibc | ) | [inline] |
References m_physIBCPtr.
DisjointBoxLayout AMRLevelWaveEquation::loadBalance | ( | const Vector< Box > & | a_grids | ) | [protected] |
void AMRLevelWaveEquation::levelSetup | ( | ) | [protected] |
AMRLevelWaveEquation* AMRLevelWaveEquation::getCoarserLevel | ( | ) | const [protected] |
AMRLevelWaveEquation* AMRLevelWaveEquation::getFinerLevel | ( | ) | const [protected] |
void AMRLevelWaveEquation::operator= | ( | const AMRLevelWaveEquation & | a_input | ) | [inline, private] |
References MayDay::Error().
void AMRLevelWaveEquation::initializeODE | ( | LevelData< FArrayBox > & | a_piOld, | |
LevelData< FArrayBox > & | a_pi | |||
) | [protected] |
void AMRLevelWaveEquation::updateODE | ( | LevelData< FArrayBox > & | a_LOfPhi, | |
LevelData< FArrayBox > & | a_pi, | |||
Real | a_dt | |||
) | [protected] |
friend class AMRLevelWaveEqnFactory [friend] |
Real AMRLevelWaveEquation::m_r0 [protected] |
LevelData<FArrayBox> AMRLevelWaveEquation::m_phiOld [protected] |
LevelData<FArrayBox> AMRLevelWaveEquation::m_phiNew [protected] |
Referenced by phi().
LevelData<FArrayBox> AMRLevelWaveEquation::m_piOld [protected] |
LevelData<FArrayBox> AMRLevelWaveEquation::m_piNew [protected] |
Referenced by pi().
Real AMRLevelWaveEquation::m_cfl [protected] |
Real AMRLevelWaveEquation::m_dx [protected] |
FineInterp AMRLevelWaveEquation::m_fineInterp [protected] |
CoarseAverage AMRLevelWaveEquation::m_coarseAverage [protected] |
Real AMRLevelWaveEquation::m_dtNew [protected] |
int AMRLevelWaveEquation::m_numStates [protected] |
Vector<std::string> AMRLevelWaveEquation::m_stateNames [protected] |
int AMRLevelWaveEquation::m_numGhost [protected] |
Real AMRLevelWaveEquation::m_domainLength [protected] |
Real AMRLevelWaveEquation::m_refineThresh [protected] |
int AMRLevelWaveEquation::m_tagBufferSize [protected] |
bool AMRLevelWaveEquation::m_hasCoarser [protected] |
bool AMRLevelWaveEquation::m_hasFiner [protected] |
DisjointBoxLayout AMRLevelWaveEquation::m_grids [protected] |
PhysIBC* AMRLevelWaveEquation::m_physIBCPtr [protected] |
Referenced by IBC().