|
Public Member Functions |
| AMRLevelSelfGravity () |
| Constructor.
|
virtual | ~AMRLevelSelfGravity () |
| Destructor.
|
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 AMR level.
|
void | defineParams (const Real &a_cfl, const Real &a_domainLength, const int &a_verbosity, const int &a_tagBufferSize, const int &a_maxInitRefLevel, 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 RefCellTagger *const a_refCellTagger, const LevelOp *const a_poissonOp, const bool &a_useDeltaPhiCorr, const StencilType &a_stencil, const CodeUnits &a_codeUnits) |
| Define the parameters the object needs.
|
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 | postRegrid (int a_base_level) |
| postRegridding ops
|
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.
|
const LevelData< FArrayBox > & | getStateNew () const |
const LevelData< FArrayBox > & | getStateOld () const |
virtual LevelData< FArrayBox > * | getPoissonRhs (const Real &a_time) |
| get the RHS to Poisson eq., interpolated to a_time
|
virtual LevelData< FArrayBox > * | getPhi (const Real &a_time) |
| get the Phi, the gravitational potential
|
virtual void | gravity (const int a_baseLevel, const bool a_srceCorr=true) |
| Solves Poisson eq. on the hierarchy of this and higher levels.
|
virtual void | computeForce () |
| Overloaded version (see below) to be called by gravity().
|
virtual void | postElliptic (const int a_baseLevel) |
virtual void | secondOrderCorrection () |
| compute 2nd order corrections for gravity source term
|
virtual void | isThisFinestLev (const bool a_isThisFinestLev) |
| set boolean stating whether or not this is the finest lev.
|
virtual bool | isThisFinestLev () const |
| return bool stating whether or not this is the finest level.
|
bool | allDefined () const |
Protected Member Functions |
DisjointBoxLayout | loadBalance (const Vector< Box > &a_grids) |
void | levelSetup () |
AMRLevelSelfGravity * | getCoarserLevel () const |
AMRLevelSelfGravity * | getFinerLevel () const |
void | makePoissonRhs (LevelData< FArrayBox > &a_rhs, const LevelData< FArrayBox > &a_U, const Real &a_time) |
void | computeForce (LevelData< ForceBox > &a_force, LevelData< FArrayBox > &a_phi, const Real &a_time) |
void | setupSourceTerm (LevelData< FArrayBox > &a_source, const LevelData< FArrayBox > &a_U, const LevelData< ForceBox > &a_force, const Real &a_time, const Real &a_dt) |
Protected Attributes |
LevelData< FArrayBox > | m_UOld |
LevelData< FArrayBox > | m_UNew |
LevelData< FArrayBox > | m_phiOld |
LevelData< FArrayBox > | m_phiNew |
LevelData< FArrayBox > | m_deltaPhi |
LevelData< ForceBox > | m_forceOld |
LevelData< ForceBox > | m_forceNew |
LevelData< FArrayBox > | m_rhs |
LevelData< FArrayBox > | m_rhsCrseNew |
LevelData< FArrayBox > | m_rhsCrseOld |
Real | m_rhsOffset |
Real | m_cfl |
Real | m_dx |
Real | m_dtNew |
Real | m_dtOld |
int | m_numStates |
Vector< string > | m_stateNames |
Vector< string > | m_plotNames |
int | m_numGhost |
int | m_numRhsGhost |
int | m_numPhiGhost |
int | m_numForceGhost |
int | m_nLevForceComp |
Real | m_domainLength |
CodeUnits | m_units |
bool | m_useDeltaPhiCorr |
FineInterp | m_fineInterp |
CoarseAverage | m_coarseAverage |
FineInterp | m_fineInterpPhi |
CoarseAverage | m_coarseAveragePhi |
PiecewiseLinearFillPatch | m_patcher |
QuadCFInterp | m_quadCFInterp |
PiecewiseLinearFillPatch | m_forcePatcher |
LevelGodunov | m_levelGodunov |
LevelSolver | m_levelSolver |
LevelFluxRegister | m_fluxRegister |
Gradient * | m_gradient |
SelfGravityPhysics * | m_gdnvPhysics |
LevelOp * | m_poissonOp |
RefCellTagger * | m_refCellTagger |
int | m_maxInitRefLevel |
int | m_tagBufferSize |
bool | m_hasCoarser |
bool | m_hasFiner |
bool | m_isThisFinestLev |
int | m_normalPredOrder |
bool | m_useFourthOrderSlopes |
bool | m_usePrimLimiting |
bool | m_useCharLimiting |
bool | m_useFlattening |
bool | m_useArtificialViscosity |
Real | m_artificialViscosity |
DisjointBoxLayout | m_grids |
bool | m_paramsDefined |
void AMRLevelSelfGravity::defineParams |
( |
const Real & |
a_cfl, |
|
|
const Real & |
a_domainLength, |
|
|
const int & |
a_verbosity, |
|
|
const int & |
a_tagBufferSize, |
|
|
const int & |
a_maxInitRefLevel, |
|
|
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 RefCellTagger *const |
a_refCellTagger, |
|
|
const LevelOp *const |
a_poissonOp, |
|
|
const bool & |
a_useDeltaPhiCorr, |
|
|
const StencilType & |
a_stencil, |
|
|
const CodeUnits & |
a_codeUnits |
|
) |
|
|