mtnlion.formulas.dfn module¶
A collection of formulas useful for the Doyl-Fuller-Newman cell model
-
class
mtnlion.formulas.dfn.CapacityLoss[source]¶ Bases:
mtnlion.formula.FormulaCapacity loss due to the side reactions.
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.FilmResistance[source]¶ Bases:
mtnlion.formula.FormulaResistance of the film that builds around the surface of the particles.
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.FilmThickness[source]¶ Bases:
mtnlion.formula.FormulaThickness of the film that builds around the surface of the particles.
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.KappaDEff[source]¶ Bases:
mtnlion.formula.Formulakappa_d effective
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.KappaEff[source]¶ Bases:
mtnlion.formula.FormulaEffective conductivity of the electrolyte.
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.KappaRef(kappa_ref_str)[source]¶ Bases:
mtnlion.formula.FormulaBulk conductivity of the homogeneous materials.
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.SOC[source]¶ Bases:
mtnlion.formula.FormulaState of Charge (SOC) formula.
-
form(arguments, domain)[source]¶ This method must be overloaded to define the form of the Formula.
- Parameters
arguments – All arguments defined by overriding one or more of Formula.Variables, Formula.Formulas, Formula.Parameters, Formula.Lambdas, and Formula.TimeDiscretization
domain – The current domain in which the function is being evaluated
- Returns
FFL form
-
-
class
mtnlion.formulas.dfn.Uocp(uocp_str)[source]¶ Bases:
mtnlion.formula.FormulaOpen-circuit potential formula.
-
mtnlion.formulas.dfn.eval_form(formula: mtnlion.formula.Formula, *parameters) → mtnlion.domain.Domain[str, ufl.core.expr.Expr][source]¶ Evaluate a formula with the provided parameters. Note: The order of the parameters must match the definition of the formula.
- Parameters
formula – Formula to evaluate
parameters – Parameters to use for evaluation
- Returns
FFL expression