Skip to content

SPMeT DCIR Model Try Protos

← Models · SPMeT DCIR

Calculates Direct Current Internal Resistance at configurable SOC, temperature, and C-rate combinations.


Physics-based Direct Current Internal Resistance (DCIR) simulation using the Single Particle Model with Electrolyte (SPMe). Every simulation runs isothermally. Calculates DCIR at configurable time points from cell design parameters.

Overview

Simulates DCIR pulses at specified SOC, temperature, and C-rate combinations, returning DCIR values at multiple time points (default: 0.1s, 1s, 10s, 18s, 30s). Supports single-point and parametric sweep simulations with automatic capacity calibration.

Protocol

1. Compute equilibrium KPIs (electrode balancing, stoichiometry windows)
2. Build PyBaMM parameters from cell design
3. Capacity calibration (iterative electrode width adjustment)
4. DCIR sweep across SOC/temperature/C-rate combinations
   (each pulse: 1 s rest, then a constant-current pulse, isothermal at the condition's temperature)
5. Extract DCIR at specified time points for each condition:
   |V(end of rest) - V(t)| / I, plus cell_contact_resistance_Ohm

Input Schema

Top-Level Structure

The input uses a nested structure with two top-level keys:

  • cell_parameters - Cell design parameters
  • simulation_parameters - Simulation configuration, including the required dcir_conditions

Cell Parameters

Structured nested input that mirrors the Cell Performance cell schema. 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 int Positive sheet count
negative_electrode_sheet_count int Negative sheet count
jelly_roll_count int Number of jelly rolls (default: 1)
electrode_coating_side_count int Number of coating sides (default: 2)

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_thermal_conductivity_W_m_K float Positive electrode thermal conductivity [W/(m·K)]
negative_electrode_thermal_conductivity_W_m_K float Negative electrode thermal conductivity [W/(m·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]

Because every simulation is isothermal, the specific heat capacity and thermal conductivity fields are required but do not change the results.

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)

Electrode Dimensions (Optional)

Field Type Description
positive_electrode_width_mm float or None Positive electrode width [mm]. Set together with positive_electrode_height_mm, it gives the positive electrode area directly instead of deriving it from the cell dimensions.
positive_electrode_height_mm float or None Positive electrode height [mm]. Set together with positive_electrode_width_mm, it gives the positive electrode area directly instead of deriving it from the cell dimensions.
negative_electrode_width_mm float or None Negative electrode width [mm]. Set together with negative_electrode_height_mm, it gives the negative electrode area directly; otherwise the negative area is derived from the cell dimensions, not from the positive electrode dimensions.
negative_electrode_height_mm float or None Negative electrode height [mm]. Set together with negative_electrode_width_mm, it gives the negative electrode area directly; otherwise the negative area is derived from the cell dimensions, not from the positive electrode dimensions.

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]

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)

The OCV curves (ch_ocv_V / dch_ocv_V) apply only when simulation_parameters.use_pybamm_params is "custom". The range of soc_pct always sets the electrode's stoichiometry window, whatever use_pybamm_params says: a material whose soc_pct runs from 10 to 90 limits that electrode to stoichiometries 0.1–0.9. Without OCV data the window is 0–1.

For each electrode, the mass fractions of all active materials, binders and conductive agents must sum to 1 (tolerance 1e-6); otherwise the run is rejected with a validation error.

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³]

Separators & Foils (optional, have defaults)

Field Type Default Description
separator_sheet_count float or None None Separator sheet count. If not provided, calculated as pos_count + neg_count + 1
separator_sheet_width_mm float or None None Separator sheet width [mm]. If not provided, uses positive electrode width + overhang
separator_sheet_height_mm float or None None Separator sheet height [mm]. If not provided, uses positive electrode height + overhang
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³]
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]

Separator dimension derivation logic:

  • If both separator_sheet_width_mm and separator_sheet_height_mm are provided, they are used directly.
  • Otherwise, separator dimensions are derived from positive electrode dimensions plus overhang (4 × electrode_overhang_mm total, accounting for 2 × overhang per side).
  • For cylindrical cells, separator area approximates positive electrode area.

Optional (cell_parameters)

Field Type Description
electrolyte object or None Electrolyte name and composition, plus optional ionic_conductivity_S_m, ionic_diffusivity_m2_s, transference_number and activity_coefficient. Only these four transport properties change the simulation
positive_electrode_pore_tortuosity float or None Pore tortuosity (optional). Used by the capacity calibration only; the DCIR pulses ignore it
negative_electrode_pore_tortuosity float or None Pore tortuosity (optional). Used by the capacity calibration only; the DCIR pulses ignore it
separator_tortuosity float or None Separator tortuosity (optional). Used by the capacity calibration only; the DCIR pulses ignore it

