ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
SpongeChoice Struct Reference

#include <ERF_SpongeStruct.H>

Collaboration diagram for SpongeChoice:

Public Member Functions

void init_params ()
 
void display ()
 

Public Attributes

std::string pp_prefix {"erf"}
 
bool use_xlo_sponge_damping = false
 
bool use_xhi_sponge_damping = false
 
bool use_ylo_sponge_damping = false
 
bool use_yhi_sponge_damping = false
 
bool use_zlo_sponge_damping = false
 
bool use_zhi_sponge_damping = false
 
amrex::Real sponge_strength
 
std::string sponge_type
 
amrex::Real xlo_sponge_end
 
amrex::Real xhi_sponge_start
 
amrex::Real ylo_sponge_end
 
amrex::Real yhi_sponge_start
 
amrex::Real zlo_sponge_end
 
amrex::Real zhi_sponge_start
 
amrex::Real sponge_density
 
amrex::Real sponge_x_velocity
 
amrex::Real sponge_y_velocity
 
amrex::Real sponge_z_velocity
 

Detailed Description

Container holding the sponge-related choices

Member Function Documentation

◆ display()

void SpongeChoice::display ( )
inline
46  {
47  amrex::Print() << "Sponge choices: " << std::endl;
48  }

Referenced by SolverChoice::display().

Here is the caller graph for this function:

◆ init_params()

void SpongeChoice::init_params ( )
inline
18  {
19  amrex::ParmParse pp(pp_prefix);
20 
21  pp.query("sponge_type", sponge_type);
22 
23  // Include sponge damping
24  pp.query("use_xlo_sponge_damping", use_xlo_sponge_damping);
25  pp.query("use_xhi_sponge_damping", use_xhi_sponge_damping);
26  pp.query("use_ylo_sponge_damping", use_ylo_sponge_damping);
27  pp.query("use_yhi_sponge_damping", use_yhi_sponge_damping);
28  pp.query("use_zlo_sponge_damping", use_zlo_sponge_damping);
29  pp.query("use_zhi_sponge_damping", use_zhi_sponge_damping);
30 
31  pp.query("sponge_strength" , sponge_strength);
32  pp.query("xlo_sponge_end" , xlo_sponge_end);
33  pp.query("xhi_sponge_start", xhi_sponge_start);
34  pp.query("ylo_sponge_end" , ylo_sponge_end);
35  pp.query("yhi_sponge_start", yhi_sponge_start);
36  pp.query("zlo_sponge_end" , zlo_sponge_end);
37  pp.query("zhi_sponge_start", zhi_sponge_start);
38 
39  pp.query("sponge_density" , sponge_density);
40  pp.query("sponge_x_velocity" , sponge_x_velocity);
41  pp.query("sponge_y_velocity" , sponge_y_velocity);
42  pp.query("sponge_z_velocity" , sponge_z_velocity);
43  }
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real pp(amrex::Real y)
Definition: ERF_MicrophysicsUtils.H:219
bool use_xlo_sponge_damping
Definition: ERF_SpongeStruct.H:53
amrex::Real sponge_y_velocity
Definition: ERF_SpongeStruct.H:66
amrex::Real xlo_sponge_end
Definition: ERF_SpongeStruct.H:63
std::string sponge_type
Definition: ERF_SpongeStruct.H:61
amrex::Real zlo_sponge_end
Definition: ERF_SpongeStruct.H:65
bool use_zlo_sponge_damping
Definition: ERF_SpongeStruct.H:57
amrex::Real sponge_strength
Definition: ERF_SpongeStruct.H:60
bool use_ylo_sponge_damping
Definition: ERF_SpongeStruct.H:55
amrex::Real zhi_sponge_start
Definition: ERF_SpongeStruct.H:65
amrex::Real sponge_z_velocity
Definition: ERF_SpongeStruct.H:66
bool use_xhi_sponge_damping
Definition: ERF_SpongeStruct.H:54
amrex::Real sponge_x_velocity
Definition: ERF_SpongeStruct.H:66
bool use_zhi_sponge_damping
Definition: ERF_SpongeStruct.H:58
amrex::Real yhi_sponge_start
Definition: ERF_SpongeStruct.H:64
amrex::Real sponge_density
Definition: ERF_SpongeStruct.H:66
bool use_yhi_sponge_damping
Definition: ERF_SpongeStruct.H:56
amrex::Real xhi_sponge_start
Definition: ERF_SpongeStruct.H:63
std::string pp_prefix
Definition: ERF_SpongeStruct.H:51
amrex::Real ylo_sponge_end
Definition: ERF_SpongeStruct.H:64

Referenced by SolverChoice::init_params().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pp_prefix

std::string SpongeChoice::pp_prefix {"erf"}

Referenced by init_params().

◆ sponge_density

amrex::Real SpongeChoice::sponge_density

◆ sponge_strength

amrex::Real SpongeChoice::sponge_strength

◆ sponge_type

std::string SpongeChoice::sponge_type

◆ sponge_x_velocity

amrex::Real SpongeChoice::sponge_x_velocity

◆ sponge_y_velocity

amrex::Real SpongeChoice::sponge_y_velocity

◆ sponge_z_velocity

amrex::Real SpongeChoice::sponge_z_velocity

◆ use_xhi_sponge_damping

bool SpongeChoice::use_xhi_sponge_damping = false

◆ use_xlo_sponge_damping

bool SpongeChoice::use_xlo_sponge_damping = false

◆ use_yhi_sponge_damping

bool SpongeChoice::use_yhi_sponge_damping = false

◆ use_ylo_sponge_damping

bool SpongeChoice::use_ylo_sponge_damping = false

◆ use_zhi_sponge_damping

bool SpongeChoice::use_zhi_sponge_damping = false

◆ use_zlo_sponge_damping

bool SpongeChoice::use_zlo_sponge_damping = false

◆ xhi_sponge_start

amrex::Real SpongeChoice::xhi_sponge_start

◆ xlo_sponge_end

◆ yhi_sponge_start

amrex::Real SpongeChoice::yhi_sponge_start

◆ ylo_sponge_end

◆ zhi_sponge_start

amrex::Real SpongeChoice::zhi_sponge_start

◆ zlo_sponge_end


The documentation for this struct was generated from the following file: