ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPert_KE.H File Reference

Go to the source code of this file.

Functions

ParmParse pp ("prob")
 
pp query ("KE_0", KE_0)
 
pp query ("KE_decay_height", KE_decay_height)
 
pp query ("KE_decay_order", KE_decay_order)
 
 if (KE_decay_height > 0)
 
 ParallelFor (bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real z=z_cc(i, j, k);if(state_pert.nComp() > RhoKE_comp) { state_pert(i, j, k, RhoKE_comp)=r_hse(i, j, k) *KE_0;if(KE_decay_height > 0) { state_pert(i, j, k, RhoKE_comp) *=max(std::pow(1 - min(z/KE_decay_height, 1.0), KE_decay_order), 1e-12);} } })
 

Variables

Real KE_0 = 0.1
 
Real KE_decay_height = -1
 
Real KE_decay_order = 1
 

Function Documentation

◆ if()

if ( KE_decay_height  ,
 
)
8  {
9  amrex::Print() << "Initial KE profile (order " << KE_decay_order
10  << ") will extend up to " << KE_decay_height
11  << std::endl;
12  }
Real KE_decay_order
Definition: ERF_InitCustomPert_KE.H:6
Real KE_decay_height
Definition: ERF_InitCustomPert_KE.H:5

◆ ParallelFor()

ParallelFor ( bx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real z=z_cc(i, j, k);if(state_pert.nComp() > RhoKE_comp) { state_pert(i, j, k, RhoKE_comp)=r_hse(i, j, k) *KE_0;if(KE_decay_height > 0) { state_pert(i, j, k, RhoKE_comp) *=max(std::pow(1 - min(z/KE_decay_height, 1.0), KE_decay_order), 1e-12);} } }   
)
Here is the call graph for this function:

◆ pp()

ParmParse pp ( "prob"  )

◆ query() [1/3]

pp query ( "KE_0"  ,
KE_0   
)

◆ query() [2/3]

pp query ( "KE_decay_height"  ,
KE_decay_height   
)

◆ query() [3/3]

pp query ( "KE_decay_order"  ,
KE_decay_order   
)

Variable Documentation

◆ KE_0

Real KE_0 = 0.1

Referenced by ParallelFor().

◆ KE_decay_height

Real KE_decay_height = -1

Referenced by if(), and ParallelFor().

◆ KE_decay_order

Real KE_decay_order = 1

Referenced by if(), and ParallelFor().