Momentum equation
momentum_equation
Derived terms and associated equations for the Stokes system.
All terms are considered as if they were on the right-hand side of the equation, leading
to the following UFL expression returned by the residual
method:
This sign convention ensures compatibility with Thetis's time integrators. In general,
however, we like to think about the terms as they are on the left-hand side. Therefore,
in the residual methods below, we first sum the terms in the variable F
as if they
were on the left-hand side, i.e.
and then return -F
.
Users should not interact with these classes; instead, please use the solver provided in the stokes_integrators module.
ViscosityTerm(test_space, trial_space, dx, ds, dS, **kwargs)
Bases: BaseTerm
Viscosity term \(-nabla * (mu nabla u)\) in the momentum equation.
Using the symmetric interior penalty method, the weak form becomes
where σ is a penalty parameter (see Epshteyn and Riviere, 2007).
Epshteyn, Y., & Rivière, B. (2007). Estimation of penalty parameters for symmetric interior penalty Galerkin methods. Journal of Computational and Applied Mathematics, 206(2), 843-872.
Source code in g-adopt/gadopt/equations.py
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
MomentumEquation(test_space, trial_space, quad_degree=None, **kwargs)
Bases: BaseEquation
Momentum equation with viscosity, pressure gradient, and source terms.
Source code in g-adopt/gadopt/equations.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
ContinuityEquation(test_space, trial_space, quad_degree=None, **kwargs)
Bases: BaseEquation
Mass continuity equation with a single divergence term.
Source code in g-adopt/gadopt/equations.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
StokesEquations(test_space, trial_space, quad_degree=None, **kwargs)
Stokes system involving the momentum and mass continuity equations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
test_space |
WithGeometry
|
Firedrake function space of the test function |
required |
trial_space |
WithGeometry
|
Firedrake function space of the trial function |
required |
quad_degree |
Optional[int]
|
Quadrature degree. Default value is |
None
|
Returns:
Type | Description |
---|---|
list[BaseEquation]
|
A list of equation instances for the Stokes system. |
Source code in g-adopt/gadopt/momentum_equation.py
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|