cell_parameters.upper_voltage_cutoff_V and cell_parameters.lower_voltage_cutoff_V are accepted but have no effect in this model; the simulations use the cutoff pair in simulation_parameters.

Note: nominal_capacity_Ah is computed internally from electrode design parameters (mass loading, sheet count, active material specific capacity). It isn't an input: sending it in cell_parameters is rejected as an unknown field.

Simulation Parameters

Nested under simulation_parameters in the top-level input.

DCIR Conditions (required)

Nested under simulation_parameters.dcir_conditions. All fields are lists to support parametric sweeps:

Field Type Description
dcir_soc_pct list[float] SOC values [%] (0-100) for DCIR measurements
dcir_temperature_K list[float] Temperature values [K] for DCIR measurements
dcir_c_rate list[float] C-rate magnitudes for the DCIR pulse. The sign is ignored; dcir_direction sets charge or discharge
dcir_direction list[str] Pulse direction: "discharge" or "charge" (case-insensitive). See the note below the table
dcir_pulse_duration_s list[float] Pulse duration [s]
dcir_time_points_s list[float] Time points [s] at which to extract DCIR (default: [0.1, 1.0, 10.0, 18.0, 30.0])

dcir_conditions must be supplied: a request without it fails the whole run with 'dict' object has no attribute 'dcir_c_rate' and no results. Every field except dcir_time_points_s is required.

Every pulse in a run uses the last value in dcir_direction. With ["discharge", "charge"], all pulses are charge pulses, although the results for the "discharge" entry carry a positive (discharge) c_rate. To measure both directions, run the model once per direction with a single-value dcir_direction. If the last value is anything other than "discharge" or "charge", the whole run fails with Unsupported DCIR direction and returns no results.

Time points are measured from the start of the pulse, and each one takes the nearest sample of a fixed 0.1 s output grid; a time point later than the pulse duration repeats the value at the end of the pulse.

The model performs a full parametric sweep (5-way Cartesian product) across all combinations of dcir_direction × dcir_c_rate × dcir_pulse_duration_s × dcir_temperature_K × dcir_soc_pct, so the number of simulations is the product of the five list lengths.

Operating Conditions

Parameter Default Description
ambient_temperature_K 298.15 Temperature for the capacity calibration [K]. Each DCIR pulse runs at its own dcir_temperature_K
reference_cell_temperature_K 298.15 Reference temperature for the PyBaMM parameter set [K]
upper_voltage_cutoff_V 4.2 Upper voltage limit [V], used by the capacity calibration and the DCIR pulses
lower_voltage_cutoff_V 3.0 Lower voltage limit [V], used by the capacity calibration and the DCIR pulses
cell_contact_resistance_Ohm 1e-4 Cell contact resistance [Ohm]. Included in the simulation and also added to every reported DCIR value

Solver

Parameter Default Description
solver_atol 1e-3 Solver absolute tolerance
solver_rtol 1e-3 Solver relative tolerance
use_pybamm_params "" PyBaMM parameter set name (e.g. "Chen2020", "Prada2013", "ORegan2022"). "" and "custom" both load Chen2020 as the base. Whichever set loads, the cell design's electrode, active-material, electrolyte and tortuosity values override it (the tortuosity values reach only the capacity calibration); only "custom" also applies the per-material OCV data. If any positive active material name contains "LFP", Prada2013 is used whatever this field says
mesh_resolution {"x_n": 10, "x_s": 10, "x_p": 10, "r_n": 10, "r_p": 10} PyBaMM spatial mesh points per domain (negative/separator/positive electrode thickness, negative/positive particle radius). Used for the capacity calibration; the DCIR pulses use PyBaMM's default mesh
positive_electrode_ocv_model "polynomial" OCV model for positive electrode in PyBaMM: "msmr", "polynomial", or "interpolant". Applies only with use_pybamm_params: "custom"
negative_electrode_ocv_model "polynomial" OCV model for negative electrode in PyBaMM: "msmr", "polynomial", or "interpolant". Applies only with use_pybamm_params: "custom"
first_cycle_coulombic_loss_pct 5.0 First-cycle coulombic loss used for initial electrode stoichiometry balancing [%]

Capacity Calibration

Parameter Default Description
calibration_rate_C 0.05 C-rate for capacity calibration experiment [C]

Fields With No Effect

