|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Classes | |
| struct | FaceStressResult |
Functions | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | conservative_to_kinematic_stress (amrex::Real conservative_stress, amrex::Real rho) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | lsm_flux_is_valid (bool has_flux, bool is_land, amrex::Real flux, amrex::Real undefined) |
| 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) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE FaceStressResult surface_layer_stress::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 | ||
| ) |
Combine cell-centered kinematic LSM stresses with a conservative MOST fallback stress at one face. The returned cache values are always kinematic, while face_stress is always conservative.
| [in] | rho_low | density on the low-side cell |
| [in] | rho_high | density on the high-side cell |
| [in] | kinematic_low | low-side LSM kinematic stress |
| [in] | kinematic_high | high-side LSM kinematic stress |
| [in] | low_valid | whether the low-side LSM stress is valid |
| [in] | high_valid | whether the high-side LSM stress is valid |
| [in] | most_face_stress | conservative MOST fallback stress at the face |
Referenced by SurfaceLayer::compute_SurfaceLayer_bcs().


| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real surface_layer_stress::conservative_to_kinematic_stress | ( | amrex::Real | conservative_stress, |
| amrex::Real | rho | ||
| ) |
LSM cache value from a conservative face stress.
| [in] | conservative_stress | conservative face stress |
| [in] | rho | density used to convert to kinematic stress |
Referenced by combine_lsm_and_most_stress().

| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool surface_layer_stress::lsm_flux_is_valid | ( | bool | has_flux, |
| bool | is_land, | ||
| amrex::Real | flux, | ||
| amrex::Real | undefined | ||
| ) |
Test one LSM side without coupling validity to another component's handle.
| [in] | has_flux | whether the LSM flux array exists |
| [in] | is_land | whether the side is classified as land |
| [in] | flux | flux value to test against the undefined sentinel |
| [in] | undefined | sentinel value marking undefined LSM fluxes |
Referenced by surface_diagnostics::classify_scalar_source(), and SurfaceLayer::compute_SurfaceLayer_bcs().
