Lemonergy · Studio block
Electrical gyrator
Lossless voltage/current duality with opposing power at the two ports
- Implementation ID
electrical-gyrator- Reviewed
- 2026-10-27
Behavior
Conserving component solved simultaneously with the connected network. Lossless voltage/current duality with opposing power at the two ports
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. |
s | terminal | V; A | electrical conserving connection; voltage across and current through the connected branch. |
t | terminal | V; A | electrical conserving connection; voltage across and current through the connected branch. |
voltageSecondary | output | V | Recorded voltage on the secondary port measurement from the conserving simulation. |
currentSecondary | output | A | Recorded current on the secondary port measurement from the conserving simulation. |
current | output | A | Recorded current measurement from the conserving simulation. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
Equations and rules
Ip = Vs/RgIs = −Vp/RgVp Ip + Vs Is = 0
Worked example
Electrical gyrator 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 |
|---|---|---|---|---|
voltageSecondarytarget/voltageSecondary | 1 | 4 | V | 4e-06 |
currentSecondarytarget/currentSecondary | 1 | -1 | A | 1e-06 |
currenttarget/current | 1 | 4 | A | 4e-06 |
Use in a workflow
Electrical gyrator worked example
Lossless voltage/current duality with opposing power at the two ports
- Electrical gyrator: Conserving component solved simultaneously with the connected network. Lossless voltage/current duality with opposing power at the two ports
- 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.
- 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)