Lemonergy · Studio block

Controlled resistor

Live resistance with declared positive floor and a limited-command diagnostic

Implementation ID
variable-resistor
Reviewed
2026-10-27

Behavior

Conserving component solved simultaneously with the connected network. Live resistance with declared positive floor and a limited-command diagnostic

Interface

Controlled resistor interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Controlled resistorStudio blockcurrentvoltageresistancepn
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
pterminalV; Aelectrical conserving connection; voltage across and current through the connected branch.
nterminalV; Aelectrical conserving connection; voltage across and current through the connected branch.
currentoutputARecorded current measurement from the conserving simulation.
voltageoutputVRecorded voltage measurement from the conserving simulation.
resistanceoutputohmRecorded resistance measurement from the conserving simulation.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
Electrical resistance
resistanceOhm
ohm1Configured resistance when no external resistance command is connected.
Minimum 1e-06; Maximum 1000000000000
Minimum resistance
minimumResistanceOhm
ohm1e-06Positive floor applied to the calculated or commanded electrical resistance.
Minimum 1e-09; Maximum 1000000000

Equations and rules

  • R = max(Rcommand, Rmin)
  • I = V/R

Worked example

Controlled resistor worked example

Editable first-party network. supply: voltageV=5. Checks below were verified in the native execution engine.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
current
target/current
15A4.9999999999999996e-06
voltage
target/voltage
15V4.9999999999999996e-06
resistance
target/resistance
11ohm1e-06

Use in a workflow

Controlled resistor worked example

Live resistance with declared positive floor and a limited-command diagnostic

  1. Controlled resistor: Conserving component solved simultaneously with the connected network. Live resistance with declared positive floor and a limited-command diagnostic
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Live resistance with declared positive floor and a limited-command diagnostic
  • Demonstration parameters are not calibrated hardware data. Singular or incompatible ideal constraints and unsupported state ranges stop the run.

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.

  1. Kirchhoff's Rules

    OpenStax, Rice University

    Technical reference · Underlying physical law or reduced-model basis; Lemonergy implementation choices and limits are documented separately.

  2. Electrical Energy and Power

    OpenStax, Rice University

    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)