1 #ifndef ERF_DIFF_STRUCT_H_
2 #define ERF_DIFF_STRUCT_H_
7 #include <AMReX_ParmParse.H>
8 #include <AMReX_Print.H>
23 amrex::ParmParse
pp(pp_prefix);
25 static std::string molec_diff_type_string =
"None";
26 pp.query(
"molec_diff_type",molec_diff_type_string);
28 if (!molec_diff_type_string.compare(
"Constant")) {
30 }
else if (!molec_diff_type_string.compare(
"ConstantAlpha")) {
32 }
else if (!molec_diff_type_string.compare(
"None")) {
35 amrex::Error(
"Don't know this molec_diff_type");
53 amrex::Print() <<
"Using constant kinematic diffusion coefficients" << std::endl;
55 amrex::Print() <<
" temperature : " <<
alpha_T <<
" m^2/s" << std::endl;
56 amrex::Print() <<
" scalar : " <<
alpha_C <<
" m^2/s" << std::endl;
59 amrex::Print() <<
"Using constant dynamic diffusion coefficients" << std::endl;
60 amrex::Print() <<
" momentum : " <<
dynamic_viscosity <<
" kg/(m-s)" << std::endl;
61 amrex::Print() <<
" temperature : " <<
rhoAlpha_T <<
" kg/(m-s)" << std::endl;
62 amrex::Print() <<
" scalar : " <<
rhoAlpha_C <<
" kg/(m-s)" << std::endl;
69 amrex::Print() <<
"Diffusion choices: " << std::endl;
70 amrex::Print() <<
" rho0_trans : " <<
rho0_trans << std::endl;
71 amrex::Print() <<
" alpha_T : " <<
alpha_T << std::endl;
72 amrex::Print() <<
" alpha_C : " <<
alpha_C << std::endl;
76 amrex::Print() <<
"Using constant molecular diffusivity (relevant for DNS)" << std::endl;
78 amrex::Print() <<
"Not using any molecular diffusivity, i.e. using the modeled turbulent diffusivity"
MolecDiffType
Definition: ERF_DiffStruct.H:11
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real pp(amrex::Real y)
Definition: ERF_MicrophysicsUtils.H:230
Definition: ERF_DiffStruct.H:19
amrex::Real rho0_trans
Definition: ERF_DiffStruct.H:91
bool eb_diff_constraint_z
Definition: ERF_DiffStruct.H:99
amrex::Real rhoAlpha_C
Definition: ERF_DiffStruct.H:95
amrex::Real rhoAlpha_T
Definition: ERF_DiffStruct.H:94
bool eb_diff_constraint_x
Definition: ERF_DiffStruct.H:97
amrex::Real alpha_T
Definition: ERF_DiffStruct.H:87
bool eb_diff_constraint_y
Definition: ERF_DiffStruct.H:98
amrex::Real alpha_C
Definition: ERF_DiffStruct.H:88
void init_params(std::string pp_prefix)
Definition: ERF_DiffStruct.H:21
void display()
Definition: ERF_DiffStruct.H:67
MolecDiffType molec_diff_type
Definition: ERF_DiffStruct.H:84
amrex::Real dynamic_viscosity
Definition: ERF_DiffStruct.H:96