ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitRayleighDamping.H File Reference
#include <ERF_ParFunctions.H>
Include dependency graph for ERF_InitRayleighDamping.H:

Go to the source code of this file.

Functions

void erf_init_rayleigh (amrex::Vector< amrex::Vector< amrex::Real > > &rayleigh_ptrs, amrex::Geometry const &geom, std::unique_ptr< amrex::MultiFab > &, amrex::Real) override
 

Function Documentation

◆ 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

12 {
13  const int khi = geom.Domain().bigEnd()[2];
14  for (int k = 0; k <= khi; k++)
15  {
16  rayleigh_ptrs[Rayleigh::ubar][k] = parms.U_0;
17  rayleigh_ptrs[Rayleigh::vbar][k] = parms.V_0;
18  rayleigh_ptrs[Rayleigh::wbar][k] = parms.W_0;
19  rayleigh_ptrs[Rayleigh::thetabar][k] = parms.T_0;
20  }
21 }
@ ubar
Definition: ERF_DataStruct.H:70
@ wbar
Definition: ERF_DataStruct.H:70
@ vbar
Definition: ERF_DataStruct.H:70
@ thetabar
Definition: ERF_DataStruct.H:70