FELiCS.Equation.Equations.MassEquation#
Module Contents#
Classes#
Class representing the mass conservation equation. |
Attributes#
- FELiCS.Equation.Equations.MassEquation.logger#
- class FELiCS.Equation.Equations.MassEquation.MassEquation(index, eqColl, fluc, X, param)#
Bases:
FELiCS.Equation.Equations.EquationTemplate.EquationTemplateClass representing the mass conservation equation.
This class implements the weak form expressions for the mass conservation equation, both linear and nonlinear, in the tensorial framework. It handles the addition of relevant terms such as advection and boundary contributions, and accounts for specific analysis modes like Input-Output.
Initialize the MassEquation object
- Parameters:
eqColl (
EquationCollection) – The equation collection object.fluc (
Fluctuations) – The fluctuations object.X (
Function) – The solution function.param (
Parameters) – The parameters object.
- Variables:
fluc (
Fluctuations) – Fluctuating quantities used in the formulation.X (
Function) – Trial/test function in the variational formulation.param (
Parameters) – Configuration and problem parameters.J_hat (
Expression) – Jacobian determinant for integration.all_ds (
Measure) – Boundary integration measure.n (
FacetNormal) – Unit normal vector on boundaries.
Notes
This class inherits from EquationTemplate and raises an exception if a Discontinuous Galerkin scheme is selected, which is not implemented in the tensorial framework.
- addWeightMatrixExpression(weakForm, mean)#
Add the weight matrix expression to the weak form.
- Parameters:
weakForm (
Form) – The weak form object to which the expression is added.mean (
Function) – The mean function providing averaged quantities.
Notes
Adds the time-derivative term to the weak form if density is among the transported quantities.
- addLinearExpression(weakForm, mean)#
Add the linear expression to the weak form.
- Parameters:
weakForm (
Form) – The weak form object to which the expression is added.mean (
Function) – The mean function providing averaged quantities.
Notes
Constructs the weak form of the linearized mass conservation equation, including volume and boundary terms via integration by parts. Special handling is added for boundary forcing in Input-Output analysis mode.
- addNonlinearExpression(weakForm, mean)#
Add the nonlinear expression to the weak form.
- Parameters:
weakForm (
Form) – The weak form object to which the expression is added.mean (
Function) – The mean function providing averaged quantities.
Notes
Constructs the weak form of the full nonlinear mass conservation equation using integration by parts for advection terms.