Skip to content

DFN Cyclic Ageing Model Try Protos

← Models · DFN Cyclic Ageing

Physics-based cycle-life simulation with SEI growth, particle cracking, and loss of active material.


Physics-based cyclic ageing simulation using the Doyle-Fuller-Newman (DFN) electrochemical model with SEI growth, particle mechanics, and loss of active material degradation.

Overview

The model runs charge/discharge ageing cycles with periodic diagnostic check-points that measure capacity, energy, DCIR, and degradation state.

Protocol

┌─────────────────────────────────────────────────────────────────┐
│  BoL Diagnostic (cycle 0), starting from 50% SoC                │
│    diagnostic_seq (same protocol as every diagnostic)           │
├─────────────────────────────────────────────────────────────────┤
│  Ageing Block 1 (diagnostic_cycle_frequency cycles)             │
│    cycle_seq repeated; seeded default:                          │
│    Discharge at 1P until Vmin → Charge at 0.5P until Vmax       │
├─────────────────────────────────────────────────────────────────┤
│  Diagnostic 1 (diagnostic_seq; seeded default)                  │
│    Seg 0: C/3 charge to Vmax → hold Vmax 4 h or C/50            │
│           → rest 10 s → C/3 discharge to Vmin (reference)       │
│           → C/3 charge 5400 s → rest 1 h                        │
│    Seg 1: 2C discharge pulse 30 s (DCIR)                        │
│    Seg 2: C/3 charge to Vmax → hold Vmax 4 h or C/50            │
├─────────────────────────────────────────────────────────────────┤
│  Ageing Block 2 ...                                             │
│    ...repeat until num_cycles, SoH threshold or solver failure  │
└─────────────────────────────────────────────────────────────────┘

Vmin and Vmax are the cell_parameters voltage cutoffs. xC steps run at x times the nominal capacity in amps and xP steps at x times the nominal energy in watts. The BoL diagnostic itself runs on the cell formulation's nominal capacity and energy: the capacity of the smaller electrode, and that capacity times the difference between the two electrodes' capacity-weighted active-material voltages. After it, with scale_nominal off (the seeded default), every block takes its nominal capacity and energy from the BoL diagnostic's reference discharge, so the seeded ageing cycle discharges at a constant power equal to the BoL reference energy (1P) and charges at half of it (0.5P). The seeded discharge_c_rate and charge_c_rate do not change this protocol (see Cycling Protocol).

Diagnostic Measurements

At each diagnostic check-point:

Measurement Source
Discharge capacity [Ah] Reference discharge step (C/3 in the seeded protocol)
Discharge energy [Wh] Reference discharge step (C/3 in the seeded protocol)
SoH [%] Reference discharge capacity relative to BoL (beginning of life)
FCE capacity Cumulative ageing Ah / the cell formulation's nominal Ah
FCE energy Cumulative ageing Wh / the cell formulation's nominal Wh
DCIR [mOhm] At 0.1, 1, 10, 18, 30s into the DCIR pulse step (2C in the seeded protocol)
Temperature [K] Cell temperature at diagnostic
SEI thickness [m] X-averaged negative SEI thickness
LLI [%] Loss of lithium inventory
LAM neg/pos [%] Loss of active material

Simulation Parameters

Input is split across two top-level objects: cell_parameters and simulation_parameters. Almost every field has no schema default and must be sent, including nullable fields such as soh_threshold_pct, initial_cell_temperature_K and reference_cell_temperature_K (send null to use the fallback). The exceptions are optional: discharge_c_rate, charge_c_rate, anode_potential_safety_threshold_V and temperature_safety_threshold_K (all default to null), plus the optional fields inside cycle_seq and diagnostic_seq described under Protocol Sequences. All "Seed default" values below are the platform's seeded defaults used to prefill new jobs, not schema defaults.

Cell Parameters (fields relevant to cycling)

upper_voltage_cutoff_V, lower_voltage_cutoff_V, and cell_contact_resistance_Ohm live on cell_parameters, not on simulation_parameters. These are the cutoffs every PyBaMM run uses (calibration, ageing and diagnostics), and they fill the {vmin} / {vmax} placeholders in protocol steps. See Model-Cell-Performance for the full cell_parameters schema (mass loading, geometry, formulation, foils, separator, etc.).

