API & MCP

Everything a person can do on Ohmforge Transient Simulation, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ohmforge Transient Simulation

Runs a transient (time-domain) simulation of a SPICE netlist with trapezoidal or backward-Euler integration, adaptive time steps and breakpoints at source corners. Returns resampled waveforms of the chosen nodes, oscilloscope-style measurements (min, max, Vpp, mean, RMS, frequency, duty cycle, rise time), rating warnings, a chart and CSV.

Inputs of Ohmforge Transient Simulation
FieldTypeDefaultDescription
netlisttextarea—SPICE netlist. Subset: R C L V I D Q M E G K, X subcircuit instances with .subckt/.ends (nested, with params), .param and {expressions}, .model, SIN/PULSE/PWL sources, engineering suffixes (k, m, u, n, p, meg). Node 0 is ground. Leave empty when you pass an Ohmforge project instead.
projecttextarea—Ohmforge project JSON (optional). Alternative to the netlist: a .ohmforge.json project as saved by the app (format "ohmforge", version 1).
tstopnumber—Stop time. Simulated duration. Empty = use the .tran line of the netlist (or the project's transient settings).
tstepnumber—Output step. Spacing of the returned samples (also the largest internal step). Empty = .tran value or stop time / 1000.
methodselect (trap, be)"trap"Integration
uicbooleanfalseStart from initial conditions (skip the operating point). Capacitors start at their IC (default 0 V). Needed for oscillators.
probeslist—Nodes to return. Node names; empty = all nodes (max 8 in the chart).

Example request

RC step response (τ = 1 ms)

curl -X POST https://ohmforgetransient.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"netlist":"* RC step response, tau = 1 ms\nV1 in 0 PULSE(0 1 0 1n 1n 10m 20m)\nR1 in out 1k\nC1 out 0 1u\n.tran 10u 5m\n.end","probes":["in","out"]}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "ohmforge-transient": { "type": "http", "url": "https://ohmforgetransient.usefulweb.site/mcp" }
  }
}