FELiCS.Equation.Equations.EnergyPressureEquation#

Module Contents#

Classes#

EnergyPressureEquation

Class representing the energy-pressure equation in FELiCS.

Attributes#

FELiCS.Equation.Equations.EnergyPressureEquation.logger#
class FELiCS.Equation.Equations.EnergyPressureEquation.EnergyPressureEquation(index, eqColl, fluc, X, param)#

Bases: FELiCS.Equation.Equations.EquationTemplate.EquationTemplate

Class representing the energy-pressure equation in FELiCS.

This class constructs and manages the weak formulation of the energy conservation equation in a compressible fluid system. The formulation is based on total energy conservation and is expressed in terms of pressure, using the Perfect Gas Law and continuity equations.

Parameters:
  • eqColl (EquationCollection) – The equation collection object that stores various equations.

  • fluc (Fluctuations) – The fluctuations object representing perturbations in the system.

  • X (Function) – The solution function representing the unknowns of the equation.

  • param (Parameters) – The parameters object containing simulation and physical parameters.

Raises:

RuntimeError – If an unsupported numerical scheme like Discontinuous Galerkin is used.

addWeightMatrixExpression(weakForm, mean)#

Add the weight matrix expression to the weak form.

This function contributes the time derivative terms to the weak formulation.

Parameters:
  • weakForm (Form) – The weak form object to which the expression is added.

  • mean (Function) – The mean function representing the average state.

addNonlinearExpression()#

Add the nonlinear expression to the weak form.

This method is currently not implemented.

addLinearExpression(weakForm, mean)#

Add the linear expression to the weak form.

This function builds the weak form of the linearized energy conservation equation in the tensorial framework. The formulation is based on total energy conservation for a compressible fluid, expressed in terms of pressure by substituting the Perfect Gas Law and the continuity equation. The equation is implemented in primitive variables.

Parameters:
  • weakForm (Form) – The weak form object to which the expression is added.

  • mean (Function) – The mean function representing the average state.

addBilinearExpression(weakForm, mean)#

Add the bilinear convection term. CAUTION: not tested yet, treat with care! Only for linearization around p, not T.

Parameters:
  • weakForm (Form) – The weak form object to be updated.

  • mean (MeanFields) – The mean fields object containing time-averaged variables.