17 #include <CD_NamespaceHeader.H>
33 RtLayout(
const Vector<RefCountedPtr<RtSpecies>>& a_RtSpecies);
50 virtual const std::string
91 preRegrid(
const int a_base,
const int a_oldFinestLevel);
106 regrid(
const int a_lmin,
const int a_oldFinestLevel,
const int a_newFinestLevel);
119 setAmr(
const RefCountedPtr<AmrMesh>& a_amr);
140 setPhase(phase::which_phase a_phase = phase::gas);
157 setTime(
const int a_step,
const Real a_time,
const Real a_dt);
209 virtual phase::which_phase
215 virtual Vector<RefCountedPtr<T>>&
221 virtual Vector<RefCountedPtr<RtSpecies>>&
227 virtual Vector<EBAMRCellData*>
233 virtual Vector<EBAMRCellData*>
268 template <
class T,
class S>
286 RefCountedPtr<RtLayout<T>>
287 newLayout(
const Vector<RefCountedPtr<RtSpecies>>& a_species)
const;
290 #include <CD_NamespaceFooter.H>
Implementation of CD_RtLayout.H.
Abstract parent class for various radiative transfer solvers.
Factory class for RtLayout.
Definition: CD_RtLayout.H:270
~RtFactory()
Destructor (does nothing)
Definition: CD_RtLayoutImplem.H:452
RtFactory()
Constructor (does nothing)
Definition: CD_RtLayoutImplem.H:448
RefCountedPtr< RtLayout< T > > newLayout(const Vector< RefCountedPtr< RtSpecies >> &a_species) const
Get a new Layout. This will cast S to a specific class (T)
Definition: CD_RtLayoutImplem.H:457
Iterator class for RtLayout.
Definition: CD_RtIterator.H:24
Class for holding a set of RtSolvers. T must derive from RtSolver.
Definition: CD_RtLayout.H:27
Vector< RefCountedPtr< T > > m_solvers
Solvers.
Definition: CD_RtLayout.H:250
virtual void setVerbosity(const int a_verbosity)
Set verbosity.
Definition: CD_RtLayoutImplem.H:196
virtual void setComputationalGeometry(const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry)
Set the computational geometry.
Definition: CD_RtLayoutImplem.H:164
int m_verbosity
Verbosity.
Definition: CD_RtLayout.H:260
virtual const std::string getRealm() const
Get realm where the solvers are allocated.
Definition: CD_RtLayoutImplem.H:49
virtual Vector< RefCountedPtr< T > > & getSolvers()
Get solvers.
Definition: CD_RtLayoutImplem.H:397
virtual void parseOptions()
Parse options.
Definition: CD_RtLayoutImplem.H:74
virtual void setStationary(const bool a_stationary)
Turn on/off stationary.
Definition: CD_RtLayoutImplem.H:303
virtual void sanityCheck()
Do a sanity check.
Definition: CD_RtLayoutImplem.H:213
virtual void setTime(const int a_step, const Real a_time, const Real a_dt)
Set time.
Definition: CD_RtLayoutImplem.H:228
Vector< RefCountedPtr< RtSpecies > > m_species
Species.
Definition: CD_RtLayout.H:255
virtual Vector< EBAMRCellData * > getSources()
Get all source terms.
Definition: CD_RtLayoutImplem.H:411
virtual void registerOperators()
Register operators.
Definition: CD_RtLayoutImplem.H:258
virtual void setSource(const EBAMRCellData &a_source)
Convenience function. Set source terms for all species. Mostly used for debugging.
Definition: CD_RtLayoutImplem.H:273
virtual bool isStationary()
Check if solvers are stationary.
Definition: CD_RtLayoutImplem.H:363
virtual Vector< EBAMRCellData * > getPhis()
Get all states.
Definition: CD_RtLayoutImplem.H:430
virtual void deallocate()
Deallocate internal storage for solvers.
Definition: CD_RtLayoutImplem.H:134
virtual void setAmr(const RefCountedPtr< AmrMesh > &a_amr)
Set amr.
Definition: CD_RtLayoutImplem.H:149
virtual void regrid(const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel)
Regrid all solvers.
Definition: CD_RtLayoutImplem.H:243
virtual void addSolver(RefCountedPtr< T > a_solver)
Add a new solver to the solver layout.
Definition: CD_RtLayoutImplem.H:67
virtual void parseRuntimeOptions()
Parse runtime options.
Definition: CD_RtLayoutImplem.H:89
virtual Vector< RefCountedPtr< RtSpecies > > & getSpecies()
Get species.
Definition: CD_RtLayoutImplem.H:404
RtLayout(const Vector< RefCountedPtr< RtSpecies >> &a_RtSpecies)
Full constructor.
Definition: CD_RtLayoutImplem.H:24
virtual RtIterator< T > iterator()
Get iterator.
Definition: CD_RtLayoutImplem.H:42
virtual ~RtLayout()
Destructor (does nothing)
Definition: CD_RtLayoutImplem.H:35
phase::which_phase m_phase
Phase.
Definition: CD_RtLayout.H:245
std::string m_realm
Realm.
Definition: CD_RtLayout.H:240
virtual void setRealm(const std::string a_realm)
Set realm for solvers.
Definition: CD_RtLayoutImplem.H:56
virtual void writePlotFile()
Convenience function. All solvers write plot files.
Definition: CD_RtLayoutImplem.H:318
virtual void preRegrid(const int a_base, const int a_oldFinestLevel)
Pre regrid stuff.
Definition: CD_RtLayoutImplem.H:119
virtual void initialData()
Fill with initial data.
Definition: CD_RtLayoutImplem.H:348
virtual void advance(const Real a_dt)
Convenience function. Call advance method for each solver.
Definition: CD_RtLayoutImplem.H:333
virtual phase::which_phase getPhase()
Get phase.
Definition: CD_RtLayoutImplem.H:385
virtual void allocate()
Allocate internal storage for solvers.
Definition: CD_RtLayoutImplem.H:104
virtual void setPhase(phase::which_phase a_phase=phase::gas)
Set phase.
Definition: CD_RtLayoutImplem.H:179