Lemonergy · Studio block
Finite-gain operational amplifier
High impedance inputs, finite open-loop gain and hard output voltage rails; ideal output drive, no slew or supply-current model
- Implementation ID
operational-amplifier- Reviewed
- 2026-10-27
Behavior
Conserving component solved simultaneously with the connected network. High impedance inputs, finite open-loop gain and hard output voltage rails; ideal output drive, no slew or supply-current model
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
p | terminal | V; A | electrical conserving connection; voltage across and current through the connected branch. |
n | terminal | V; A | electrical conserving connection; voltage across and current through the connected branch. |
cp | terminal | V; A | electrical conserving connection; voltage across and current through the connected branch. |
cn | terminal | V; A | electrical conserving connection; voltage across and current through the connected branch. |
current | output | A | Recorded current measurement from the conserving simulation. |
voltage | output | V | Recorded voltage measurement from the conserving simulation. |
branchCurrent | output | A | Recorded branchCurrent measurement from the conserving simulation. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Gaingain | V/V | 100000 | Multiplier from the sensed input to the declared output quantity. Minimum 1; Maximum 1000000000000 |
Lower output railminimumOutputV | V | -15 | Smallest permitted output voltage of the amplifier abstraction. Minimum -1000000; Maximum 1000000 |
Upper output railmaximumOutputV | V | 15 | Largest permitted output voltage of the amplifier abstraction. Minimum -1000000; Maximum 1000000 |
Equations and rules
Vout = clip(gain × (Vcp − Vcn), lower rail, upper rail)Icp = Icn = 0
Worked example
Finite-gain operational amplifier worked example
Editable first-party network. supply: voltageV=1; load: resistanceOhm=4. Checks below were verified in the native execution engine.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
currenttarget/current | 1 | -0.2499975 | A | 2.4999750002499973e-07 |
voltagetarget/voltage | 1 | 0.99999 | V | 9.99990000099999e-07 |
branchCurrenttarget/branchCurrent | 1 | -0.2499975 | A | 2.4999750002499973e-07 |
Use in a workflow
Finite-gain operational amplifier worked example
High impedance inputs, finite open-loop gain and hard output voltage rails; ideal output drive, no slew or supply-current model
- Finite-gain operational amplifier: Conserving component solved simultaneously with the connected network. High impedance inputs, finite open-loop gain and hard output voltage rails; ideal output drive, no slew or supply-current model
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
Scientific and mathematical references
These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.
- Lecture 19: The Operational Amplifier Abstraction
MIT OpenCourseWare, Anant Agarwal
Technical reference · Underlying physical law or reduced-model basis; Lemonergy implementation choices and limits are documented separately.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)