14#include "../../utility/utility.hpp"
104 double fp, fn,
T, delta;
114 thickn = 1.170972150305478e-4;
117 ap = 3 * ep /
geo.
Rp;
118 an = 3 * en /
geo.
Rn;
124 s_ini.initialise(up, un,
T, delta, LLI, thickp, thickn, ep, en, ap, an,
CS, Dp, Dn, R, delta_pl);
131 std::cout <<
"Error in State::initialise, one of the states has an illegal value, throwing an error\n";
175 deg.SEI_id.add_model(0);
176 deg.SEI_porosity = 0;
178 deg.CS_id.add_model(0);
179 deg.CS_diffusion = 0;
181 deg.LAM_id.add_model(0);
Definition: Cell_LGChemNMC.hpp:22
Cell_LGChemNMC(Model_SPM *, int verbosei)
constructor
Definition: Cell_LGChemNMC.hpp:29
Definition: Cell_SPM.hpp:39
double alphasei
charge transfer coefficient of the SEI reaction [-]
Definition: Cell_SPM.hpp:85
void CS(double OCVnt, double etan, double *isei_multiplyer, double *dCS, double *dDn)
calculate the effect of surface crack growth
Definition: Cell_SPM_degradation.cpp:129
double C_elec
Li- concentration in electrolyte [mol m-3] standard concentration of 1 molar.
Definition: Cell_SPM.hpp:50
double kp_T
activation energy for the Arrhenius relation of kp
Definition: Cell_SPM.hpp:56
double T_env
environment temperature [K]
Definition: Cell_SPM.hpp:67
double Cp
thermal capacity of the battery #TODO = units missing.
Definition: Cell_SPM.hpp:74
double OCVnmc
equilibrium potential of the NMC dissolution side reaction [V]
Definition: Cell_SPM.hpp:98
double OCVpl
OCV of the plating reaction [V].
Definition: Cell_SPM.hpp:104
param::StressParam sparam
Stress parameters.
Definition: Cell_SPM.hpp:80
DEG_ID deg_id
structure with the identification of which degradation model(s) to use #TODO may be protected.
Definition: Cell_SPM.hpp:41
double kn_T
The diffusion constants at reference temperature are part of State because they can change over the b...
Definition: Cell_SPM.hpp:58
double Vmain
partial molar volume of the main reaction, see Ashwin et al, 2016
Definition: Cell_SPM.hpp:89
double kp
rate constant of main reaction at positive electrode at reference temperature
Definition: Cell_SPM.hpp:55
double n
number of electrons involved in the main reaction [-] #TODO if really constant?
Definition: Cell_SPM.hpp:52
double alphapl
charge transfer constant for the plating reaction [-]
Definition: Cell_SPM.hpp:103
State_SPM s_ini
the battery current/initial state, grouping all parameter which change over the battery's lifetime (s...
Definition: Cell_SPM.hpp:45
double rhosei
partial molar volume of the SEI layer [m3 mol-1]
Definition: Cell_SPM.hpp:87
double Cmaxpos
maximum lithium concentration in the cathode [mol m-3] value for NMC
Definition: Cell_SPM.hpp:48
param::PLparam pl_p
structure with the fitting parameters of the different plating models
Definition: Cell_SPM.hpp:106
double T() noexcept override
returns the uniform battery temperature in [K]
Definition: Cell_SPM.hpp:159
double c_elec0
bulk concentration of the electrolyte molecule participating in the SEI growth (e....
Definition: Cell_SPM.hpp:88
double rhopl
density of the plated lithium layer
Definition: Cell_SPM.hpp:105
param::CSparam csparam
structure with the fitting parameters of the different crack growth models
Definition: Cell_SPM.hpp:95
double rsei
specific resistance times real surface area of the SEI film [Ohm m] ? #TODO if unit is correct....
Definition: Cell_SPM.hpp:83
double npl
number of electrons involved in the plating reaction [-]
Definition: Cell_SPM.hpp:102
double nsei
number of electrons involved in the SEI reaction [-]
Definition: Cell_SPM.hpp:84
double Dn_T
activation energy for the Arrhenius relation of Dn
Definition: Cell_SPM.hpp:61
param::LAMparam lam_p
structure with the fitting parameters of the different LAM models
Definition: Cell_SPM.hpp:99
double Dp_T
activation energy for the Arrhenius relation of Dp
Definition: Cell_SPM.hpp:60
double rho
density of the battery
Definition: Cell_SPM.hpp:73
double Qch
convective heat transfer coefficient per volume [W K-1 m-3]
Definition: Cell_SPM.hpp:72
double kn
rate constant of main reaction at negative electrode at reference temperature
Definition: Cell_SPM.hpp:57
param::SEIparam sei_p
structure with the fitting parameters of the different SEI growth models
Definition: Cell_SPM.hpp:92
double OCVsei
equilibrium potential of the SEI side reaction [V]
Definition: Cell_SPM.hpp:86
double Vsei
partial molar volume of the SEI side reaction, see Ashwin et al., 2016
Definition: Cell_SPM.hpp:90
void checkModelparam()
check if the inputs to the MATLAB code are the same as the ones here in the C++ code
Definition: Cell_SPM.cpp:660
double T_ref
reference temperature [K]
Definition: Cell_SPM.hpp:68
void setC(double cp0, double cn0)
void setCurrent(bool critical, bool check, double I); //!< set the cell's current to the specified va...
Definition: Cell_SPM.cpp:556
double getAnodeSurface() noexcept
get the anode pure surface area (without cracks) product of the effective surface area (an) with the ...
Definition: Cell_SPM.hpp:206
param::Geometry_SPM geo
other geometric parameters are part of State because they can change over the battery's lifetime
Definition: Cell_SPM.hpp:77
double Cmaxneg
maximum lithium concentration in the anode [mol m-3] value for C
Definition: Cell_SPM.hpp:49
State_SPM st
< protected such that child classes can access the class variables
Definition: Cell_SPM.hpp:45
Model_SPM * M
OCV curves.
Definition: Cell_SPM.hpp:109
void setCapacity(double capacity)
Definition: Cell.hpp:48
std::array< value_type, nch > z_type
Definition: State_SPM.hpp:63
constexpr double Kelvin
Definition: constants.hpp:20
constexpr StressParam StressParam_LGCChemNMC
< omegap, from Wu, Xiao, Wen, Zhang, Three-dimensional finite element study on stress generation in s...
Definition: StressParam_default.hpp:35
constexpr LAMparam LAMparam_LGCChemNMC
lam1p
Definition: LAMparam_default.hpp:30
constexpr SEIparam SEIparam_LGCChemNMC
sei_porosity
Definition: SEIparam_default.hpp:53
Slide namespace contains all the types, classes, and functions for the simulation framework.
Definition: Cell.hpp:27
void validState(State_SPM &s, State_SPM &s_ini)
< State related functions
cellType
Definition: enum_definitions.hpp:43
@ LGChemNMC
Definition: enum_definitions.hpp:49
DEG_ID structure handles the identifications of which degradation model(s) to use.
Definition: DEG_ID.hpp:23
DegArray CS_id
Array with identifications for which model to use for surface cracking. Max length 10.
Definition: DEG_ID.hpp:57
DegArray LAM_id
Array with the integers deciding which models is to be used for loss of active material....
Definition: DEG_ID.hpp:73
Definition: Model_SPM.hpp:24
Definition: OCVcurves.hpp:16
value_type CS4alpha
fitting parameter of the 4th surface crack growth model
Definition: CSparam.hpp:20
value_type CS2alpha
fitting parameter of the 2nd surface crack growth model
Definition: CSparam.hpp:18
value_type CS5k
rate parameter of the 5th surface crack growth model at reference temperature
Definition: CSparam.hpp:24
value_type CS3alpha
fitting parameter of the 3rd surface crack growth model
Definition: CSparam.hpp:19
value_type CS_diffusion
fitting parameter to decrease the diffusion constant due to surface cracks
Definition: CSparam.hpp:27
value_type CS4Amax
maximum crack growth surface for the 4th surface crack growth model 5 * getAn() * getThickn() * elec_...
Definition: CSparam.hpp:22
value_type CS1alpha
fitting parameter of the 1st surface crack growth model
Definition: CSparam.hpp:17
value_type CS5k_T
activation energy of CS5k
Definition: CSparam.hpp:25
double L
thickness of one layer of the cell [m]
Definition: Geometry_SPM.hpp:17
double Rp
Definition: Geometry_SPM.hpp:22
double elec_surf
geometric surface area of the electrodes (electrode height * electrode width*layers) [m2] Doubly coat...
Definition: Geometry_SPM.hpp:19
double Rn
other geometric parameters are part of State because they can change over the battery'
Definition: Geometry_SPM.hpp:22
double SAV
surface area to volume-ratio of the cell [m2/m3]
Definition: Geometry_SPM.hpp:20
double pl1k_T
activation energy of pl1k
Definition: PLparam.hpp:18
double pl1k
rate constant of the li-plating side reaction at reference temperature in the 1st model
Definition: PLparam.hpp:17
bool s_lares
do we need to calculate the stress according to Laresgoiti's model?
Definition: StressParam.hpp:26
bool s_dai
do we need to calculate the stress according to Dai's model?
Definition: StressParam.hpp:25