A dust model behind ERF's dust coupling.
More...
#include <ERF_DustModel.H>
|
| virtual | ~DustModel ()=default |
| |
| virtual const char * | name () const =0 |
| | Name of the model, as erf.dust.model selects it. More...
|
| |
| virtual int | num_scalars () const |
| |
| virtual void | initialize (const DustInit &init)=0 |
| | Set the model up, and on a restart restore its state. More...
|
| |
| virtual void | add_sources (int lev, amrex::MultiFab &cc_src, const amrex::MultiFab &state, const amrex::MultiFab &detJ_cc, const amrex::Geometry &geom, amrex::Real dt)=0 |
| | Add the dust tendencies to the source of the conserved state. More...
|
| |
| virtual void | advance (const DustStep &step)=0 |
| | Advance the model's own state over the step of level 0 just taken. More...
|
| |
| virtual void | write_output (int, double, bool) |
| | Write the model's output for step (0 at start-up); is_final at the end of the run. More...
|
| |
| virtual void | write_checkpoint (const std::string &) const |
| | Write the model's state into the checkpoint directory, for initialize() to restore. More...
|
| |
A dust model behind ERF's dust coupling.
◆ ~DustModel()
| virtual DustModel::~DustModel |
( |
| ) |
|
|
virtualdefault |
◆ add_sources()
| virtual void DustModel::add_sources |
( |
int |
lev, |
|
|
amrex::MultiFab & |
cc_src, |
|
|
const amrex::MultiFab & |
state, |
|
|
const amrex::MultiFab & |
detJ_cc, |
|
|
const amrex::Geometry & |
geom, |
|
|
amrex::Real |
dt |
|
) |
| |
|
pure virtual |
Add the dust tendencies to the source of the conserved state.
- Parameters
-
| [in] | lev | The level; a model that runs on level 0 only returns on the others |
| [in,out] | cc_src | Source of the conserved state [per second]; the model adds to the dust components only |
| [in] | state | The conserved state of this Runge-Kutta stage |
| [in] | detJ_cc | Cell Jacobian (1 on a mesh without terrain): a cell's height is detJ dz |
| [in] | geom | Geometry of the level |
| [in] | dt | The step of the stage's slow update [s] |
◆ advance()
| virtual void DustModel::advance |
( |
const DustStep & |
step | ) |
|
|
pure virtual |
Advance the model's own state over the step of level 0 just taken.
◆ initialize()
| virtual void DustModel::initialize |
( |
const DustInit & |
init | ) |
|
|
pure virtual |
Set the model up, and on a restart restore its state.
Reads the model's inputs (erf.dust.*). On a restart (init.restart_chkfile not empty) the model reads back what its write_checkpoint() wrote there. After this call, on a fresh start, ERF zeroes the dust scalars on every level.
◆ name()
| virtual const char* DustModel::name |
( |
| ) |
const |
|
pure virtual |
Name of the model, as erf.dust.model selects it.
◆ num_scalars()
| virtual int DustModel::num_scalars |
( |
| ) |
const |
|
inlinevirtual |
Number of dust scalars the model fills, from RhoDust_comp on; at most NSCALARS_DUST (ERF stops the run otherwise).
◆ write_checkpoint()
| virtual void DustModel::write_checkpoint |
( |
const std::string & |
| ) |
const |
|
inlinevirtual |
Write the model's state into the checkpoint directory, for initialize() to restore.
◆ write_output()
| virtual void DustModel::write_output |
( |
int |
, |
|
|
double |
, |
|
|
bool |
|
|
) |
| |
|
inlinevirtual |
Write the model's output for step (0 at start-up); is_final at the end of the run.
The documentation for this class was generated from the following file: