Lemonergy · Studio block
Controlled voltage source
An ideal voltage source with an optional typed command input.
- Implementation ID
voltage-source- Reviewed
- 2026-10-27
Behavior
The source enforces p-minus-n terminal voltage from its command signal, or voltageV when no command is connected. The network determines its current.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
p | conserving | V, A | Electrical terminal: potential and charge-conserving current. |
n | conserving | V, A | Electrical terminal: potential and charge-conserving current. |
command | input | V | Typed signal input; its quantity must match the connected output. |
voltage | output | V | Observed result from the solved component or sampled controller. |
current | output | A | Observed result from the solved component or sampled controller. |
power | output | W | Observed result from the solved component or sampled controller. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Voltage VvoltageV | V | 12 | Configured model parameter; the default is an initial editor value, not an operating recommendation. Minimum -1000000; Maximum 1000000 |
Equations and rules
V_p - V_n = command, or voltageV when unconnected
Worked example
Use in a workflow
Relate current and voltage
Conserving components solve constitutive relations and node balance.
- Controlled voltage source: Supplies voltage
- voltageV
Observe an RC time constant
An RC circuit uses source, resistor, capacitor and reference blocks.
- Controlled voltage source: Applies voltage
- voltageV
Connected concepts
Limits and interpretation
Implementation sources
This reference follows Lemonergy implementation sources. Scientific articles support the linked concepts separately.
Repository: battery-design · Revision: ef9802329b75bc15bb96885f8ed5d49425106696
js/physical-network.jsjs/studio-examples.js
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)