cideMOD.models.PXD.degradation.SEI.solvent_diffusion.preprocessing
Classes
Base mixin class that contains the mandatory methods to be overrided related to the preprocessing of the model inputs. |
- class cideMOD.models.PXD.degradation.SEI.solvent_diffusion.preprocessing.DiffusionSEIModelPreprocessing[source]
Bases:
BasePXDModelPreprocessingBase mixin class that contains the mandatory methods to be overrided related to the preprocessing of the model inputs.
- initial_guess(f: BlockFunction, var: ProblemVariables, cell: BatteryCell, problem) None[source]
This method initializes the state variables based on the initial conditions and assuming that the simulation begins after a stationary state.
- Parameters:
f (BlockFunction) – Block function that contain the state variables to be initialized.
var (ProblemVariables) – Object that store the preprocessed problem variables.
cell (BatteryCell) – Object where cell parameters are preprocessed and stored.
problem (Problem) – Object that handles the battery cell simulation.
- set_dependent_variables(var: ProblemVariables, cell: BatteryCell, DT: TimeScheme, problem)[source]
This method sets the dependent variables of the SEI solvent-diffusion model.
- Parameters:
var (ProblemVariables) – Object that store the preprocessed problem variables.
cell (BatteryCell) – Object where cell parameters are preprocessed and stored.
DT (TimeScheme) – Object that provide the temporal derivatives with the specified scheme.
problem (Problem) – Object that handles the battery cell simulation.
- set_porousSEI_parameters(porous, problem) None[source]
This method preprocesses the electrode parameters of the SEI solvent-diffusion model.
- Parameters:
SEI (BaseCellComponent) – Object where electrode parameters are preprocessed and stored.
problem (Problem) – Object that handles the battery cell simulation.
- set_state_variables(state_vars: list, mesher, V, V_vec, problem) None[source]
This method sets the state variables of the SEI solvent-diffusion model.
- Parameters:
state_vars (List(Tuple(str, numpy.ndarray, dolfinx.fem.FunctionSpace))) – List of tuples, each one containing the name, the subdomain and the function space of the state variable.
mesher (BaseMesher) – Object that contains the mesh information.
V (dolfinx.fem.FunctionSpace) – Common FunctionSpace to be used for each model.
V_vec (dolfinx.fem.VectorFunctionSpace) – Common VectorFunctionSpace to be used for each model.