Lemonergy · Studio block
Ideal transformer
Ideal lossless voltage/current transformation; each winding needs a voltage reference
- Implementation ID
ideal-transformer- Reviewed
- 2026-10-27
Behavior
Conserving component solved simultaneously with the connected network. Ideal lossless voltage/current transformation; each winding needs a voltage reference
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.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Turns ratioturnsRatio | primary/secondary turns | 2 | Primary turns divided by secondary turns. Minimum 1e-06; Maximum 1000000 |
Equations and rules
Vp = n VsIs = −n IpVp Ip + Vs Is = 0
Worked example
Ideal transformer 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 | 0.5 | V | 5e-07 |
currentSecondarytarget/currentSecondary | 1 | -0.125 | A | 1.25e-07 |
currenttarget/current | 1 | 0.0625 | A | 6.25e-08 |
Use in a workflow
Ideal transformer worked example
Ideal lossless voltage/current transformation; each winding needs a voltage reference
- Ideal transformer: Conserving component solved simultaneously with the connected network. Ideal lossless voltage/current transformation; each winding needs a voltage reference
- 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.
- Transformers
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)