Ohmforge DC Operating Point

SPICE netlist in, node voltages, branch currents, power and overload warnings out.

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.

More options

Alternative to the netlist: a .ohmforge.json project as saved by the app (format "ohmforge", version 1).

Try an example: · ·

More about this tool

Part of Ohmforge

How it works

Solves the DC operating point of a circuit with Ohmforge's SPICE-style engine (Modified Nodal Analysis, Newton–Raphson with junction limiting, damping, gmin and source stepping). Returns every node voltage, the current and power of every element, total supply power, parts beyond their ratings and plain-language convergence diagnostics.

  • The netlist is parsed (SPICE subset; .param values and {expressions} are evaluated and .subckt instances are flattened into plain elements named like R.X1.R1) and compiled into Modified Nodal Analysis unknowns: one voltage per node plus one current per voltage source, inductor and controlled-source output.
  • Nonlinear devices (Shockley diode with series resistance and breakdown, Ebers–Moll BJT with Early effect, Shichman–Hodges level-1 MOSFET) are linearised at each Newton–Raphson iteration; junction voltages are limited with the SPICE3 pnjlim rule.
  • If plain Newton–Raphson fails, the solver retries with damping (≤ 0.5 V per iteration), then gmin stepping (1e-2 S → 1e-12 S to ground on every node) and finally source stepping (all sources ramped 0 → 100 %). Every attempt is reported in plain words.
  • Topology checks run first: missing ground, loops of voltage sources/inductors (no unique solution) and nodes without a DC path to ground.
  • Element power is Σ(terminal current × node voltage); sources show negative power when delivering. Ratings (resistor watts, LED current, diode/transistor limits, capacitor voltage) are compared with the result. SPICE netlists carry no resistor wattage: give one with the Ohmforge extension POWER= (R1 a b 47 POWER=2); a netlist resistor without one is checked against 0.25 W, the default rating of a resistor placed in the app (stated in the result).

Teaching-grade simulation: device models are simplified (Ebers–Moll BJT, level-1 MOSFET, behavioural op-amps and 555) and part ratings are typical values. Verify real designs on the bench and against manufacturer data before building anything connected to mains voltage.

Sources

Part of Ohmforge

  • Ohmforge Virtual electronics workbench

    Draw a circuit, switch it on, and measure it with real-feeling bench instruments.

    Open Ohmforge

Related tools

How to use the Ohmforge DC Operating Point simulator

Paste a SPICE netlist and get every node voltage, branch current and power, plus overload warnings and plain-language convergence diagnostics.

What it is for

Before you build or debug a circuit, the first question is its DC state: what voltage sits on each node, how much current flows through each part, and is anything overloaded? That's the operating point SPICE calculates with .op. This tool runs Ohmforge's SPICE-style engine on a netlist you paste, or on an .ohmforge.json project saved from the app. It returns all node voltages, the current and power of every element, the total supply power, rating warnings and diagnostics in plain words.

It supports a practical SPICE subset: R, C, L, V, I, diodes, BJTs, MOSFETs, controlled sources, coupled inductors, .model, .param and .subckt. Node 0 is ground. The device models are teaching-grade (Shockley diode, Ebers–Moll BJT, level-1 MOSFET), so expect numbers close to, but not identical with, a full simulator using vendor models. The result includes a project download you can open in the Ohmforge workbench.

Worked example

The classic first check is a voltage divider:

* Voltage divider
V1 in 0 DC 10
R1 in out 1k
R2 out 0 3k
.op

Result: V(in) = 10 V, V(out) = 7.5 V. The supplies deliver 25 mW. 2.5 mA flows through both resistors. R1 dissipates 6.25 mW, R2 18.75 mW, and V1 shows −25 mW because a source that delivers power is negative.

A more useful case is a 2N3904 switching a red LED from 9 V (RB 10k, RC 470 Ω). The tool converges after 11 Newton iterations: V(b) = 737.9 mV, collector at 86.61 mV (the transistor is fully saturated), 826 µA base current, 15 mA through the LED, 105.7 mW in RC and 142.4 mW in total.

Now a mistake on purpose: a red LED on 12 V with only 47 Ω. The summary ends with "There are 2 rating warnings": D1 carries 197.3 mA, far above its 20 mA limit – a real LED would burn out, and R1 dissipates 1.829 W, more than twice its 250 mW rating.

How to read the result

  • Node voltages: each node relative to ground (node 0).
  • Element table: voltage across, current through and power of each part. Current flows from the element's first node to its second, so a negative value means the other way. For transistors it's the collector or drain current.
  • Total supply power: what all sources deliver together.
  • Stress / rating warnings: parts beyond their ratings, such as LED current or library-model limits.
  • Warnings and diagnostics: topology problems and which solver strategy was needed (plain Newton–Raphson, damping, gmin or source stepping).

Tips and common mistakes

  • Every circuit needs a node 0. A node connected only through capacitors gets a warning (no DC path to ground) and is tied to 0 V through a tiny conductance, so its voltage is meaningless.
  • SPICE netlists carry no resistor wattage, so resistors without one are checked against an assumed 0.25 W, the app's default, and the result says so. For a bigger part, add the wattage to its line, e.g. R1 in a 47 POWER=5.
  • Use engineering suffixes carefully: m is milli, meg is mega. 1M means 1 milliohm, as in all SPICE dialects.
  • If convergence needed gmin or source stepping, double-check the circuit. Positive-feedback circuits can have more than one valid operating point.

FAQ

Why does the voltage source show negative power?

By convention, power delivered by a source is negative and power absorbed by a load is positive. Their sum is zero.

Can I open the result in Ohmforge?

Yes. Download the project file from the result and open it in the Ohmforge workbench to see and edit the schematic.

My circuit doesn't converge. What can I do?

Read the diagnostics. They name the problem, such as a floating node, a loop of voltage sources, or a missing ground. Adding a large resistor to ground on floating nodes often helps.

Which models are built in?

Typical-value models for common parts (for example 2N3904, 1N4007 and coloured LEDs), plus anything you define with .model.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://ohmforgedcoperatingpoint.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://ohmforgedcoperatingpoint.usefulweb.site/mcp · tool name ohmforge_dc_operating_point
Example request
curl -s -X POST https://ohmforgedcoperatingpoint.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"netlist":"* Voltage divider\nV1 in 0 DC 10\nR1 in out 1k\nR2 out 0 3k\n.op\n.end"}'
Feedback · ideas & bug reports welcome