In each electrode, the mass fractions of all active materials, binders and conductive agents must sum to 1 (within 1e-6), otherwise the run is rejected. If any positive active material name contains LFP, the run uses the Prada2013 parameter set whatever use_pybamm_parameters says.

Parameter Seed default Description
upper_voltage_cutoff_V 3.65 Upper voltage cutoff for simulations [V]
lower_voltage_cutoff_V 2.5 Lower voltage cutoff for simulations [V]
cell_contact_resistance_Ohm 1e-4 Cell contact resistance [Ohm]

Simulation Parameters (Canonical, Alias-Free)

Cycling Protocol

Parameter Seed default Description
num_cycles 1000 Total ageing cycles
diagnostic_cycle_frequency 100 Diagnostic check-point frequency (every N cycles)
discharge_c_rate 1.0 Optional ageing discharge C-rate. Applied only when both C-rates are set and cycle_seq is the two-step C-rate template (Discharge at xC until {vmin} V, Charge at yC until {vmax} V, period_s 3600, no terminations); it then replaces x. The seeded cycle_seq is power-based, so the seeded C-rates have no effect.
charge_c_rate 0.5 Optional ageing charge C-rate; replaces y under the same conditions as discharge_c_rate
cycle_seq {"steps": ["Discharge at 1P until {vmin} V", "Charge at 0.5P until {vmax} V"], "period_s": 3600.0} Ageing cycle protocol (see Protocol Sequences); repeated for every ageing cycle. Required — no schema default.
diagnostic_seq 3-segment CCCV → 2C pulse → CCCV protocol Multi-segment diagnostic protocol (see Protocol Sequences). Required — no schema default.
scale_nominal False When False, xC/xP scaling always uses the BoL (diagnostic 0) reference capacity/energy; when True, each ageing block rescales off the most recent diagnostic. Required — no schema default.
ambient_temperature_K 298.15 Ambient temperature [K]
initial_cell_temperature_K 298.15 Initial cell temperature [K]; nullable, falls back to ambient_temperature_K when null. Required field (must be sent, even as null).
reference_cell_temperature_K 298.15 Reference temperature for PyBaMM's thermal model [K]; nullable, falls back to ambient_temperature_K when null. Required field.
soh_threshold_pct null Stop at SoH [%]; null = no stop. Required field (must be sent, even as null).
enable_thermal True Enable lumped thermal model (True = lumped, False = isothermal)
anode_potential_safety_threshold_V null Optional anode potential safety limit [V]; null = disabled. When set, any ageing-cycle step ends early once the anode potential falls below it
temperature_safety_threshold_K null Optional temperature safety limit [K]; null = disabled. When set, any ageing-cycle step ends early once the cell temperature rises above it

initial_soc_pct is accepted, and appears in the seeded defaults, but has no effect in this model: the BoL diagnostic always starts from 50% SoC, and every later step continues from the previous state.

The safety limits end only the current step; the protocol continues with the next step and the run does not stop. They apply to ageing cycles, not to diagnostic steps.

Protocol Sequences

cycle_seq and each entry of diagnostic_seq.segments share one structure:

Field Description
steps Ordered list of at least one step (types below)
period_s Output sampling period [s] (> 0)
terminations Optional list of custom terminations, applied to every step in this sequence or segment; default null

Step types:

  • Text step: a PyBaMM experiment string, e.g. "Discharge at 1P until {vmin} V". {vmin} and {vmax} are replaced by the cell_parameters cutoffs. A leading Discharge at / Charge at load written as xC or C/x becomes a current in A, and xP or P/x a power in W, from the block's nominal capacity and energy (see scale_nominal).
  • Drive cycle: {"kind": "drive_cycle", "time_s": [...], "current_A": [...]}. Give exactly one of current_A, power_W or c_rate (converted to amps from the nominal capacity), with the same length as time_s. time_s needs at least two finite, non-negative, strictly increasing values. Positive values discharge.
  • EIS: {"kind": "eis", "freq_min_hz": 1e-4, "freq_max_hz": 1e4, "n_frequencies": 30} (these are the defaults; freq_min_hz must be below freq_max_hz, n_frequencies at least 2). Allowed in diagnostic_seq only; a cycle_seq containing one is rejected. Within a segment, EIS steps must come after all other steps; each is measured at the state reached at the end of the segment and returned in eis_measurements.

