template<auto Pa_, auto U_, auto T_, auto P0_>
| static auto applications::exahype2::ShallowWater::R1::atmosphericPressure |
( |
const auto | x, |
|
|
const auto | y, |
|
|
const auto | t ) |
|
static |
Computes the pressure field p(x, y, t) following the Jörn test-case logic.
The function models a one-dimensional atmospheric pressure disturbance.
- Parameters
-
| x | Streamwise spatial coordinate [m] |
| y | Cross-stream spatial coordinate (unused) [m] |
| t | Physical time in seconds. In the original MATLAB setup, this corresponds to (t_index - 1) * 60. |
- Template Parameters
-
| Pa_ | Amplitude of the pressure disturbance [Pa] |
| U_ | Propagation velocity of the disturbance [m/s] |
| T_ | Period of the disturbance [s] |
| P0_ | Period of the disturbance [s] |
- Returns
- Pressure value p(x, y, t) [Pa]