|
chombo-discharge
|
Implementation of TimeStepper for solving for a single radiative transfer species. This supports both Monte Carlo photons and Helmholtz approximations through the common RtSolver interface. More...
#include <CD_RadiativeTransferStepper.H>


Public Member Functions | |
| RadiativeTransferStepper () | |
| Constructor. Reads a couple of input options. | |
| virtual | ~RadiativeTransferStepper () |
| Destructor (does nothing) | |
| void | setupSolvers () override |
| Set up the solver. | |
| void | initialData () override |
| Fill simulation with initial data. | |
| void | allocate () override |
| Allocate necessary memory for solvers. | |
| void | postInitialize () override |
| Post-initialization functionality – sets the source term. | |
| void | postCheckpointSetup () override |
| Perform post-checkpoint setup routines (sets the source in the solver) | |
| int | getNumberOfPlotVariables () const override |
| Get number of plot variables for this physics module. | |
| Vector< std::string > | getPlotVariableNames () const override |
| Get plot variable names. | |
| void | writePlotData (LevelData< EBCellFAB > &a_output, int &a_icomp, const std::string a_outputRealm, const int a_level) const override |
| Write plot data to output holder. | |
| Real | computeDt () override |
| Compute a time step to be used by Driver. | |
| Real | advance (const Real a_dt) override |
| Advancement method. Calls the solver function. | |
| void | synchronizeSolverTimes (const int a_step, const Real a_time, const Real a_dt) override |
| Synchronzie solver times and time steps. | |
| void | printStepReport () override |
| Print a step report (does nothing) | |
| void | parseRuntimeOptions () override |
| Parse runtime options. | |
| void | registerRealms () override |
| Register realms. | |
| void | registerOperators () override |
| Register operators – calls the solver registration routine. | |
| void | preRegrid (const int a_lmin, const int a_oldFinestLevel) override |
| Perform pre-regrid operations – calls the solver function. operation takes a lot of memory. | |
| void | regrid (const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel) override |
| Regrid function. Calls the solver function. | |
| void | postRegrid () override |
| Post-regrid function. Sets a Gaussian source. | |
| void | forceDt (const Real a_dt) |
| Force usage of a time step. | |
| Real | getDt () const |
| Get the time step. | |
| const EBAMRCellData & | getPhi () const |
| Get the solver solution. | |
Public Member Functions inherited from TimeStepper | |
| TimeStepper () | |
| Default constructor (does nothing) | |
| virtual | ~TimeStepper () |
| Default destructor (does nothing) | |
| void | setAmr (const RefCountedPtr< AmrMesh > &a_amr) |
| Set AmrMesh. | |
| void | setComputationalGeometry (const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry) |
| Set the computational geometry. | |
| virtual void | prePlot () |
| An option for calling special functions prior to plotting data. Called by Driver in the IMMEDIATELY before writing the plot file. | |
| virtual void | postPlot () |
| An option for calling special functions prior to plotting data. Called by Driver in the IMMEDIATELY after writing the plot file. | |
| virtual Vector< long int > | getCheckpointLoads (const std::string a_realm, const int a_level) const |
| Get computational loads to be checkpointed. | |
| virtual bool | needToRegrid () |
| Fuction which can have Driver do regrids at arbitrary points in the simulation. | |
| virtual bool | loadBalanceThisRealm (const std::string a_realm) const |
| Load balancing query for a specified realm. If this returns true for a_realm, load balancing routines will be called during regrids. | |
| virtual void | loadBalanceBoxes (Vector< Vector< int > > &a_procs, Vector< Vector< Box > > &a_boxes, const std::string a_realm, const Vector< DisjointBoxLayout > &a_grids, const int a_lmin, const int a_finestLevel) |
| Load balance grid boxes for a specified realm. | |
Protected Member Functions | |
| void | setGaussianSource () |
| For setting a Gaussian source in the radiative transfer equation solver. | |
Protected Attributes | |
| std::string | m_realm |
| Realm where solver lives. | |
| Real | m_dt |
| Time step to use. | |
| Real | m_forceDt |
| Forced time step. | |
| RefCountedPtr< RtSolver > | m_solver |
| Reference to solver. | |
| RefCountedPtr< RtSpecies > | m_species |
| Reference to species. | |
Protected Attributes inherited from TimeStepper | |
| int | m_verbosity |
| Class verbosity. | |
| int | m_timeStep |
| Time step. | |
| Real | m_time |
| TIme. | |
| Real | m_dt |
| Previous time step size. | |
| RefCountedPtr< AmrMesh > | m_amr |
| AmrMesh. | |
| RefCountedPtr< ComputationalGeometry > | m_computationalGeometry |
| Computational geometry. | |
Implementation of TimeStepper for solving for a single radiative transfer species. This supports both Monte Carlo photons and Helmholtz approximations through the common RtSolver interface.
Advancement method. Calls the solver function.
| [in] | a_dt | Time step to be used for advancement |
Implements TimeStepper.
Allocate necessary memory for solvers.
Implements TimeStepper.
Compute a time step to be used by Driver.
Implements TimeStepper.
Force usage of a time step.
To remove the forced time step restriction, set a_dt to something negative
| [in] | a_dt | Forced time step. |
|
overridevirtual |
Get number of plot variables for this physics module.
Implements TimeStepper.
|
overridevirtual |
Get plot variable names.
Implements TimeStepper.
Fill simulation with initial data.
Implements TimeStepper.
Parse runtime options.
Reimplemented from TimeStepper.
Perform post-checkpoint setup routines (sets the source in the solver)
Implements TimeStepper.
Post-initialization functionality – sets the source term.
Implements TimeStepper.
Post-regrid function. Sets a Gaussian source.
Implements TimeStepper.
|
overridevirtual |
Perform pre-regrid operations – calls the solver function. operation takes a lot of memory.
| [in] | a_lmin | The coarsest level that changes |
| [in] | a_oldFinestLevel | The finest level before the regrid. |
Implements TimeStepper.
Print a step report (does nothing)
This is called by Driver after time step.
Implements TimeStepper.
Register operators – calls the solver registration routine.
Implements TimeStepper.
Register realms.
Implements TimeStepper.
|
overridevirtual |
Regrid function. Calls the solver function.
| [in] | a_lmin | The coarsest level that changed. |
| [in] | a_oldFinestLevel | The finest level before the regrid. |
| [in] | a_newFinestLevel | The finest level after the regrid. |
Implements TimeStepper.
Set up the solver.
Implements TimeStepper.
|
overridevirtual |
Synchronzie solver times and time steps.
| [in] | a_step | Time step |
| [in] | a_time | Time (in seconds) |
| [in] | a_dt | Time step that was used. |
Implements TimeStepper.
|
overridevirtual |
Write plot data to output holder.
| [in,out] | a_output | Output data holder. |
| [in,out] | a_icomp | Starting component in a_output to begin at. |
| [in] | a_outputRealm | Realm where a_output belongs |
| [in] | a_level | Grid level |
Implements TimeStepper.
|
protected |
Forced time step.
This exists because the solver uses m_dt as a runtime input but there are cases when we want to force a time step.