Core

Tip

We suggest that you read through this section if you wish to see how the the library works. To change the model constants (in case you have a different system), see the respective src/{module}/constants/constants.jl file.

LiionBatteryModels

Modules

Types

Functions

Constants

LiionBatteryModels.SenthilModel

Modules

Structs

Functions

Constants

LiionBatteryModels.AshwiniModel

Modules

Types

Functions

LiionBatteryModels.AshwiniModel.param_solverMethod

param_solver

The key function to get all the parameters required to solve for c₂ at a given timestep in the timeseries.

Returns the 16 parameters: n₀(t), n₁(t), n₂(t), n₃(t), p₀(t), p₁(t), p₂(t), p₃(t), s₀(t), s₁(t), s₂(t), <c₂>ₙ, <c₂>ₚ , <c₂>ₛ, c₂|ₓ₌₀ and c₂|ₓ₌ₗ in this order

Params:

- I: The current at the timestep.
- Δt: The span of the timestep.
- c₂ₙₚ: The previous average concentration in negative electrode
- c₂ₛₚ: The The previous average concentration in separator
- c₂ₚₚ: The previous average concentration in positive electrode
- c₂ₙ₀ₚ: The previous concentration in negative electrode @ x=0
- c₂ₚₗₚ: The previous average concentration in positive electrode @x=L
- jn_0: The reaction rate @x=0
- jp_l: The reaction rate @x=L
source

Constants