Lemonergy · Studio block
AC voltage source
Analytic sinusoidal voltage p minus n
- Implementation ID
ac-voltage-source- Reviewed
- 2026-10-27
Behavior
Conserving component solved simultaneously with the connected network. Analytic sinusoidal voltage p minus n
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. |
branchCurrent | output | A | Recorded branchCurrent 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 |
|---|---|---|---|
Peak voltageamplitudeV | V peak | 1 | Peak sinusoidal voltage before the voltage bias is added. Minimum 0; Maximum 1000000 |
FrequencyfrequencyHz | Hz | 1 | Number of sinusoidal cycles per second. Minimum 0; Maximum 1000000 |
Initial phasephaseRad | rad | 0 | Angular phase added to the sinusoid at time zero. Minimum -1000000; Maximum 1000000 |
Voltage biasbiasV | V | 0 | Constant voltage added to the sinusoid. Minimum -1000000; Maximum 1000000 |
Equations and rules
V(t) = Vbias + Vpeak sin(2π f t + phase)
Worked example
AC voltage source worked example
Editable first-party network. 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 |
|---|---|---|---|---|
currenttarget/current | 0.25000000000000006 | -0.25 | A | 2.500000000000001e-07 |
voltagetarget/voltage | 0.25000000000000006 | 1 | V | 9.999999999999997e-07 |
branchCurrenttarget/branchCurrent | 0.25000000000000006 | -0.25 | A | 2.500000000000001e-07 |
Use in a workflow
AC voltage source worked example
Analytic sinusoidal voltage p minus n
- AC voltage source: Conserving component solved simultaneously with the connected network. Analytic sinusoidal voltage p minus n
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Analytic sinusoidal voltage p minus n
- 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)