cideMOD.models.PXD.thermal.equations

Classes

ThermalModelEquations()

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.

electrolyte_ohmic_heat_equation(kappa, kappa_D, phi_e, c_e, test, dx, grad, L, eps)[source]
get_solvers_info(solvers_info, problem) None[source]

This method get the solvers information that concerns the thermal model.

Parameters:
  • solvers_info (dict) – Dictionary containing solvers information.

  • problem (Problem) – Object that handles the battery cell simulation.

q_equation(component, var, dx)[source]
reaction_irreversible_heat(material, j_Li, test, eta, dx, L)[source]
reaction_reversible_heat(material, j_Li, T, c_s, current, test, dx, L)[source]
solid_ohmic_heat_equation(sigma, phi_s, test, dx, grad, L, eps)[source]