Lemonergy · Studio block
Open branch with initial voltage target
Zero current at all times; initializes a directly attached capacitor when its initial voltage is unspecified, otherwise verifies the consistent initial solution
- Implementation ID
initial-voltage-constraint- Reviewed
- 2026-10-27
Behavior
Conserving component solved simultaneously with the connected network. Zero current at all times; initializes a directly attached capacitor when its initial voltage is unspecified, otherwise verifies the consistent initial solution
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. |
power | output | W | Recorded power 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 |
|---|---|---|---|
Initial voltageinitialVoltageV | V | 0 | Requested initial electrical voltage for the declared storage or target. Minimum -1000000; Maximum 1000000 |
Equations and rules
I = 0V(0) = requested initial voltage, subject to consistent storage initialization
Worked example
Open branch with initial voltage target worked example
Editable first-party network. capacitor: capacitanceF=1; load: resistanceOhm=1; target: initialVoltageV=4. 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 | 0 | A | 1e-10 |
voltagetarget/voltage | 1 | 1.47518891 | V | 1.4751889140492002e-06 |
powertarget/power | 1 | 0 | W | 1e-10 |
Use in a workflow
Open branch with initial voltage target worked example
Zero current at all times; initializes a directly attached capacitor when its initial voltage is unspecified, otherwise verifies the consistent initial solution
- Open branch with initial voltage target: Conserving component solved simultaneously with the connected network. Zero current at all times; initializes a directly attached capacitor when its initial voltage is unspecified, otherwise verifies the consistent initial solution
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Zero current at all times; initializes a directly attached capacitor when its initial voltage is unspecified, otherwise verifies the consistent initial solution
- 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.
- Energy Stored in a Capacitor
OpenStax, Rice University
Technical reference · Underlying physical law or reduced-model basis; Lemonergy implementation choices and limits are documented separately.
- Kirchhoff's Rules
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)