Wave speed estimates: min/max acoustic bounds (Davis 1988) Reference: Toro 2010, Chapter 10.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | uL(nw_phys) | |||
| real(kind=dp), | intent(in) | :: | uR(nw_phys) | |||
| real(kind=dp), | intent(in) | :: | xC(ndim) | |||
| integer, | intent(in) | :: | flux_dim | |||
| real(kind=dp), | intent(out) | :: | wL | |||
| real(kind=dp), | intent(out) | :: | wR |
subroutine estimate_speeds_minmax(uL, uR, xC, flux_dim, wL, wR) real(dp), intent(in) :: uL(nw_phys), uR(nw_phys) real(dp), intent(in) :: xC(ndim) integer, intent(in) :: flux_dim real(dp), intent(out) :: wL, wR real(dp) :: cL, cR cL = sqrt(hd_gamma * uL(iw_e) / uL(iw_rho)) cR = sqrt(hd_gamma * uR(iw_e) / uR(iw_rho)) wL = min(uL(iw_mom(flux_dim)) - cL, uR(iw_mom(flux_dim)) - cR) wR = max(uL(iw_mom(flux_dim)) + cL, uR(iw_mom(flux_dim)) + cR) end subroutine estimate_speeds_minmax