diff options
| author | Vaino Kauppila <vaino@vke.fi> | 2026-10-11 15:29:25 +0300 |
|---|---|---|
| committer | Vaino Kauppila <vaino@vke.fi> | 2026-10-11 15:29:25 +0300 |
| commit | 3366961e7881376d6192af92ff01f2dcf0b0a0c7 (patch) | |
| tree | 77b0da7064209e53ad8bf9db540a312d4fbc644f /README.md | |
| parent | abe94972619bcd48fa928ccefdff9a814971a5a5 (diff) | |
| download | kisim-main.tar.gz kisim-main.zip | |
The RC example now sweeps R1 (+-5%) and C1 (+-10%) extremes, reads the
pole off each transient (tau = 1 - 1/e crossing, fc = 1/(2*pi*tau)),
overlays the analytic scipy.signal step response per corner, and adds
a Bode plot of H(s) = 1/(1 + sRC) with pole/cutoff comparison table.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -53,10 +53,14 @@ raw files. ## Example -`examples/` is a small runnable demo: +`examples/` is a small runnable demo — a 5 V step into an RC low-pass: -- `rc_lp.cir` — a plain ngspice netlist: 5 V step into 1 kΩ + 100 nF -- `rc_lp.py` — runs it with kisim and plots V(in)/V(out) +- `rc_lp.cir` — a plain ngspice netlist (1 kΩ, 100 nF) +- `rc_lp.py` — runs it; then sweeps R1/C1 tolerance corners of the step + response (`corners` + `run_cases`), reading τ and the pole (f−3dB) off each + transient; then cross-checks the transient results against the control + model H(s) = 1/(1 + sRC) with `scipy.signal` — analytic step overlay, poles + and a Bode plot ```sh micromamba run -n kicad_work python examples/rc_lp.py |
