1 #ifndef ERF_SURFACE_LAYER_STRESS_H_
2 #define ERF_SURFACE_LAYER_STRESS_H_
4 #include "AMReX_GpuQualifiers.H"
5 #include "AMReX_REAL.H"
19 amrex::Real conservative_stress, amrex::Real
rho)
21 return conservative_stress /
rho;
50 amrex::Real kinematic_low,
51 amrex::Real kinematic_high,
54 amrex::Real most_face_stress)
56 const amrex::Real half = amrex::Real(0.5);
59 low_valid ? kinematic_low
61 high_valid ? kinematic_high
64 if (low_valid && high_valid) {
66 half * rho_low * kinematic_low + half * rho_high * kinematic_high;
67 }
else if (low_valid) {
69 half * rho_low * kinematic_low + half * most_face_stress;
70 }
else if (high_valid) {
72 half * rho_high * kinematic_high + half * most_face_stress;
74 result.face_stress = most_face_stress;
@ rho
Definition: ERF_Kessler.H:25
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 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:47
Definition: ERF_SurfaceLayerStress.H:25
amrex::Real face_stress
Definition: ERF_SurfaceLayerStress.H:26
amrex::Real low_kinematic_cache
Definition: ERF_SurfaceLayerStress.H:27
amrex::Real high_kinematic_cache
Definition: ERF_SurfaceLayerStress.H:28