#include <ERF_ParFunctions.H>
#include <AMReX_ParmParse.H>
Go to the source code of this file.
|
| void | erf_init_rayleigh (amrex::Vector< amrex::Vector< amrex::Real > > &rayleigh_ptrs, amrex::Geometry const &geom, std::unique_ptr< amrex::MultiFab > &, amrex::Real) override |
| |
◆ erf_init_rayleigh()
| void erf_init_rayleigh |
( |
amrex::Vector< amrex::Vector< amrex::Real > > & |
rayleigh_ptrs, |
|
|
amrex::Geometry const & |
geom, |
|
|
std::unique_ptr< amrex::MultiFab > & |
, |
|
|
amrex::Real |
|
|
) |
| |
|
override |
Initialize a Rayleigh damping layer with the same structure as in WRF, based on Durran and Klemp 1983
14 amrex::ParmParse
pp_prob(
"prob");
18 amrex::Real
T_0 = amrex::Real(300.0);
pp_prob.query(
"rayleigh_T_0",
T_0);
20 const int khi = geom.Domain().bigEnd()[2];
22 for (
int k = 0; k <=
khi; k++)
30 amrex::ParmParse pp_erf(
"erf");
31 std::string my_prob_name; pp_erf.get(
"prob_name",my_prob_name);
32 std::string my_prob_name_ci = amrex::toLower(my_prob_name);
34 if (my_prob_name_ci ==
"moving terrain") {
35 for (
int k = 60; k <=
khi; k++)
@ ubar
Definition: ERF_DataStruct.H:235
@ wbar
Definition: ERF_DataStruct.H:235
@ vbar
Definition: ERF_DataStruct.H:235
@ thetabar
Definition: ERF_DataStruct.H:235
ParmParse pp_prob("prob")
Real T_0
Definition: ERF_InitCustomPert_ABL.H:19
const int khi
Definition: ERF_InitCustomPert_Bubble.H:25
Real V_0
Definition: ERF_InitCustomPert_TaylorGreenVortex.H:10
Real U_0
Definition: ERF_InitCustomPert_TurbulentInflow.H:18
Real W_0
Definition: ERF_InitCustomPert_TurbulentInflow.H:20
constexpr amrex::Real two
Definition: ERF_NumericalConstants.H:38
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:37
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36