1 #ifndef ERF_SURFACE_LAYER_STRESS_H_
2 #define ERF_SURFACE_LAYER_STRESS_H_
4 #include "AMReX_GpuQualifiers.H"
5 #include "AMReX_REAL.H"
21 return conservative_stress /
rho;
38 return has_flux && is_land && flux <
undefined;
76 low_valid ? kinematic_low
78 high_valid ? kinematic_high
81 if (low_valid && high_valid) {
83 half * rho_low * kinematic_low + half * rho_high * kinematic_high;
84 }
else if (low_valid) {
86 half * rho_low * kinematic_low + half * most_face_stress;
87 }
else if (high_valid) {
89 half * rho_high * kinematic_high + half * most_face_stress;
91 result.face_stress = most_face_stress;
rho
Definition: ERF_InitCustomPert_Bubble.H:107
amrex::Real Real
Definition: ERF_ShocInterface.H:19
Definition: ERF_SurfaceLayerStress.H:7
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real conservative_to_kinematic_stress(amrex::Real conservative_stress, amrex::Real rho)
Definition: ERF_SurfaceLayerStress.H:18
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool lsm_flux_is_valid(bool has_flux, bool is_land, amrex::Real flux, amrex::Real undefined)
Definition: ERF_SurfaceLayerStress.H:35
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE FaceStressResult combine_lsm_and_most_stress(amrex::Real rho_low, amrex::Real rho_high, amrex::Real kinematic_low, amrex::Real kinematic_high, bool low_valid, bool high_valid, amrex::Real most_face_stress)
Definition: ERF_SurfaceLayerStress.H:64
Definition: ERF_SurfaceLayerStress.H:42
amrex::Real face_stress
Definition: ERF_SurfaceLayerStress.H:43
amrex::Real low_kinematic_cache
Definition: ERF_SurfaceLayerStress.H:44
amrex::Real high_kinematic_cache
Definition: ERF_SurfaceLayerStress.H:45