12 #ifndef CD_CdrLayout_H
13 #define CD_CdrLayout_H
17 #include <CD_NamespaceHeader.H>
48 CdrLayout(
const Vector<RefCountedPtr<CdrSpecies>>& a_species);
59 virtual phase::which_phase
119 preRegrid(
const int a_lbase,
const int a_oldFinestLevel);
134 regrid(
const int a_lmin,
const int a_oldFinestLevel,
const int a_newFinestLevel);
147 setAmr(
const RefCountedPtr<AmrMesh>& a_amrMesh);
161 setPhase(
const phase::which_phase a_phase = phase::gas);
177 setTime(
const int a_step,
const Real a_time,
const Real a_dt);
210 virtual Vector<RefCountedPtr<T>>&
216 virtual Vector<RefCountedPtr<CdrSpecies>>&
222 virtual Vector<EBAMRCellData*>
228 virtual Vector<EBAMRCellData*>
234 virtual Vector<EBAMRCellData*>
240 virtual Vector<EBAMRCellData*>
246 virtual Vector<EBAMRFluxData*>
252 virtual Vector<EBAMRIVData*>
258 virtual Vector<EBAMRIVData*>
264 virtual Vector<EBAMRIFData*>
300 template <
class T,
class S>
318 RefCountedPtr<CdrLayout<T>>
319 newLayout(
const Vector<RefCountedPtr<CdrSpecies>>& a_species)
const;
322 #include <CD_NamespaceFooter.H>
Implementation of CD_CdrLayout.H.
Declaration of an abstract class for solving scalar convection-diffusion-reaction problems.
Factory class for CdrLayout. T is (usually) CdrSolver and S is the implementation class (e....
Definition: CD_CdrLayout.H:302
CdrFactory()
Default constructor (does nothing)
Definition: CD_CdrLayoutImplem.H:533
RefCountedPtr< CdrLayout< T > > newLayout(const Vector< RefCountedPtr< CdrSpecies >> &a_species) const
Factory method, create a new CdrLayout.
Definition: CD_CdrLayoutImplem.H:546
~CdrFactory()
Default constructor (does nothing)
Definition: CD_CdrLayoutImplem.H:539
Iterator class for CdrLayout. This allows iteration through solvers (or subsets of solvers).
Definition: CD_CdrIterator.H:27
Class for holding a set of CdrSolvers.
Definition: CD_CdrLayout.H:37
virtual void setPhase(const phase::which_phase a_phase=phase::gas)
Set phase.
Definition: CD_CdrLayoutImplem.H:247
virtual std::string getRealm() const
Get the realm where the Cdr solvers live.
Definition: CD_CdrLayoutImplem.H:67
virtual void parseOptions()
Parse class options.
Definition: CD_CdrLayoutImplem.H:107
virtual void parseRuntimeOptions()
Parse runtime options.
Definition: CD_CdrLayoutImplem.H:121
virtual Vector< EBAMRCellData * > getPhis()
Get all cell-centered states.
Definition: CD_CdrLayoutImplem.H:390
virtual Vector< EBAMRIVData * > getEbFlux()
Get all EB flux data holders.
Definition: CD_CdrLayoutImplem.H:498
virtual Vector< EBAMRCellData * > getSources()
Get all source terms.
Definition: CD_CdrLayoutImplem.H:408
virtual phase::which_phase getPhase() const
Get phase.
Definition: CD_CdrLayoutImplem.H:43
virtual void preRegrid(const int a_lbase, const int a_oldFinestLevel)
Call preRegrid(...) method for all the CdrSolvers.
Definition: CD_CdrLayoutImplem.H:163
virtual Vector< EBAMRIFData * > getDomainFlux()
Get domain flux data holders.
Definition: CD_CdrLayoutImplem.H:516
virtual Vector< EBAMRCellData * > getVelocities()
Get all cell-centered velocities.
Definition: CD_CdrLayoutImplem.H:426
virtual void writePlotFile()
Convenience function. All solvers write plot files (for debugging purposes)
Definition: CD_CdrLayoutImplem.H:292
virtual void setComputationalGeometry(const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry)
Set the computational geometry for all CdrSolvers.
Definition: CD_CdrLayoutImplem.H:233
virtual void setAmr(const RefCountedPtr< AmrMesh > &a_amrMesh)
Set AmrMesh for all CdrSolvers.
Definition: CD_CdrLayoutImplem.H:219
virtual Real computeDiffusionDt()
Get time step for explicit diffusion.
Definition: CD_CdrLayoutImplem.H:326
virtual ~CdrLayout()
Destructor.
Definition: CD_CdrLayoutImplem.H:36
virtual void addSolver(RefCountedPtr< T > &a_solver)
Add solver. This appends a_solver to m_solvers.
Definition: CD_CdrLayoutImplem.H:95
virtual Vector< EBAMRIVData * > getEbCenteredDiffusionCoefficient()
Get all EB-centered diffusion coefficients.
Definition: CD_CdrLayoutImplem.H:480
phase::which_phase m_phase
Phase where solvers live.
Definition: CD_CdrLayout.H:276
virtual void setTime(const int a_step, const Real a_time, const Real a_dt)
Set time.
Definition: CD_CdrLayoutImplem.H:278
virtual Real computeAdvectionDiffusionDt()
Get the time step for explicit advection-diffusion.
Definition: CD_CdrLayoutImplem.H:346
virtual Vector< EBAMRFluxData * > getFaceCenteredDiffusionCoefficient()
Get all face-centered diffusion coefficients.
Definition: CD_CdrLayoutImplem.H:462
virtual void setVerbosity(const int a_verbosity)
Set verbosity for all CdrSolvers.
Definition: CD_CdrLayoutImplem.H:263
virtual void registerOperators()
Register operators.
Definition: CD_CdrLayoutImplem.H:205
CdrLayout()=delete
Disallowed weak constructor. Use the full constructor.
virtual Vector< RefCountedPtr< T > > & getSolvers()
Get solvers.
Definition: CD_CdrLayoutImplem.H:366
virtual void regrid(const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel)
Regrid method. Calls regrid(...) for every CdrSolver.
Definition: CD_CdrLayoutImplem.H:191
virtual Vector< EBAMRCellData * > getCellCenteredDiffusionCoefficients()
Get all cell-centered diffusion coefficients.
Definition: CD_CdrLayoutImplem.H:444
virtual void allocate()
Allocate internal storage for solvers.
Definition: CD_CdrLayoutImplem.H:135
virtual void initialData()
Initial data. Fill all solvers with initial data.
Definition: CD_CdrLayoutImplem.H:177
int m_verbosity
Verbosity.
Definition: CD_CdrLayout.H:281
virtual Vector< RefCountedPtr< CdrSpecies > > & getSpecies()
Get species.
Definition: CD_CdrLayoutImplem.H:378
std::string m_realm
Realm where solvers live.
Definition: CD_CdrLayout.H:271
virtual CdrIterator< T > iterator()
Get an iterator which can iterate through the various Cdr solvers.
Definition: CD_CdrLayoutImplem.H:55
Vector< RefCountedPtr< CdrSolver > > m_solvers
Solver instantiations.
Definition: CD_CdrLayout.H:286
virtual Real computeAdvectionDt()
Get CFL time for advection.
Definition: CD_CdrLayoutImplem.H:306
virtual void setRealm(const std::string a_realm)
Set realm for all CdrSolvers.
Definition: CD_CdrLayoutImplem.H:79
Vector< RefCountedPtr< CdrSpecies > > m_species
Cdr species.
Definition: CD_CdrLayout.H:291
virtual void deallocate()
Deallocate solver internals.
Definition: CD_CdrLayoutImplem.H:149