AC voltage
Sinusoidal voltage: offset + V·sin(2πf·t + phase).
- electrical
- Modelica Standard Library
- 2 ports
- 4 parameters
sineVoltageLibraryElectricalDescription
An ideal sinusoidal voltage source with amplitude, frequency, phase, and DC offset. Use it for AC mains and test signals.
Example
Electrical sources Every voltage and current source driving a resistor, each with a voltmeter across it.
DC 12 VLoad A 12 Ωv AGround ADC 1 ALoad B 10 Ωv BGround BSine 10 VLoad C 10 Ωv CGround CSine 1 ALoad D 10 Ωv DGround DRamp 10 VLoad E 10 Ωv EGround EPulse 5 VLoad F 10 Ωv FGround F3 sin(2π·50t)Signal voltageLoad G 10 Ωv GGround G0.5Signal currentLoad H 10 Ωv HGround H
Also in this example:DC voltageVoltage sensorConstantGroundSine waveResistorAC currentDC currentRamp voltagePulse voltageControlled voltageControlled current
Ports
Conserving terminals 2
-
+
pPositive terminal.
-
−
nNegative terminal.
Parameters
-
Amplitude
V325 VPeak amplitude, in volts. The default 325 V is the peak of 230 V RMS.
-
Frequency
f50 Hz≥ 0
Frequency, in Hz. 0 or more.
-
Phase
phase0 radPhase at time 0, in radians.
-
Offset
offset0 VDC offset, in volts.
Equations
Modelica
p.v − n.v = offset + V · sin(2π · f · time + phase) p.i + n.i = 0
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Electrical.Analog.Sources.SineVoltageAssumptions and limitations
- No internal impedance. The wave starts at time 0; there is no start time.
Tips
- V is the peak value: for a given RMS voltage, set V = √2 · V_rms.
See also
Select a block in Gradara and press F1 to open its page offline.