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

Go to the source code of this file.

Classes

struct  WallGradCoeffs
 

Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE WallGradCoeffs WallGradientCoeffs (const amrex::Real dz0, const amrex::Real dz1) noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE WallGradCoeffs WallGradientCoeffsUniform () noexcept
 

Function Documentation

◆ WallGradientCoeffs()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE WallGradCoeffs WallGradientCoeffs ( const amrex::Real  dz0,
const amrex::Real  dz1 
)
noexcept
34 {
35  const amrex::Real f = (dz1 / dz0) + two;
36  const amrex::Real f2 = f*f;
37  const amrex::Real c3 = two / (f - f2);
38  const amrex::Real c2 = -f2*c3;
39  const amrex::Real c1 = -(one-f2)*c3;
40  return {c1, c2, c3};
41 }
constexpr amrex::Real two
Definition: ERF_NumericalConstants.H:38
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:37
amrex::Real Real
Definition: ERF_ShocInterface.H:19
real(c_double), parameter c2
Definition: ERF_module_model_constants.F90:35
real(c_double), private c1
Definition: ERF_module_mp_morr_two_moment.F90:212

Referenced by ImplicitDiffForMomLU_S(), and ImplicitDiffForMomLU_T().

Here is the caller graph for this function:

◆ WallGradientCoeffsUniform()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE WallGradCoeffs WallGradientCoeffsUniform ( )
noexcept

The uniform-mesh stencil, with the constants ComputeStrain_N uses.

47 {
48  return {-eightthirds, three, -third};
49 }
constexpr amrex::Real three
Definition: ERF_NumericalConstants.H:39
constexpr amrex::Real eightthirds
Definition: ERF_NumericalConstants.H:44
constexpr amrex::Real third
Definition: ERF_NumericalConstants.H:43

Referenced by ImplicitDiffForMomLU_N().

Here is the caller graph for this function: