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 >> &, const amrex::GpuArray< ERF_BC, AMREX_SPACEDIM *2 > &) 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_Moist_Size () override |
get the number of microphysics conserved moist (water-related) state variables More... | |
int | Get_Qstate_NonMoist_Size () override |
get the number of microphysics conserved non-moist (non-water, i.e., other vapor/condensed species) 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... | |
virtual void | GetPlotVarNames (amrex::Vector< std::string > &a_vec) const override |
Returns a list of additional plot variable names. More... | |
virtual void | GetPlotVar (const std::string &a_name, amrex::MultiFab &a_mf, const int a_lev) const override |
Fills in a MultiFab for plotting. More... | |
![]() | |
Microphysics () | |
Null constructor. More... | |
virtual | ~Microphysics ()=default |
default destructor More... | |
int | Get_Qstate_Size () |
get total number of conserved state variables 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 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 microphysics conserved moist (water-related) state variables
Implements Microphysics.
|
inlineoverridevirtual |
get the number of microphysics conserved non-moist (non-water, i.e., other vapor/condensed species) state variables
Implements Microphysics.
|
inlineoverridevirtual |
Fills in a MultiFab for plotting.
Implements Microphysics.
|
inlineoverridevirtual |
Returns a list of additional plot variable names.
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_Moist_Size(), Get_Qstate_NonMoist_Size(), GetPlotVar(), GetPlotVarNames(), Init(), SetModel(), Update_Micro_Vars_Lev(), and Update_State_Vars_Lev().