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[2] (common phase) for signal input, else 0

Optional input:

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

Parameters

TypeNameDefaultDescription
Base.Types.FreqTypefType (from ACvoltageBase)Base.Types.sysf: system, parameter, signal
SI.Frequencyf (from ACvoltageBase)system.ffrequency
Integerpol (from VoltageBase)-1grounding scheme
Base.Types.SourceTypescType (from VoltageBase)Base.Types.parv: parameter or signal
Integerh{1, 3, 5}[1,.. ], which harmonics?
SIpu.Voltageveff{1, 0.3, 0.1}eff voltages
SI.Anglealpha0zeros(N)phase angles
Nominal
Base.Types.Unitsunits (from Nominal)Types.puSI | pu
SI.VoltageV_nom (from Nominal)1nom Voltage (= base if pu)
SI.ApparentPowerS_nom (from Nominal)1nom Power (= base if pu)

Connectors

TypeNameDefaultDescription
Base.Interfaces.ElectricV_nterm (from Port_n)negative terminal
Base.Interfaces.Electric_pneutral (from VoltageBase)(use for grounding)
Modelica.Blocks.Interfaces.RealInputvPhasor (from ACvoltageBase){abs(voltage), phase(voltage)}
Modelica.Blocks.Interfaces.RealInputomega (from ACvoltageBase)ang frequency