11 #ifndef _AMRLEVELMAPPEDCONS_H_ 12 #define _AMRLEVELMAPPEDCONS_H_ 31 #include "NamespaceHeader.H" 130 virtual void conclude(
int a_step)
const;
169 DisjointBoxLayout loadBalance(const Vector<Box>& a_grids);
312 #include "NamespaceFooter.H" virtual void setDefaultValues()
Set the MOLPhysics class.
bool m_useSourceTerm
Definition: AMRLevelMappedCons.H:269
virtual void initialGrid(const Vector< Box > &a_newGrids)
Initialize grids.
virtual Real computeNewDt()
Compute new timestep from m_Unew, and store it in m_dtNew.
RefCountedPtr< LevelData< FArrayBox > > m_JUexactPtr
Definition: AMRLevelMappedCons.H:309
virtual void postInitialize()
Things to do after initialization.
A reference-counting handle class.
Definition: RefCountedPtr.H:173
MultiBlockCoordSysFactory * m_coordSysFact
Definition: AMRLevelMappedCons.H:245
virtual void readCheckpointLevel(HDF5Handle &a_handle)
Read checkpoint data for this level.
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
void reportNorm() const
Compute and write out norm of conserved quantities.
void useArtificialDissipation(bool a_useArtificialDissipation)
Set whether to add artificial dissipation.
void computeVorticity(LevelData< FArrayBox > &a_vorticity, const LevelData< FArrayBox > &a_U) const
virtual void writeMappedPlotFile() const
Write mapped-grid info.
one dimensional dynamic array
Definition: Vector.H:53
virtual void conclude(int a_step) const
Conclude by testing conservation if necessary.
Solution data on a level for mapped grids.
Definition: MappedLevelData.H:54
void myComputeNorm(const int a_type, Vector< Real > &a_norm) const
Compute a norm for some reason.
virtual Real advance()
Advance by one timestep by RK4, and return new timestep.
virtual void writeCheckpointHeader(HDF5Handle &a_handle) const
Write checkpoint header.
Abstract base class for time-dependent data at a level of refinement.
Definition: AMRLevel.H:47
void writeMap(bool a_writeMap)
Definition: AMRLevelMappedCons.H:224
void writeJ(bool a_writeJ)
Definition: AMRLevelMappedCons.H:209
AMR Level for fourth-order solution to conservation law.
Definition: AMRLevelCons.H:32
std::string m_plotPrefix
Definition: AMRLevelMappedCons.H:282
virtual void setData(LevelData< FArrayBox > &a_U, LevelData< FArrayBox > &a_JU) const
Initialize <U> and <JU> at time m_time.
virtual void advanceU()
Advance by one timestep by RK4.
AMR Cons Equation factory.
Definition: AMRLevelMappedConsFactory.H:22
RefCountedPtr< LevelData< FArrayBox > > m_UexactPtr
Definition: AMRLevelMappedCons.H:307
Definition: AMRLevelMappedStabilityStrategy.H:23
LevelMappedConsOperator * m_levelMappedConsOperatorPtr
Definition: AMRLevelMappedCons.H:262
AMRLevelMappedTaggingStrategy * m_taggingStrategy
Definition: AMRLevelMappedCons.H:279
virtual void initialData()
Initialize data.
virtual void writePlotLevel(HDF5Handle &a_handle) const
Write plotfile data for this level.
virtual void tagCellsInit(IntVectSet &a_tags)
Create tags at initialization.
static int s_finestLevel
Definition: AMRLevelMappedCons.H:286
virtual void postInitialGrid(const bool a_restart)
Compute the grid metrics for mapped grids.
static bool s_writeError
whether to write out error from time
Definition: AMRLevelMappedCons.H:302
virtual void writeCheckpointLevel(HDF5Handle &a_handle) const
Write checkpoint data for this level.
MultiBlockCoordSys * m_coordSys
Definition: AMRLevelMappedCons.H:247
void reportError() const
Report norms of errors (requires exact solution)
virtual void levelSetup()
Setup menagerie of data structures.
double Real
Definition: REAL.H:33
Grid metrics for a level.
Definition: LevelGridMetrics.H:223
virtual void preRegrid(int a_base_level, const Vector< Vector< Box > > &a_new_grids)
Pre-regrid operations necessary for updating metric terms.
LevelGridMetrics * m_levelGridMetricsPtr
Definition: AMRLevelMappedCons.H:256
AMRLevelMappedCons * getCoarserLevel() const
Get the next coarser level.
virtual void transferSettingsFromAMRLevelMapped(AMRLevelMappedCons *a_amrConsPtr)
Transfer settings from a_amrConsPtr to this: called by define()
static bool s_writeMap
whether to write out mapping file
Definition: AMRLevelMappedCons.H:305
Real m_artificialDissipation
Definition: AMRLevelMappedCons.H:273
Definition: LevelMappedConsOperator.H:42
virtual void writePlotHeader(HDF5Handle &a_handle) const
Write plotfile header.
virtual interface class encapsulating multi-block mapping API
Definition: MultiBlockCoordSys.H:34
AMRLevelMappedStabilityStrategy * m_stabilityStrategy
Definition: AMRLevelMappedCons.H:276
void useSourceTerm(bool a_useSourceTerm)
Set whether to use a source term.
AMRLevelMappedCons(MultiBlockCoordSysFactory *const a_coordSysFact, const AMRLevelMappedStabilityStrategy *const a_stabilityStrategy, const AMRLevelMappedTaggingStrategy *const a_taggingStategy)
Factory constructor.
bool m_useArtificialDissipation
Definition: AMRLevelMappedCons.H:271
static bool s_writeExact
whether to write out exact value from time
Definition: AMRLevelMappedCons.H:299
LevelFluxRegister-A class to encapsulate a levels worth of flux registers.
Definition: LevelFluxRegister.H:29
static Vector< Real > s_L1NormJUConsvRef
Definition: AMRLevelMappedCons.H:291
MultiBlockCoordSys * m_coordSysFine
Definition: AMRLevelMappedCons.H:249
The class MultiBlockUtil contains some functions used by MultiBlockLevelGeom, MultiBlockLevelExchange...
Definition: MultiBlockUtil.H:23
virtual void define(AMRLevel *a_coarserLevelPtr, const ProblemDomain &a_problemDomain, int a_level, int a_refRatio)
Define new AMR level.
virtual Real computeInitialDt()
Compute dt using initial data.
virtual void tagCells(IntVectSet &a_tags)
Create tags for regridding.
void sourceTerm(const LevelSourceTerm *const a_sourceTerm)
Set the source term.
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:294
virtual ~AMRLevelMappedCons()
Destructor.
virtual void readCheckpointHeader(HDF5Handle &a_handle)
Read checkpoint header.
pure-virtual base class defining factory interface for MultiBlockCoordSys
Definition: MultiBlockCoordSys.H:409
MultiBlockUtil m_mbUtil
Definition: AMRLevelMappedCons.H:251
Definition: LevelSourceTerm.H:21
AMRLevelMappedCons * getFinerLevel() const
Get the next finer level.
void operator=(const AMRLevelMappedCons &a_input)
void writeError(bool a_writeError)
Definition: AMRLevelMappedCons.H:219
virtual void postTimeStep()
add dissipation to m_Unew: Kreiss-Oliger artificial viscosity
static bool s_writeJ
whether to write out J
Definition: AMRLevelMappedCons.H:296
Maintenance of <U> and <JU>
virtual void regrid(const Vector< Box > &a_newGrids)
Set up data on this level after regridding.
Definition: AMRLevelMappedTaggingStrategy.H:24
AMR Level for fourth-order solution to conservation law.
Definition: AMRLevelMappedCons.H:44
void coordinateSystem(MultiBlockCoordSysFactory *a_coordSysFact)
void writeExact(bool a_writeExact)
Definition: AMRLevelMappedCons.H:214
virtual Real getMaxWaveSpeed(const LevelData< FArrayBox > &a_U)
Return maximum speed from conserved variables.
virtual int indexForTagging()
Index within primitive variables for tagging cells.
LevelSourceTerm * m_sourceTermPtr
Definition: AMRLevelMappedCons.H:284
void artificialDissipation(Real a_artificialDissipation)
Set coefficient of artificial dissipation.
MappedLevelData m_data
Definition: AMRLevelMappedCons.H:259
int m_levelStep
Definition: AMRLevelMappedCons.H:267
LevelFluxRegister * m_fluxRegisterPtr
Definition: AMRLevelMappedCons.H:265
virtual void transferSettingsToLevelOp()
Transfer settings from this to m_levelMappedConsOperator: called by levelSetup()