|
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. | |
| virtual | ~RtLayout () |
| Destructor (does nothing) | |
| virtual RtIterator< T > | iterator () |
| Get iterator. | |
| 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. | |
| virtual void | addSolver (RefCountedPtr< T > a_solver) |
| Add a new solver to the solver layout. | |
| 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. | |
| 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. | |
| virtual void | registerOperators () |
| Register operators. | |
| virtual void | setAmr (const RefCountedPtr< AmrMesh > &a_amr) |
| Set amr. | |
| virtual void | setComputationalGeometry (const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry) |
| Set the computational geometry. | |
| virtual void | sanityCheck () |
| Do a sanity check. | |
| virtual void | setPhase (phase::which_phase a_phase=phase::gas) |
| Set phase. | |
| virtual void | setVerbosity (const int a_verbosity) |
| Set verbosity. | |
| virtual void | setTime (const int a_step, const Real a_time, const Real a_dt) |
| Set time. | |
| virtual void | setSource (const EBAMRCellData &a_source) |
| Convenience function. Set source terms for all species. Mostly used for debugging. | |
| virtual void | setSource (const Real a_source) |
| Convenience function. Set constant source terms for all species. Mostly used for debugging. | |
| virtual void | setStationary (const bool a_stationary) |
| Turn on/off stationary. | |
| 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. | |
| virtual void | initialData () |
| Fill with initial data. | |
| 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. |
Add a new solver to the solver layout.
| [in] | a_solver | New RTE solver. |
Convenience function. Call advance method for each solver.
| [in] | a_dt | Advance method. |
|
virtual |
Get phase.
Get all states.
Get realm where the solvers are allocated.
Get solvers.
Get all source terms.
Get species.
Fill with initial data.
Only relevant for transient solvers
Check if solvers are stationary.
Get iterator.
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 |
Set realm for solvers.
| [in] | a_realm | Realm name |
Convenience function. Set source terms for all species. Mostly used for debugging.
| [in] | a_source | Source term. Copied into every solver's source term. |
Convenience function. Set constant source terms for all species. Mostly used for debugging.
| [in] | a_source | Source term set on every solver. |
Turn on/off stationary.
| [in] | a_stationary | If true, every RTE solver will be set to stationary. |
Set time.
| [in] | a_step | Time step number |
| [in] | a_time | Time (in seconds) |
| [in] | a_dt | Time step increment |
Set verbosity.
| [in] | a_verbosity | Verbosity level for solvers. |