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
| 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. |
current | output | A | Recorded current measurement from the conserving simulation. |
voltage | output | V | Recorded voltage measurement from the conserving simulation. |
resistance | output | ohm | Recorded resistance 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 |
|---|---|---|---|
Electrical resistanceresistanceOhm | ohm | 1 | Configured resistance when no external resistance command is connected. Minimum 1e-06; Maximum 1000000000000 |
Minimum resistanceminimumResistanceOhm | ohm | 1e-06 | Positive 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 →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
currenttarget/current | 1 | 5 | A | 4.9999999999999996e-06 |
voltagetarget/voltage | 1 | 5 | V | 4.9999999999999996e-06 |
resistancetarget/resistance | 1 | 1 | ohm | 1e-06 |
Use in a workflow
Controlled resistor worked example
Live resistance with declared positive floor and a limited-command diagnostic
- 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.
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.
- Kirchhoff's Rules
OpenStax, Rice University
Technical reference · Underlying physical law or reduced-model basis; Lemonergy implementation choices and limits are documented separately.
- 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)