One metal, two environments
Cu ⇌ Cu²⁺ + two electrons. The signed voltage is measured right minus left.
E = RT/(2F) ln(cᵣ/cₗ)
I = E/(Rload + Rinternal)
dξ/dt = I/(2F)
cₗ = cₗ₀ + ξ/V
cᵣ = cᵣ₀ − ξ/V
Textbook constants: R = 8.314462618 J mol⁻¹ K⁻¹; F = 96485.33212 C mol⁻¹; electron count = 2; copper molar mass = 63.546 g/mol. Internal resistance = 100 Ω (illustrative). Each vessel has equal fixed volume V in litres. Signed reaction extent ξ is in moles.
Fixed-step RK4, physical substeps ≤ 1 s. The time multiplier is scaled. Beaker geometry, ion markers, metal thickness and animation speed are scaled. No literal ion trajectories are calculated.
Ideal, isothermal, well-mixed reservoirs; activity coefficients are set to unity. No liquid-junction potential, electrode polarisation, diffusion limitation or evaporation. The bridge supplies charge balance but does not directly mix the copper reservoirs. An open bridge sets steady current to zero; transient charging is omitted.
Negative voltage means reversed polarity. Equal concentrations give zero emf: a failed concentration battery, even with two copper electrodes.
Reference: University of Washington, “Concentration Cell”, and the textbook Nernst relation. This offline model is an educational idealisation.