@@ -19,7 +19,7 @@ The equations are given by
19
19
\e nd{aligned}
20
20
```
21
21
The unknown quantities of the SWE are the water height ``h`` and the velocities ``\m athbf{v} = (v_1, v_2, v_3)^T``.
22
- The gravitational constant is denoted by `g`.
22
+ The gravitational acceleration is denoted by `g`.
23
23
24
24
The 3D Shallow Water Equations (SWE) extend the 2D SWE to model shallow water flows on 2D manifolds embedded within 3D space.
25
25
To confine the flow to the 2D manifold, a source term incorporating a Lagrange multiplier is applied.
@@ -48,17 +48,17 @@ References:
48
48
"""
49
49
struct ShallowWaterEquations3D{RealT <: Real } < :
50
50
Trixi. AbstractShallowWaterEquations{3 , 5 }
51
- gravity:: RealT # gravitational constant
51
+ gravity:: RealT # gravitational acceleration
52
52
H0:: RealT # constant "lake-at-rest" total water height
53
53
end
54
54
55
- # Allow for flexibility to set the gravitational constant within an elixir depending on the
56
- # application where `gravity_constant =1.0` or `gravity_constant =9.81` are common values.
55
+ # Allow for flexibility to set the gravitational acceleration within an elixir depending on the
56
+ # application where `gravity =1.0` or `gravity =9.81` are common values.
57
57
# The reference total water height H0 defaults to 0.0 but is used for the "lake-at-rest"
58
58
# well-balancedness test cases.
59
- function ShallowWaterEquations3D (; gravity_constant , H0 = zero (gravity_constant ))
60
- T = promote_type (typeof (gravity_constant ), typeof (H0))
61
- ShallowWaterEquations3D (gravity_constant , H0)
59
+ function ShallowWaterEquations3D (; gravity , H0 = zero (gravity ))
60
+ T = promote_type (typeof (gravity ), typeof (H0))
61
+ ShallowWaterEquations3D (gravity , H0)
62
62
end
63
63
64
64
Trixi. have_nonconservative_terms (:: ShallowWaterEquations3D ) = False () # Deactivate non-conservative terms for the moment...
346
346
return SVector (h, h_v1, h_v2, h_v3, b)
347
347
end
348
348
349
- @inline function waterheight (u, equations:: ShallowWaterEquations3D )
349
+ @inline function Trixi . waterheight (u, equations:: ShallowWaterEquations3D )
350
350
return u[1 ]
351
351
end
352
352
0 commit comments