Li-ion Battery Charge and Discharge (3D lab)

A cutaway 18650 cell and an electrode diagram: run CC-CV charging and discharging, watch lithium move, and see voltage, heat, temperature and ageing effects.

Switch to 2D

Presets

Playback

Cell and conditions

Display

Camera

Layers

Quality

Model check

The science

What happens inside. Charging pushes lithium ions out of the NMC cathode, across the electrolyte-soaked separator and into the graphite anode (graphite turns golden as LiC6 forms); discharging lets them travel back while the electrons do work in the external circuit. The picture colours both electrodes by the lithium content and moves the ions across the separator as the state of charge changes.

Equations used by the page

  • Terminal voltage (Thevenin equivalent circuit): V = OCV(SOC) - I R0 - v1, with I > 0 on discharge.
  • Polarisation: dv1/dt = (I R1 - v1) / (R1 C1), time constant tau = R1 C1 (30 s here). Stepped exactly: v1 -> I R1 + (v1 - I R1) e^(-dt/tau).
  • Coulomb counting: dSOC/dt = -I / (3600 Q), Q in Ah. Rate "1C" means I = Q amperes.
  • CC-CV charging: constant current until V = 4.2 V, then the current is reduced so that V stays at 4.2 V, ending when I falls below the cut-off (default C/20).
  • Heat and temperature: C_th dT/dt = I^2 R0 + v1^2/R1 - hA (T - T_amb) (45 J/K, 0.08 W/K, i.e. a small cell in still air).
  • Arrhenius resistance: R = R25 exp(E_a (1/T - 1/298 K)) with E_a/k = 2000 K; cold cells therefore sag and hit the 3.0 V cut-off earlier. Ageing: capacity Q = 3.0 Ah (1 - 0.2 N/1000), R0 grows by 80% over 1000 cycles.
  • Energy balance: integral V I dt = integral OCV I dt - integral (I^2 R0 + v1^2/R1) dt - C1 v1^2/2.

Honest simplifications

This is a lumped equivalent-circuit model, not a model of lithium transport: no diffusion limits inside particles, no lithium plating or SEI growth physics (ageing is a straight-line fade, not a measured curve), one RC pair, no entropy-heat term and no cell-to-cell spread. The open-circuit curve is a smooth table typical for an NMC/graphite 18650, not data for a specific product. The cell is drawn 10 times larger than life and the ions are a diagram, not a count; each dot flips from graphite to cathode when the state of charge passes its personal threshold. Charging a cold cell or discharging far below the cut-off is physically harmful; the page stops at the limits.

Checks run in the page

(1) A complete C/20 discharge from full, stepped at 0.2 s, against the analytic delivered capacity Q (1 - SOC_cut). (2) The energy balance above over a 50 minute 1C discharge. (3) The RC polarisation after a 1 A step against R1 (1 - e^(-t/tau)).

Loading model...
Loading Blender model...
Terminal and open-circuit voltage versus time
Current versus time (+ discharge)
State of charge and temperature rise versus time
Voltage versus state of charge
Made with 🟠 Blender · Three.js