modelVspectrum

Ideal voltage spectrum, 1-phase

Extends from Partials.ACvoltageBase (AC voltage base).

Information

AC voltage spectrum with constant amplitude and phase when 'vType' is 'parameter',
with variable amplitude and phase when 'vType' is 'signal'.

The voltage-spectrum is given by the expression

  v_spec = sqrt(2)*veff*sum_n(cos(h[n]*(theta + alpha_tot[n])))
with
  alpha_tot[n] = alpha + system.alpha0 + alpha0[n]
where
  alpha = vPhasor_in[2] (common phase) for signal input, else 0

Optional input:

  omega_in            angular frequency (if fType == "Signal")
  vPhasor_in          {modulation(v), common phase(v)}
   vPhasor_in[1] = 1  delivers the values for constant amplitudes v0
   vPhasor_in[1]      in SI or pu, depending on choice of 'units'
   vPhasor_in[2]      in rad

Parameters

TypeNameDefaultDescription
Integerpol (from VoltageBase)-1grounding scheme
Booleanuse_vPhasor_in (from ACvoltageBase)false= true to use input signal vPhasor_in, otherwise use fixed values
Integerh{1, 3, 5}[1,.. ], which harmonics?
SIpu.Voltagev0eff{1, 0.3, 0.1}effective voltages
SI.Anglealpha0zeros(N)phase angles
Parameter Scaling
BooleanpuUnits (from Nominal)true= true, if scaled with nom. values (pu), else scaled with 1 (SI)
Nominal
SI.VoltageV_nom (from Nominal)1nominal Voltage (= base for pu)
SI.ApparentPowerS_nom (from Nominal)1nominal Power (= base for pu)
Frequency
Types.SourceFrequencyfType (from ACvoltageBase)PowerSystems.Types.SourceFrequency.Systemfrequency type
SI.Frequencyf (from ACvoltageBase)system.ffrequency if type is parameter

Connectors

TypeNameDefaultDescription
Ports.TwoPin_nterm (from Port_n)negative terminal
Interfaces.Electric_pneutral (from VoltageBase)(use for grounding)
Modelica.Blocks.Interfaces.RealInputvPhasor_in (from ACvoltageBase){abs(voltage), phase(voltage)}
Modelica.Blocks.Interfaces.RealInputomega_in (from ACvoltageBase)Angular frequency of source