1 #ifndef ERF_DUST_MODEL_H
2 #define ERF_DUST_MODEL_H
4 #include <AMReX_Geometry.H>
5 #include <AMReX_MultiFab.H>
6 #include <AMReX_REAL.H>
94 const amrex::Geometry&
geom;
95 const amrex::MultiFab&
cons;
96 const amrex::MultiFab&
xvel;
97 const amrex::MultiFab&
yvel;
98 const amrex::MultiFab&
zvel;
103 const DustFire* fire;
120 virtual const char*
name ()
const = 0;
147 virtual void add_sources (
int lev, amrex::MultiFab& cc_src,
const amrex::MultiFab& state,
148 const amrex::MultiFab& detJ_cc,
const amrex::Geometry& geom,
A dust model behind ERF's dust coupling.
Definition: ERF_DustModel.H:115
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.
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.
Definition: ERF_DustModel.H:155
virtual void write_checkpoint(const std::string &) const
Write the model's state into the checkpoint directory, for initialize() to restore.
Definition: ERF_DustModel.H:158
virtual int num_scalars() const
Definition: ERF_DustModel.H:124
virtual void initialize(const DustInit &init)=0
Set the model up, and on a restart restore its state.
virtual void advance(const DustStep &step)=0
Advance the model's own state over the step of level 0 just taken.
virtual const char * name() const =0
Name of the model, as erf.dust.model selects it.
virtual ~DustModel()=default
A fire engine behind the shared coupling layer.
Definition: ERF_FireEngine.H:132
Definition: ERF_SurfaceLayer.H:64
Definition: ERF_InterpolationUtils.H:15
What a dust model reads when it is set up.
Definition: ERF_DustModel.H:74
const amrex::MultiFab & z_phys_nd
Nodal height [m] of level 0.
Definition: ERF_DustModel.H:77
const ERF & erf
ERF instance (public accessors only)
Definition: ERF_DustModel.H:75
SurfaceLayer * surface_layer
The bottom surface layer, or nullptr when zlo is not one.
Definition: ERF_DustModel.H:76
int step
Level 0's step: 0, or the step of the checkpoint.
Definition: ERF_DustModel.H:79
double time
Level 0's time [s]: 0, or the time of the checkpoint.
Definition: ERF_DustModel.H:80
const std::string & restart_chkfile
The checkpoint the run restarts from; empty on a fresh start.
Definition: ERF_DustModel.H:78
The state a dust model reads after each step of level 0.
Definition: ERF_DustModel.H:90
double time
Start of the step [s].
Definition: ERF_DustModel.H:92
int step
The step just taken (0 for the first one)
Definition: ERF_DustModel.H:91
SurfaceLayer * surface_layer
The bottom surface layer, or nullptr.
Definition: ERF_DustModel.H:101
const amrex::MultiFab & xvel
x-velocity on x-faces [m/s], end of the step
Definition: ERF_DustModel.H:96
const amrex::Geometry & geom
Geometry of level 0.
Definition: ERF_DustModel.H:94
const amrex::MultiFab & zvel
z-velocity on z-faces [m/s], end of the step
Definition: ERF_DustModel.H:98
const amrex::MultiFab * surface_q1_flux
Surface vapor flux of level 0 (the turbulence scheme's z flux of q1); nullptr when there is none.
Definition: ERF_DustModel.H:100
const ForceRestoreSoil * soil
Definition: ERF_DustModel.H:108
const amrex::MultiFab & yvel
y-velocity on y-faces [m/s], end of the step
Definition: ERF_DustModel.H:97
const amrex::MultiFab & cons
Conserved state of level 0 at the end of the step.
Definition: ERF_DustModel.H:95
amrex::Real dt
Step of level 0 [s].
Definition: ERF_DustModel.H:93
const amrex::MultiFab * z_phys_cc
Cell-center height [m]; nullptr when ERF holds none.
Definition: ERF_DustModel.H:99
2D horizontal fire computational grid
Definition: ERF_FireGrid.H:42
The force-restore soil of one level, read-only, for a model that reads the ground (the dust coupling'...
Definition: ERF_ForceRestoreHydrologyState.H:24