Lemonergy Wiki

Worked examples

Series RLC: step response from rest

Apply a 10 V step to an original series resistor–inductor–capacitor teaching circuit and compare current and charge with its damped closed-form response.

Document created Updated
Draft explanationSource record reviewed

What this model teaches

Apply a 10 V step to an original series resistor–inductor–capacitor teaching circuit and compare current and charge with its damped closed-form response.

Two integrators implement dq/dt = i and di/dt = (10 − 8i − q/0.002)/0.4. The analytical damping is 10 s⁻¹ and damped angular frequency is √1150 rad/s. The charge approaches C·E = 0.02 C.

Original series-circuit topology with zero stored energy at initialization. Equation ports use explicit SI numerical mapping (1 unit = 1 A, 1 C or 1 V) because this preserved equation runtime has no charge-rate port type. The inputs are authored synthetic teaching choices. No measured cell, material dataset or external software trace is reproduced. Passing verifies these numerical implementations against analytical equations; it does not establish hardware accuracy, safety or parity with another product. Maximum-error gates are fixed before execution. RMSE weights accepted solver samples equally; it is not a uniform-time integral. Ideal linear components and a prescribed ideal voltage step. Parasitics, switching losses and physical component tolerances are omitted. This is an equation graph, not a conserving-network topology test.

Open and run

Open prepared examples and select Series RLC: step response from rest. Choose Run prepared model for a fresh native solve. The public viewer is read-only; the displayed Pro editor is a separate product and may require a separately saved model. Download the complete model and retained run to inspect the exact graph and outputs.

This original graph has 7 blocks, 8 connections and 3 compared signals. It carries reference version 2.

Prescribed inputs

InputValueUnit
Series resistance8Ω
Inductance0.4H
Capacitance0.002F
Applied voltage10V
Initial current0A
Initial charge0C

Blocks and parameters

Block IDTypeParameters
capacitive-rategaingain=-1250; inputQuantity=dimensionless
chargeintegratorgain=1; initial=0; rateQuantity=dimensionless
currentintegratorgain=1; initial=0; rateQuantity=dimensionless
current-ratesuminputs=3
input-voltageconstantvalue=10
resistive-rategaingain=-20; inputQuantity=dimensionless
source-rategaingain=2.5; inputQuantity=dimensionless

The runtime connections in the downloaded model are authoritative. A gain changes the mathematical coefficient only when it is wired to the stated signal.

Original numerical plot

Original generated plot of the new synthetic native result and analytical reference.
Original generated numerical plot for Series RLC: step response from rest. The native trace and independently evaluated analytical reference come from the retained execution report; this is not a screenshot or measured waveform. Captured .

This is an original plot generated from the retained native trace, not a screenshot and not a downloaded external waveform. The overlaid reference is evaluated independently at each accepted solver time.

Recorded numerical checks

A fresh run on 2026-10-28T17:13:51.851Z retained 714 output points. The execution report includes every native point, analytical comparison and source fingerprint.

SignalMaximum absolute errorFixed gatePoints
Series current1.936704963068081e-111e-7714
Capacitor charge5.983789852503918e-131e-7714
Applied voltage01e-7714

Errors and gates use each signal's stated unit. The check requires the complete 0–1.2 s interval, every accepted output point, finite values, correct block quantities, current reference binding and exact solver settings. It rejects missing current-switch instants for the pulse model.

Try an edit carefully

Changing a prescribed input creates a different mathematical experiment. The original comparison should then fail; do not enlarge its gate to accept changed equations. Create a separately justified contract and oracle for a new experiment.

Equations and provenance

Read the original input contract, how to interpret comparisons and model workflow. These numbers are hypothetical choices. Passing establishes numerical agreement for these equations only. No measured accuracy, safety or external-software parity is claimed.

Models and evidence

  • Open prepared model
  • Download model and run 180324 bytes
    Artifact provenance

    Repository origin: outputs/synthetic-reference/models/lemonergy-series-rlc-step-v1.lemon.json

    SHA-256: 4b9766f3e571036a6be8d1f698708bfa42d36250be4a9e3ad4404c617bf00629

  • Download numerical evidence 2994324 bytes
    Artifact provenance

    Repository origin: outputs/synthetic-reference/native-synthetic-reference-report.json

    SHA-256: 64ea006f1dac1f2ec11c6366ee3393729dc76d6ad5a21c4cf094231806a8a1f6

Downloads preserve recorded inputs and results. Opening a saved result does not run a new simulation.