Each custom termination is {"variable": "<PyBaMM variable name>", "threshold": <number>, "comparison": "less_than", "name": null}. comparison is less_than (default) or greater_than; the step ends when the variable crosses the threshold. name is optional and generated when omitted.

diagnostic_seq adds three index fields (all 0-based):

Field Seed default Description
segments 3 segments (see Protocol) Ordered diagnostic segments; at least one
reference_discharge_step_index 3 Required. Step in segment 0 used as the reference discharge (capacity, energy, SoH and reference_discharge_curve); must not be an EIS step
dcir_pulse_segment_index 1 Segment containing the DCIR pulse; defaults to 1
dcir_pulse_step_index 0 Step within that segment used as the DCIR pulse; must not be an EIS step. Defaults to null, which skips DCIR

Solver, Calibration & Timeseries Capture

Parameter Seed default Description
solver_atol 1e-4 Solver absolute tolerance
solver_rtol 1e-4 Solver relative tolerance
skip_capacity_calibration False Skip calibration
capture_ageing_block_first_cycle_timeseries False When True, store V/I/T/P/Q/E vs time for the first cycle of each ageing block (cycles 1, N+1, 2N+1, ...)
ageing_block_timeseries_period_s 60.0 Output sampling period [s] for captured ageing-block timeseries
use_pybamm_parameters "Prada2013" PyBaMM parameter set. An LFP positive active material always uses Prada2013; otherwise an empty value or "custom" falls back to Chen2020
mesh_resolution {"x_n":10, "x_s":10, "x_p":10, "r_n":10, "r_p":10} Mesh resolution for simulation
cooling_surface_area_m2 ~0.0139 Cell cooling surface area [m²]
total_heat_transfer_coefficient_W_m2_K 10.0 Heat transfer coefficient [W/(m2.K)]
cell_thermal_expansion_coefficient_m_K 1.1e-6 Cell thermal expansion coefficient [m/K]

Ageing Mechanism Toggles