perform_rpt, rpt_dcir and rpt_power are accepted but have no effect in this model; no reference performance test runs. The same applies to anode_potential_safety_threshold_V (default 0.01) and temperature_safety_threshold_K (default 363.15, must be > 0), which are only echoed in the output conditions; to cell_heat_transfer_coefficient_W_m2_K, cell_cooling_surface_area_m2 and initial_cell_temperature_K, since every simulation is isothermal; and to data_sampling_period_s, timeseries_rdp_epsilon and start_soc_pct.

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. The same applies to separator_sheet_count, separator_sheet_width_mm, separator_sheet_height_mm, separator_density_g_cm3, positive_electrode_foil_density_g_cm3, negative_electrode_foil_density_g_cm3 and, for pouch and prismatic cells, cell_thickness_mm: they only feed mass, bill-of-materials and thermal figures, and every DCIR simulation is isothermal. casing_thickness_mm has an effect only for a cylindrical cell where an electrode lacks its width and height pair (for example, a cell without both negative electrode dimensions), where it sets the jelly-roll diameter and so that electrode's area.

Output Schema

Top-Level

Field Type Description
success bool Whether all simulations completed successfully
results list[dict] List of result dicts, one per direction/C-rate/pulse duration/temperature/SOC combination
conditions dict Summary of input conditions and thresholds
error str or None Concatenated error messages from failed simulations

Result Items (results)

Each item in the results list contains:

Field Type Description
success bool Whether this specific simulation succeeded
dcir_mOhm dict[str, float] DCIR values [mΩ] at each time point (keys are time point strings, e.g. "0.1", "1.0", "10.0"). Each value includes cell_contact_resistance_Ohm
conditions dict Condition for this result: soc_%, temperature_K, c_rate. c_rate carries the direction as a sign (negative for charge when dcir_c_rate is positive); pulse duration is not included
error str or None Error message if simulation failed

Conditions Summary (conditions)

Field Type Description
soc_% list[float] Sorted list of SOC values tested
ambient_temperature_K list[float] Sorted list of temperature values tested
c_rate list[float] Sorted list of signed C-rate values tested (negative for charge)
contact_resistance_Ohm float Contact resistance [Ohm], from cell_contact_resistance_Ohm; an input of 0 is reported as 1e-5, though the simulation uses 0
pulse_duration_s float Pulse duration [s]; with several durations, the last one in dcir_pulse_duration_s
dcir_time_points_s list[float] Time points at which DCIR was extracted [s]
safety_threshold_anode_potential_V float or None Anode potential safety threshold [V] (echoed from the input; not enforced)
safety_threshold_jelly_roll_temperature_K float or None Temperature safety threshold [K] (echoed from the input; not enforced)
use_model_parameters str Value of use_pybamm_params (empty string by default)

Default Configuration

Cell Parameters: Pouch 80Ah-style

The seeded default cell configuration uses standalone Pouch 80Ah-style parameters:

{
  "cell_parameters": {
    "positive_electrode_mass_loading_mg_cm2": 25.126,
    "negative_electrode_mass_loading_mg_cm2": 18.0,
    "positive_electrode_sheet_count": 18,
    "negative_electrode_sheet_count": 19,
    "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": 37700000.0,
    "negative_electrode_foil_electronic_conductivity_S_m": 59600000.0,
    "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
  }
}

Chemistry: NMC811 / Graphite
Nominal Capacity: computed from electrode design
Voltage Range: 3.0V - 4.2V (simulation_parameters defaults, configurable)
Form Factor: Pouch (503.546 mm x 88.971 mm x 9.012 mm cell)

Note: the request body also requires a top-level simulation_parameters key alongside cell_parameters, and simulation_parameters must contain dcir_conditions (see below). Every other field inside simulation_parameters has a default.

DCIR Conditions: Seeded Sweep

The seeded default parameters use a single-direction sweep:

{
  "simulation_parameters": {
    "dcir_conditions": {
      "dcir_soc_pct": [
        50,
        80
      ],
      "dcir_temperature_K": [
        298.15,
        318.15
      ],
      "dcir_c_rate": [
        1.0
      ],
      "dcir_direction": [
        "discharge"
      ],
      "dcir_pulse_duration_s": [
        30
      ],
      "dcir_time_points_s": [
        0.1,
        1.0,
        10.0,
        18.0,
        30.0
      ]
    }
  }
}

This performs 4 simulations (2 SOC × 2 temperature) with 1 C-rate, 1 direction and 1 pulse duration.

Example Results

For the seeded defaults, results holds 4 items, one per SOC (50, 80 %) and temperature (298.15, 318.15 K) pair, each with c_rate 1.0 and a dcir_mOhm entry for each of the 5 time points (0.1, 1.0, 10.0, 18.0, 30.0 s).


← Back to Models