ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Eulerian microphysics interface. More...
#include <ERF_EulerianMicrophysics.H>
Public Member Functions | |
EulerianMicrophysics () | |
Null constructor. More... | |
~EulerianMicrophysics ()=default | |
default destructor More... | |
EulerianMicrophysics (const int &nlev, const MoistureType &a_model_type) | |
Constructor: create the moisture model. More... | |
void | Define (const int &lev, SolverChoice &sc) override |
Define the moisture model. More... | |
void | Init (const int &lev, const amrex::MultiFab &cons_in, const amrex::BoxArray &grids, const amrex::Geometry &geom, const amrex::Real &dt_advance, std::unique_ptr< amrex::MultiFab > &z_phys_nd, std::unique_ptr< amrex::MultiFab > &detJ_cc) override |
Initialize the moisture model. More... | |
void | Advance (const int &lev, const amrex::Real &dt_advance, const int &, const amrex::Real &, const SolverChoice &solverChoice, amrex::Vector< amrex::Vector< amrex::MultiFab >> &, const amrex::Vector< std::unique_ptr< amrex::MultiFab >> &) override |
Advance the moisture model for one time step. More... | |
void | Update_Micro_Vars_Lev (const int &lev, amrex::MultiFab &cons_in) override |
update microphysics variables from ERF state variables More... | |
void | Update_State_Vars_Lev (const int &lev, amrex::MultiFab &cons_in) override |
update ERF state variables from microphysics variables More... | |
amrex::MultiFab * | Get_Qmoist_Ptr (const int &lev, const int &varIdx) override |
get pointer to a moisture variable More... | |
int | Get_Qmoist_Size (const int &) override |
get the number of moisture model variables More... | |
int | Get_Qstate_Size () override |
get the number of moisture-model-related conserved state variables More... | |
void | Get_Qmoist_Restart_Vars (const int a_lev, const SolverChoice &a_sc, std::vector< int > &a_idx, std::vector< std::string > &a_names) const override |
get the indices and names of moisture model variables for restart at a given level More... | |
Public Member Functions inherited from Microphysics | |
Microphysics () | |
Null constructor. More... | |
virtual | ~Microphysics ()=default |
default destructor More... | |
Protected Member Functions | |
template<class NewMoistModel > | |
void | SetModel () |
Create and set the specified moisture model. More... | |
Private Attributes | |
amrex::Vector< std::unique_ptr< NullMoist > > | m_moist_model |
Additional Inherited Members | |
Static Public Member Functions inherited from Microphysics | |
static MoistureModelType | modelType (const MoistureType a_moisture_type) |
query if a specified moisture model is Eulerian or Lagrangian More... | |
Eulerian microphysics interface.
|
default |
default destructor
|
inline |
Constructor: create the moisture model.
nlev | Number of AMR levels |
a_model_type | moisture model |
|
inlineoverridevirtual |
Advance the moisture model for one time step.
lev | AMR level |
dt_advance | Time step |
solverChoice | Solver choice object |
Implements Microphysics.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
get pointer to a moisture variable
lev | AMR level |
varIdx | moisture variable index |
Implements Microphysics.
|
inlineoverridevirtual |
get the indices and names of moisture model variables for restart at a given level
a_lev | level |
a_sc | Solver choice object |
a_idx | indices |
a_names | names |
Implements Microphysics.
|
inlineoverridevirtual |
get the number of moisture model variables
Implements Microphysics.
|
inlineoverridevirtual |
get the number of moisture-model-related conserved state variables
Implements Microphysics.
|
inlineoverridevirtual |
Initialize the moisture model.
lev | AMR level |
cons_in | Conserved state variables |
grids | Grids |
geom | Geometry |
dt_advance | Time step |
Implements Microphysics.
|
inlineprotected |
Create and set the specified moisture model.
|
inlineoverridevirtual |
update microphysics variables from ERF state variables
cons_in | AMR level Conserved state variables |
Implements Microphysics.
|
inlineoverridevirtual |
update ERF state variables from microphysics variables
lev | AMR level |
cons_in | Conserved state variables |
Implements Microphysics.
|
private |
moisture model
Referenced by Advance(), Define(), EulerianMicrophysics(), Get_Qmoist_Ptr(), Get_Qmoist_Restart_Vars(), Get_Qmoist_Size(), Get_Qstate_Size(), Init(), SetModel(), Update_Micro_Vars_Lev(), and Update_State_Vars_Lev().