cideMOD.models.PXD.thermal.equations
Classes
- class cideMOD.models.PXD.thermal.equations.ThermalModelEquations[source]
Bases:
BaseCellModelEquations- T_equation(var, component, q, dx, DT)[source]
Implements variational form of Temperature Equation
- Parameters:
var (ProblemVariables) –
Object that store the preprocessed problem variables. Requires:
f_0.temp : Function - Temperature field previous timestep
temp : Function - Temperature
test.temp : TestFunction - Temperature equation TestFunction
component (BaseCellComponent) –
Object where component parameters are preprocessed and stored. Contains:
rho : Constant or similar - Density of the material
c_p : Constant or similar - Specific heat of material
k_t : Constant or similar - Heat Conductivity of material
grad : function - python function that returns the UFL gradient of the argument
L : Constant - Thickness used to normalize the domain
q (Sum or Expression or similar) – Heat generated
dx (Measure) – Measure of the domain over the integral must integrate
DT (TimeScheme) – Instance of the TimeScheme class
- Returns:
Temperature Equation
- Return type:
Form
- build_weak_formulation(eq: ProblemEquations, var: ProblemVariables, cell: BatteryCell, mesher: BaseMesher, DT: TimeScheme, W: BlockFunctionSpace, problem) None[source]
This method builds the weak formulation of the thermal model.
- Parameters:
equations (ProblemEquations) – Object that contains the system of equations of the problem.
var (ProblemVariables) – Object that store the preprocessed problem variables.
cell (BatteryCell) – Object where cell parameters are preprocessed and stored.
mesher (BaseMesher) – Object that store the mesh information.
DT (TimeScheme) – Object that provide the temporal derivatives with the specified scheme.
W (BlockFunctionSpace) – Object that store the function space of each state variable.
problem (Problem) – Object that handles the battery cell simulation.
- build_weak_formulation_stationary(eq: ProblemEquations, var: ProblemVariables, cell: BatteryCell, mesher: BaseMesher, W: BlockFunctionSpace, problem)[source]
This method builds and adds the weak formulation of the thermal model that will be used to solve the stationary problem.
- Parameters:
equations (ProblemEquations) – Object that contains the system of equations of the stationary problem.
var (ProblemVariables) – Object that store the preprocessed problem variables.
cell (BatteryCell) – Object where cell parameters are preprocessed and stored.
mesher (BaseMesher) – Object that store the mesh information.
W (BlockFunctionSpace) – Object that store the function space of each state variable.
problem (Problem) – Object that handles the battery cell simulation.
- build_weak_formulation_transitory(eq: ProblemEquations, var: ProblemVariables, cell: BatteryCell, mesher: BaseMesher, W: BlockFunctionSpace, problem)[source]
This method builds and adds the weak formulation of the thermal model that will be used to solve the transitory problem.
- Parameters:
equations (ProblemEquations) – Object that contains the system of equations of the transitory problem.
var (ProblemVariables) – Object that store the preprocessed problem variables.
cell (BatteryCell) – Object where cell parameters are preprocessed and stored.
mesher (BaseMesher) – Object that store the mesh information.
W (BlockFunctionSpace) – Object that store the function space of each state variable.
problem (Problem) – Object that handles the battery cell simulation.