FELiCS.Equation.Equations.EnthalpyEquation#
Module Contents#
Classes#
Class representing the enthalpy conservation equation. |
Attributes#
- FELiCS.Equation.Equations.EnthalpyEquation.logger#
- class FELiCS.Equation.Equations.EnthalpyEquation.EnthalpyEquation(index, eqColl, fluc, X, param)#
Bases:
FELiCS.Equation.Equations.EquationTemplate.EquationTemplateClass representing the enthalpy conservation equation.
This class formulates the enthalpy conservation equation using a tensorial framework. It extends the EquationTemplate and implements methods for adding weight matrices, linear expressions, and nonlinear expressions to the weak form.
Initialize the EnthalpyEquation object
- Parameters:
index (
int) – The index of the equation in the equation collection.eqColl (
EquationCollection) – The equation collection object.fluc (
Fluctuations) – The fluctuations object containing fluctuating fields.X (
Function) – The function representing the mesh coordinates.param (
Parameters) – The parameters object used to configure the numerical scheme.
- Variables:
J_hat (
floatorFunction) – Jacobian determinant or related geometric scaling factor.X (
Function) – The mesh coordinate function.fluc (
Fluctuations) – Container of fluctuation fields.all_ds (
Measure) – Surface measure used for boundary integrals.
Notes
If the numerical scheme specified in the parameters is ‘Discontinuous Galerkin’, an error is raised because that scheme is not supported in the tensorial framework.
- addWeightMatrixExpression(weakForm, mean)#
Add the weight matrix expression to the weak form.
- Parameters:
weakForm (
Form) – The weak form object where the equation terms are added.mean (
MeanFields) – The mean fields object containing averaged field variables.
Notes
This method adds the time derivative terms to the weak form using the tensorial representation of fluctuating enthalpy and pressure.
- addNonlinearExpression()#
Add the nonlinear expression to the weak form.
Notes
This method is a placeholder and currently does not contribute any nonlinear terms to the weak form.
- addLinearExpression(weakForm, mean)#
Construct the weak form of the linearized enthalpy conservation equation.
- Parameters:
weakForm (
Form) – The weak form object to which the linearized terms are added.mean (
MeanFields) – The mean fields object containing averaged field variables.
Notes
Constructs the linearized weak form by incorporating: - Volume integrals of advection terms remaining after partial integration. - Boundary integrals resulting from the partial integration of advection terms. - Diffusion terms using gradient and dot product operations.
Debugging messages may be emitted if enabled via the parameters.