chombo-discharge
|
Class for holding a set of RtSolvers. T must derive from RtSolver. More...
#include <CD_RtLayout.H>
Public Member Functions | |
RtLayout (const Vector< RefCountedPtr< RtSpecies >> &a_RtSpecies) | |
Full constructor. More... | |
virtual | ~RtLayout () |
Destructor (does nothing) | |
virtual RtIterator< T > | iterator () |
Get iterator. More... | |
virtual const std::string | getRealm () const |
Get realm where the solvers are allocated. | |
virtual void | setRealm (const std::string a_realm) |
Set realm for solvers. More... | |
virtual void | addSolver (RefCountedPtr< T > a_solver) |
Add a new solver to the solver layout. More... | |
virtual void | parseOptions () |
Parse options. | |
virtual void | parseRuntimeOptions () |
Parse runtime options. | |
virtual void | allocate () |
Allocate internal storage for solvers. | |
virtual void | preRegrid (const int a_base, const int a_oldFinestLevel) |
Pre regrid stuff. More... | |
virtual void | deallocate () |
Deallocate internal storage for solvers. | |
virtual void | regrid (const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel) |
Regrid all solvers. More... | |
virtual void | registerOperators () |
Register operators. | |
virtual void | setAmr (const RefCountedPtr< AmrMesh > &a_amr) |
Set amr. More... | |
virtual void | setComputationalGeometry (const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry) |
Set the computational geometry. More... | |
virtual void | sanityCheck () |
Do a sanity check. | |
virtual void | setPhase (phase::which_phase a_phase=phase::gas) |
Set phase. More... | |
virtual void | setVerbosity (const int a_verbosity) |
Set verbosity. More... | |
virtual void | setTime (const int a_step, const Real a_time, const Real a_dt) |
Set time. More... | |
virtual void | setSource (const EBAMRCellData &a_source) |
Convenience function. Set source terms for all species. Mostly used for debugging. More... | |
virtual void | setSource (const Real a_source) |
Convenience function. Set constant source terms for all species. Mostly used for debugging. More... | |
virtual void | setStationary (const bool a_stationary) |
Turn on/off stationary. More... | |
virtual void | writePlotFile () |
Convenience function. All solvers write plot files. | |
virtual void | advance (const Real a_dt) |
Convenience function. Call advance method for each solver. More... | |
virtual void | initialData () |
Fill with initial data. More... | |
virtual bool | isStationary () |
Check if solvers are stationary. | |
virtual phase::which_phase | getPhase () |
Get phase. | |
virtual Vector< RefCountedPtr< T > > & | getSolvers () |
Get solvers. | |
virtual Vector< RefCountedPtr< RtSpecies > > & | getSpecies () |
Get species. | |
virtual Vector< EBAMRCellData * > | getSources () |
Get all source terms. | |
virtual Vector< EBAMRCellData * > | getPhis () |
Get all states. | |
Protected Attributes | |
std::string | m_realm |
Realm. | |
phase::which_phase | m_phase |
Phase. | |
Vector< RefCountedPtr< T > > | m_solvers |
Solvers. | |
Vector< RefCountedPtr< RtSpecies > > | m_species |
Species. | |
int | m_verbosity |
Verbosity. | |
Class for holding a set of RtSolvers. T must derive from RtSolver.
RtLayout< T >::RtLayout | ( | const Vector< RefCountedPtr< RtSpecies >> & | a_RtSpecies | ) |
Full constructor.
[in] | a_RtSpecies | List of RTE species. |
|
virtual |
Add a new solver to the solver layout.
[in] | a_solver | New RTE solver. |
|
virtual |
Convenience function. Call advance method for each solver.
[in] | a_dt | Advance method. |
|
virtual |
Fill with initial data.
Only relevant for transient solvers
|
virtual |
Get iterator.
|
virtual |
Pre regrid stuff.
[in] | a_base | Coarsest level which changes. |
[in] | a_oldFinestLevel | Finest AMR level before regrid. |
|
virtual |
Regrid all solvers.
[in] | a_lmin | Coarsest level where grids did not change. |
[in] | a_oldFinestLevel | Finest AMR level before the regrid. |
[in] | a_newFinestLevel | Finest AMR level after the regrid. |
Set amr.
[in] | a_amr | AmrMesh object. |
|
virtual |
Set the computational geometry.
[in] | a_computationalGeometry | Computational geometry. |
|
virtual |
Set phase.
This must be done BEFORE callilng setComputationalGeometry
[in] | a_phase | Phase |
|
virtual |
Set realm for solvers.
[in] | a_realm | Realm name |
|
virtual |
Convenience function. Set source terms for all species. Mostly used for debugging.
[in] | a_source | Source term. Copied into every solver's source term. |
|
virtual |
Convenience function. Set constant source terms for all species. Mostly used for debugging.
[in] | a_source | Source term set on every solver. |
|
virtual |
Turn on/off stationary.
[in] | a_stationary | If true, every RTE solver will be set to stationary. |
|
virtual |
Set time.
[in] | a_step | Time step number |
[in] | a_time | Time (in seconds) |
[in] | a_dt | Time step increment |
|
virtual |
Set verbosity.
[in] | a_verbosity | Verbosity level for solvers. |