Parameter Seed default Description
enable_sei True Enable SEI (solid electrolyte interphase) growth degradation
enable_lam True Enable loss of active material (LAM). Uses stress-driven mode when enable_swelling or enable_particle_cracking is also on; otherwise reaction-driven.
enable_particle_cracking False Enable particle cracking (Paris' law) degradation. Turns on swelling-and-cracking mechanics on its own (cracking in the negative electrode, swelling only in the positive), whether or not enable_swelling is set; also turns on SEI on cracks when enable_sei is on
enable_swelling False Enable particle swelling (mechanics) without cracking. Switches LAM to stress-driven mode; LAM can still run in reaction-driven mode without swelling.

SEI Degradation

Parameter Seed default
initial_sei_thickness_m 1e-9
sei_partial_molar_volume_m3_mol 5e-5
sei_resistivity_Ohm_m 1000.0
sei_growth_activation_energy_J_mol 5e4
sei_solvent_diffusivity_m2_s 1e-20
bulk_solvent_concentration_mol_m3 2000.0
sei_reaction_exchange_current_density_A_m2 1.5e-11
sei_open_circuit_potential_V 0.4
ec_diffusivity_m2_s 2e-18
ec_initial_concentration_mol_m3 4541.0
ratio_lithium_moles_to_sei_moles 1.0
initial_sei_on_cracks_thickness_m 1e-9

Particle Mechanics (Swelling)

Parameter Seed default
negative_electrode_youngs_modulus_Pa 15e9
positive_electrode_youngs_modulus_Pa 375e9
negative_electrode_poissons_ratio 0.3
positive_electrode_poissons_ratio 0.3
negative_electrode_partial_molar_volume_m3_mol 3.1e-6
positive_electrode_partial_molar_volume_m3_mol -7.28e-7
negative_electrode_reference_concentration_for_free_of_deformation 0.0
positive_electrode_reference_concentration_for_free_of_deformation 0.0
negative_electrode_volume_change 10-coefficient polynomial (Ai2020/Rieger2016)
positive_electrode_volume_change [-4.966e-5, 3e-4]

Both are volume-change polynomial coefficients [sto^0..sto^N] (ascending powers), used when swelling or cracking is enabled; calibrate per chemistry.

Particle Cracking (Paris' Law)

Parameter Seed default
negative_electrode_initial_crack_length_m 1e-9
positive_electrode_initial_crack_length_m 1e-9
negative_electrode_cracking_rate 1.0e-23
positive_electrode_cracking_rate 1.0e-23
negative_electrode_number_of_cracks_per_unit_area_1_m2 3.16e15
positive_electrode_number_of_cracks_per_unit_area_1_m2 3.16e15
negative_electrode_initial_crack_width_m 1e-9
positive_electrode_initial_crack_width_m 1e-9
negative_electrode_paris_law_constant_b 1.0
positive_electrode_paris_law_constant_b 1.0
negative_electrode_paris_law_constant_m 1.0
positive_electrode_paris_law_constant_m 1.0

Loss of Active Material (LAM)

Parameter Seed default
negative_electrode_lam_constant_proportional_1_s 3e-8
positive_electrode_lam_constant_proportional_1_s 3e-8
negative_electrode_lam_constant_exponential 2.0
positive_electrode_lam_constant_exponential 2.0
negative_electrode_critical_stress_Pa 60e6
positive_electrode_critical_stress_Pa 60e6
negative_electrode_reaction_driven_lam_factor_m3_mol 0.0
positive_electrode_reaction_driven_lam_factor_m3_mol 0.0

Reaction-driven LAM factors are only used by the reaction-driven LAM submodel (enable_lam on, enable_swelling and enable_particle_cracking both off); 0.0 disables reaction-driven LAM. As a guide, ~2e-4 gives roughly 2% SoH loss at 100 cycles on LFP (Prada2013).

Output Schema

A completed job returns the Full Result below. Copilot sees a much smaller Copilot Summary.

Full Result

Field Description
success bool — true for every returned result
stop_reason str — one of num_cycles, soh_threshold, ageing_solver_failure (see below)
summary object — scalar summary (see below)
data object — diagnostics[] and, when captured, ageing_block_first_cycle_timeseries[]
config object — the resolved simulation config used, including explicit null values

Stop reasons:

  • num_cycles: all num_cycles ageing cycles and their diagnostics ran.
  • soh_threshold: a diagnostic measured SoH at or below soh_threshold_pct.
  • ageing_solver_failure: an ageing cycle failed to solve after retries; the model runs one more diagnostic at the last good state and returns the results so far.

Invalid inputs and unexpected errors do not produce a result payload: the job fails and reports the error message.

Summary (summary)

  • num_cycles_completed, diagnostic_cycle_count
  • nominal_capacity_Ah, nominal_energy_Wh — the cell formulation's nominal values, not the BoL reference discharge
  • initial/final_capacity_Ah, initial/final_energy_Wh
  • capacity_fade_Ah, capacity_fade_pct
  • initial/final_soh_pct
  • final_fce_capacity, final_fce_energy
  • final_lli_pct, final_lam_neg_pct, final_lam_pos_pct

Diagnostic Series (data.diagnostics)

Each point in data.diagnostics[]:

  • ageing_cycle - cycle number
  • discharge_capacity_Ah, discharge_energy_Wh - reference discharge step
  • soh_pct - relative to BoL
  • fce_capacity, fce_energy
  • dcir[] - list of {time_s, dcir_mohm} at 0.1, 1, 10, 18, 30s into the DCIR pulse; empty when dcir_pulse_step_index is null
  • temperature_K, sei_thickness_m
  • lli_pct, lam_neg_pct, lam_pos_pct
  • eis_measurements[], reference_discharge_curve (V-Q curve from the diagnostic's reference discharge)

Copilot Summary

The Copilot Summary keeps only success, stop_reason and summary — it drops config and data (diagnostics/timeseries) entirely, and omits any key whose value is None/absent. This is the shape Copilot sees, not the full result above.

{
  "success": true,
  "stop_reason": "num_cycles",
  "summary": { /* every summary field listed above */ }
}

← Back to Models