SPMeT Dynamic Load Model Try Protos
← Models · SPMeT Dynamic Load
Simulates a cell under an arbitrary power or C-rate drive cycle, returning full timeseries and energy analysis.
Physics-based drive cycle simulation using the Single Particle Model with Electrolyte (SPMe) and lumped thermal model. Supports arbitrary power or C-rate drive cycles with custom safety terminations.
Overview
Simulates a single drive cycle on a cell, returning voltage, current, power, temperature, SOC, and energy timeseries with summary statistics and energy analysis.
Protocol
1. Compute equilibrium electrode balance and stoichiometry windows
2. Build drive cycle step (power_W or c_rate array) with voltage, anode potential
and temperature terminations
3. Capacity calibration (iterative electrode width adjustment, up to 5 iterations)
4. Set initial stoichiometry from start_soc_pct
5. Solve SPMe (lumped thermal) with IDAKLUSolver: 1 s rest, then the drive cycle
6. Extract timeseries, summary, energy analysis
Calibration charges and discharges the cell at calibration_rate_C and scales
the electrode width until the simulated capacity is within 1% of the
theoretical capacity. If it has not converged after 5 iterations, the run
fails with "Capacity calibration failed".
Input Schema
Cell Parameters
Structured nested input that mirrors the Cell Performance cell parameters.
Nested under cell_parameters in the top-level input.
Electrode Configuration (required)
| Field | Type | Description |
|---|---|---|
positive_electrode_mass_loading_mg_cm2 |
float |
Positive mass loading [mg/cm²] |
negative_electrode_mass_loading_mg_cm2 |
float |
Negative mass loading [mg/cm²] |
positive_electrode_sheet_count |
float |
Positive sheet count (can be fractional) |
negative_electrode_sheet_count |
float |
Negative sheet count (can be fractional) |
jelly_roll_count |
float |
Number of jelly rolls (default: 1.0) |
electrode_coating_side_count |
int |
Number of coating sides (default: 2) |
Dimensions
| Field | Type | Description |
|---|---|---|
form_factor |
string | "Pouch", "Prismatic", "Cylindrical", or "Coin" (default: "Pouch") |
cell_width_mm |
float or None |
Cell width [mm] (for pouch/prismatic; cylindrical cells use cell_diameter_mm) |
cell_height_mm |
float or None |
Cell height [mm] |
cell_thickness_mm |
float or None |
Cell thickness [mm] (for pouch/prismatic) |
cell_diameter_mm |
float or None |
Cell diameter [mm] (for cylindrical/coin) |
Coating Thickness (required)
| Field | Type | Description |
|---|---|---|
positive_coating_thickness_um |
float |
Positive electrode coating thickness [μm] |
negative_coating_thickness_um |
float |
Negative electrode coating thickness [μm] |
Thermal & Electronic Properties (required)
| Field | Type | Description |
|---|---|---|
positive_electrode_specific_heat_capacity_J_kg_K |
float |
Positive electrode specific heat capacity [J/kg/K] |
negative_electrode_specific_heat_capacity_J_kg_K |
float |
Negative electrode specific heat capacity [J/kg/K] |
positive_electrode_electronic_conductivity_S_m |
float |
Positive electrode electronic conductivity [S/m] |
negative_electrode_electronic_conductivity_S_m |
float |
Negative electrode electronic conductivity [S/m] |
positive_electrode_thermal_conductivity_W_m_K and
negative_electrode_thermal_conductivity_W_m_K are required, and appear in the
seeded example, but have no effect in this model. The same applies to the
optional positive_electrode_foil_thermal_conductivity_W_m_K,
negative_electrode_foil_thermal_conductivity_W_m_K and
separator_thermal_conductivity_W_m_K.
Formulation (required)
Each formulation is a list of structured objects with properties:
Active Material (required field: positive_electrode_active_materials, negative_electrode_active_materials)
name-- Material name (e.g. "NMC811_Generic_v1", "Graphite_Generic_v1")mass_fraction-- Mass fraction in electrode (0-1)density_g_cm3-- True density [g/cm³]specific_capacity_mAh_g-- Reversible specific capacity [mAh/g]nominal_voltage_V-- Midpoint voltage vs Li/Li⁺ [V]soc_pct-- State of charge points [%] (optional, for OCV override)ch_ocv_V-- Charge OCV [V] (optional, paired with soc_pct)dch_ocv_V-- Discharge OCV [V] (optional, paired with soc_pct)
soc_pct, ch_ocv_V and dch_ocv_V must be given together, with equal
lengths. The material's OCV curve is built from dch_ocv_V only; ch_ocv_V
is required alongside it but not used. The OCV curve applies only when
simulation_parameters.use_pybamm_params is empty (the default); with any
named parameter set, that set's own OCP curves are used. The range of
soc_pct always sets the electrode's stoichiometry window, whatever
use_pybamm_params says.
Binder (required field: positive_electrode_binders, negative_electrode_binders)
name-- Binder name (e.g. "PVDF")mass_fraction-- Mass fraction in electrode (0-1)density_g_cm3-- Density [g/cm³]
Conductive Agent (required for positive, optional for negative)
name-- Conductive agent name (e.g. "Carbon_Black")mass_fraction-- Mass fraction in electrode (0-1)density_g_cm3-- Density [g/cm³]
Each electrode's mass fractions (active materials + binders + conductive
agents) must sum to 1 (within 1e-6). This is not checked when the run is
submitted: the run starts, then returns success: false with an error such
as Value error, Positive electrode: mass fractions must sum to 1, got
0.9800000000.
Separators & Foils (optional, have defaults)
| Field | Type | Default | Description |
|---|---|---|---|
separator_thickness_um |
float |
12.0 | Separator thickness [μm] |
separator_porosity |
float |
0.42 | Separator porosity |
separator_density_g_cm3 |
float |
0.5 | Separator density [g/cm³] |
positive_electrode_foil_thickness_um |
float |
14.0 | Positive foil thickness [μm] |
negative_electrode_foil_thickness_um |
float |
6.0 | Negative foil thickness [μm] |
positive_electrode_foil_density_g_cm3 |
float |
2.7 | Positive foil density [g/cm³] |
negative_electrode_foil_density_g_cm3 |
float |
8.96 | Negative foil density [g/cm³] |
positive_electrode_foil_electronic_conductivity_S_m |
float |
3.5e7 | Positive foil electronic conductivity [S/m] |
negative_electrode_foil_electronic_conductivity_S_m |
float |
3.5e7 | Negative foil electronic conductivity [S/m] |
positive_electrode_foil_specific_heat_capacity_J_kg_K |
float |
900.0 | Positive foil specific heat capacity [J/kg/K] |
negative_electrode_foil_specific_heat_capacity_J_kg_K |
float |
385.0 | Negative foil specific heat capacity [J/kg/K] |
separator_specific_heat_capacity_J_kg_K |
float |
1000.0 | Separator specific heat capacity [J/kg/K] |
volume_packing_ratio |
float |
0.95 | Volume packing ratio |
electrode_overhang_mm |
float |
1.0 | Electrode overhang [mm] |
jelly_roll_inner_diameter_mm |
float |
4.0 | Inner JR diameter [mm] |
casing_thickness_mm |
float |
0.15 | Casing thickness [mm]. For a cylindrical cell, sets the jelly-roll diameter and so the electrode area; no effect on other form factors |
Optional (cell_parameters)
| Field | Type | Description |
|---|---|---|
electrolyte |
object or None | Electrolyte name and composition (optional); its ionic_conductivity_S_m, ionic_diffusivity_m2_s, transference_number and activity_coefficient override the parameter set's electrolyte properties. Each takes a number or a table; a table acts as one constant, the mean of its values |
positive_electrode_pore_tortuosity |
float or None |
Pore tortuosity (optional) |
negative_electrode_pore_tortuosity |
float or None |
Pore tortuosity (optional) |
separator_tortuosity |
float or None |
Separator tortuosity (optional) |
Note: nominal_capacity_Ah is computed internally from electrode design parameters (mass loading, sheet count, active material specific capacity) and is not accepted as input: a run that sets it is rejected when submitted, with "Additional properties are not allowed ('nominal_capacity_Ah' was unexpected)".
Note: cell_parameters also accepts upper_voltage_cutoff_V (default 4.2) and lower_voltage_cutoff_V (default 3.0), but they have no effect in this model. Calibration, the drive-cycle voltage terminations and the PyBaMM voltage limits all use the cutoffs under simulation_parameters.
Load Cycle
| Field | Type | Description |
|---|---|---|
time_s |
list[float] |
Time points [s] |
power_W |
list[float] or None |
Power values [W] (positive = discharge) |
c_rate |
list[float] or None |
C-rate values (positive = discharge) |
label |
str |
Load cycle label (default: "load_cycle") |
Must specify either power_W or c_rate, not both. time_s must be
non-empty, and the power_W or c_rate array must have the same length as
time_s. The load cycle is nested inside simulation_parameters as
load_cycle.
Simulation Parameters
Nested under simulation_parameters in the top-level input.
Load Cycle (nested)
| Field | Type | Description |
|---|---|---|
load_cycle |
object | Load cycle profile (power or C-rate; see Load Cycle above) |
Operating Conditions
| Parameter | Default | Description |
|---|---|---|
ambient_temperature_K |
298.15 | Ambient temperature [K] |
initial_cell_temperature_K |
None | Initial cell temperature [K]; if None, uses ambient_temperature_K |
reference_cell_temperature_K |
298.15 | Reference temperature for performance test [K] |
start_soc_pct |
100.0 | Initial state of charge [%] (0–100); seeded model uses 50% |
upper_voltage_cutoff_V |
4.2 | Upper voltage limit [V] |
lower_voltage_cutoff_V |
3.0 | Lower voltage limit [V] |
cell_contact_resistance_Ohm |
1e-4 | Cell contact resistance [Ohm] |
Thermal
| Parameter | Default | Description |
|---|---|---|
cell_heat_transfer_coefficient_W_m2_K |
10.0 | Cell heat transfer coefficient [W/(m²·K)] |
cell_cooling_surface_area_m2 |
0.02 | Cell cooling surface area [m²] |
Solver
| Parameter | Default | Description |
|---|---|---|
solver_atol |
1e-3 | Solver absolute tolerance |
solver_rtol |
1e-3 | Solver relative tolerance |
data_sampling_period_s |
0.1 | Output period of the drive-cycle solution [s] |
mesh_resolution |
{"x_n": 10, "x_s": 10, "x_p": 10, "r_n": 10, "r_p": 10} |
PyBaMM mesh points per domain (used for calibration and the drive cycle) |
calibration_rate_C |
0.05 | C-rate of the capacity calibration charge/discharge |
first_cycle_coulombic_loss_pct |
5.0 | First-cycle coulombic loss used to set the electrode stoichiometry windows [%] (0–100) |
use_pybamm_params |
"" | PyBaMM parameter set name (e.g. "Chen2020", "Prada2013", "ORegan2022"); empty string uses Chen2020. Whatever the base, the cell's own geometry, electrolyte, active-material and tortuosity values override it; only an empty string also applies per-material OCV data. "custom" has no special meaning here: with a non-LFP cathode it is looked up as a parameter set name, no such set exists, and the run fails |
When use_pybamm_params names a parameter set and the positive active
material name contains "LFP", the model uses Prada2013 instead of the named
set. With an empty use_pybamm_params, Chen2020 is the base for every
chemistry, including LFP.
Safety Terminations
| Parameter | Default | Description |
|---|---|---|
anode_potential_safety_threshold_V |
0.01 | Anode potential safety limit [V]; terminates if anode potential drops below this; set to null to disable |
temperature_safety_threshold_K |
363.15 | Temperature safety limit [K]; terminates if cell temperature exceeds this; set to null to disable |
OCV Model
| Parameter | Default | Description |
|---|---|---|
positive_electrode_ocv_model |
"polynomial" |
OCV model for positive electrode in PyBaMM; one of "msmr", "polynomial", "constant", "table" |
negative_electrode_ocv_model |
"polynomial" |
OCV model for negative electrode in PyBaMM; one of "msmr", "polynomial", "interpolant", "table" |
Inputs with no effect
perform_rpt, rpt_dcir and rpt_power are accepted but have no effect in
this model. timeseries_rdp_epsilon is accepted but has no effect: the
timeseries is not subsampled.
In cell_parameters, electrolyte_density_g_cm3, electrolyte_fill_ratio,
casing_density_g_cm3 and the electrolyte composition only feed internal
cell-mass figures that this model does not return, so they have no effect.
Output Schema
Timeseries (timeseries)
The timeseries is the raw solver output for the drive-cycle step, with no
subsampling, at the output period set by data_sampling_period_s. The
simulation rests for 1 s before the drive cycle starts, and only the
drive-cycle step is returned, so time_s is simulation time and starts at
about 1 s. All arrays have the same length:
time_s-- simulation time [s]voltage_V-- terminal voltage [V]current_A-- current [A] (positive = discharge)power_W-- terminal power [W]temperature_K-- cell temperature [K]capacity_Ah-- discharge capacity [A.h]soc-- state of charge (0-1)energy_Wh-- discharge energy [W.h]anode_potential_V-- anode potential [V]
Summary (summary)
| Field | Description |
|---|---|
duration_s |
Duration of the returned drive-cycle step [s] (excludes the 1 s rest) |
data_points |
Number of timeseries points |
voltage_min/max_V |
Voltage range |
current_min/max_A |
Current range |
power_min/max_W |
Power range |
temperature_min/max_K |
Temperature range |
soc_start/end |
SOC at start and end |
soc_used_pct |
SOC consumed [%] |
Energy Analysis (energy_analysis)
| Field | Description |
|---|---|
energy_discharged_Wh |
Total energy discharged |
energy_regenerated_Wh |
Total energy regenerated (regen braking) |
energy_net_Wh |
Net energy (discharged - regenerated) |
capacity_used_Ah |
Total capacity consumed |
soc_change_pct |
SOC change [%] |
regeneration_ratio_pct |
Regeneration / discharge ratio [%] |
Top-level
success-- booleantermination_reason-- "final time", "Lower voltage cut-off", etc.timeseries-- see Timeseries abovesummary-- see Summary aboveenergy_analysis-- see Energy Analysis aboveconfig-- echo of simulation parameterserror-- error message on failure (there is notracebackfield in the output)
Default Configuration
Cell Parameters: Pouch 80Ah-style
The seeded default uses a standalone Pouch 80Ah-style NMC811 / graphite cell and the Aero Quad Drone drive cycle. The seed's load cycle holds 600 points; the example below shows only the first five to keep it readable.
{
"cell_parameters": {
"positive_electrode_mass_loading_mg_cm2": 25.126,
"negative_electrode_mass_loading_mg_cm2": 18.0,
"positive_electrode_sheet_count": 18.0,
"negative_electrode_sheet_count": 19.0,
"form_factor": "Pouch",
"cell_width_mm": 503.546,
"cell_height_mm": 88.971,
"cell_thickness_mm": 9.012,
"positive_coating_thickness_um": 87.3,
"negative_coating_thickness_um": 115.3,
"positive_electrode_active_materials": [
{
"name": "NMC811_Generic_v1",
"mass_fraction": 0.89,
"density_g_cm3": 4.8,
"specific_capacity_mAh_g": 200.0,
"nominal_voltage_V": 3.77
}
],
"negative_electrode_active_materials": [
{
"name": "Graphite_Generic_v1",
"mass_fraction": 0.91,
"density_g_cm3": 2.26,
"specific_capacity_mAh_g": 365.0,
"nominal_voltage_V": 0.1
}
],
"positive_electrode_binders": [
{"name": "PVDF_Generic_v1", "mass_fraction": 0.055, "density_g_cm3": 1.78}
],
"negative_electrode_binders": [
{"name": "CMC_Generic_v1", "mass_fraction": 0.045, "density_g_cm3": 1.6},
{"name": "SBR_Generic_v1", "mass_fraction": 0.045, "density_g_cm3": 0.94}
],
"positive_electrode_conductive_agents": [
{"name": "CarbonBlack_Generic_v1", "mass_fraction": 0.055, "density_g_cm3": 1.9}
],
"negative_electrode_conductive_agents": [],
"separator_thickness_um": 18.0,
"separator_porosity": 0.4,
"separator_density_g_cm3": 0.95,
"positive_electrode_foil_thickness_um": 14.0,
"negative_electrode_foil_thickness_um": 12.0,
"positive_electrode_foil_density_g_cm3": 2.7,
"negative_electrode_foil_density_g_cm3": 8.96,
"positive_electrode_foil_electronic_conductivity_S_m": 3.77e7,
"negative_electrode_foil_electronic_conductivity_S_m": 5.96e7,
"positive_electrode_specific_heat_capacity_J_kg_K": 700.0,
"negative_electrode_specific_heat_capacity_J_kg_K": 700.0,
"positive_electrode_thermal_conductivity_W_m_K": 1.0,
"negative_electrode_thermal_conductivity_W_m_K": 1.0,
"positive_electrode_electronic_conductivity_S_m": 100.0,
"negative_electrode_electronic_conductivity_S_m": 100.0,
"casing_thickness_mm": 0.144
},
"simulation_parameters": {
"ambient_temperature_K": 298.15,
"start_soc_pct": 50.0,
"upper_voltage_cutoff_V": 4.2,
"lower_voltage_cutoff_V": 2.8,
"solver_atol": 1e-4,
"solver_rtol": 1e-4,
"data_sampling_period_s": 1.0,
"load_cycle": {
"time_s": [0.0, 1.0, 2.0, 3.0, 4.0],
"power_W": [68.92, 67.69, 72.13, 74.82, 74.32],
"label": "Aero Quad Drone"
}
}
}
Chemistry: NMC811 / Graphite
Nominal Capacity: computed from electrode design (mass loading, sheet count, active material specific capacity)
Voltage Range: 2.8 V - 4.2 V (simulation_parameters cutoffs)
Start SOC: 50%
Form Factor: Pouch, 503.546 x 88.971 x 9.012 mm
Parameter Set: Chen2020 base (use_pybamm_params not set) with the cell's own properties applied
Drive Cycle: Aero Quad Drone
- Duration: 599 seconds (~10 minutes)
- Data points: 600 (
time_s0-599 s in 1 s steps) - Power range: 24.26 - 84.12 W (discharge only, no regen)
- Input type: power_W (positive = discharge)
Example Results
A successful run returns success: true, a termination_reason (for example
"final time" when the full drive cycle completes), and the timeseries,
summary, energy_analysis and config blocks described under
Output Schema. For the seeded cycle, summary.soc_start is
0.5 and energy_analysis.energy_regenerated_Wh is 0, since the cycle has no
negative power points.