1 #ifndef ERF_SURFACE_LAYER_STRESS_H_
2 #define ERF_SURFACE_LAYER_STRESS_H_
4 #include "AMReX_GpuQualifiers.H"
5 #include "AMReX_REAL.H"
16 return conservative_stress /
rho;
27 return has_flux && is_land && flux <
undefined;
57 low_valid ? kinematic_low
59 high_valid ? kinematic_high
62 if (low_valid && high_valid) {
64 half * rho_low * kinematic_low + half * rho_high * kinematic_high;
65 }
else if (low_valid) {
67 half * rho_low * kinematic_low + half * most_face_stress;
68 }
else if (high_valid) {
70 half * rho_high * kinematic_high + half * most_face_stress;
72 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:13
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:24
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:45
Definition: ERF_SurfaceLayerStress.H:31
amrex::Real face_stress
Definition: ERF_SurfaceLayerStress.H:32
amrex::Real low_kinematic_cache
Definition: ERF_SurfaceLayerStress.H:33
amrex::Real high_kinematic_cache
Definition: ERF_SurfaceLayerStress.H:34