ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_RANSClosure.H File Reference
#include <cmath>
#include <AMReX_REAL.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_Algorithm.H>
#include "ERF_NumericalConstants.H"
Include dependency graph for ERF_RANSClosure.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 AL01
 

Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::geom_length (amrex::Real l_g_raw, amrex::Real l_g_max)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::smooth_Rt (amrex::Real Rt, amrex::Real Rt_crit, amrex::Real Rt_min)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::turb_length (amrex::Real l_g, amrex::Real N2, amrex::Real tke, amrex::Real Cmu0_pow3, amrex::Real inv_Cb_sq, amrex::Real Rt_crit, amrex::Real Rt_min, amrex::Real eps)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::unstable_length_bound (amrex::Real l_g, amrex::Real Cmu0_pow3, amrex::Real inv_Cb_sq, amrex::Real Rt_min)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::dissipation (amrex::Real rho, amrex::Real Cmu0_pow3, amrex::Real tke, amrex::Real length)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::richardson (amrex::Real length, amrex::Real N2, amrex::Real tke, amrex::Real Cmu0_pow3)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::cmu (amrex::Real Rt, amrex::Real Cmu0)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real AL01::cmu_prime (amrex::Real Rt, amrex::Real Cmu0)
 

Variables

constexpr amrex::Real AL01::Rt_min_lower_bound = amrex::Real(-3.6)
 

Detailed Description

Closure relations of the one-equation k RANS model of Axell & Liungman (2001), Environ. Fluid Mech. 1, 71-106 (AL01), as device-inline functions so that ComputeTurbulentViscosityRANS and the unit tests evaluate exactly the same expressions.