1 #ifndef ERF_IBSEB_WALLFUNCTION_H
2 #define ERF_IBSEB_WALLFUNCTION_H
4 #include <AMReX_REAL.H>
5 #include <AMReX_GpuQualifiers.H>
6 #include <AMReX_Algorithm.H>
33 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
35 amrex::Real& Fm, amrex::Real& Fh) noexcept
37 const amrex::Real
one = amrex::Real(1.0);
38 const amrex::Real b = amrex::Real(9.4);
39 const amrex::Real cs_m = amrex::Real(7.4);
40 const amrex::Real cs_h = amrex::Real(5.3);
43 const amrex::Real s = std::sqrt(amrex::max(-Rib, amrex::Real(0.0)) * z_over_z0);
44 if (Rib < amrex::Real(0.0)) {
45 Fm =
one - b * Rib / (
one + cs_m *
a2 * b * s);
46 Fh =
one - b * Rib / (
one + cs_h *
a2 * b * s);
48 const amrex::Real
q =
one + amrex::Real(0.5) * b * Rib;
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:37
@ q
Definition: ERF_WSM6.H:296
Definition: ERF_IBSEBBalance.H:51
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void louis_factors(amrex::Real Rib, amrex::Real z_over_z0, amrex::Real a2, amrex::Real &Fm, amrex::Real &Fh) noexcept
Definition: ERF_IBSEBWallFunction.H:34
real(c_double), parameter a2
Definition: ERF_module_model_constants.F90:95