This package contains time-dependend and controlled multiphase voltage and current sources:
Name | Description |
---|---|
SignalVoltage | Multiphase signal voltage source |
SineVoltage | Multiphase sine voltage source |
SignalCurrent | Multiphase sine current source |
SineCurrent | Multiphase sine current source |
Contains m sine voltage sources (Modelica.Electrical.Analog.Sources.SineVoltage) with a default phase shift of -(j-1)/m * 2*pi for j in 1:m.
Name | Default | Description |
---|---|---|
m | 3 | number of phases |
V[m] | fill(1, m) | Amplitudes of sine waves [V] |
phase[m] | -{(j - 1)/m*2*Modelica.Const... | Phases of sine waves [rad] |
freqHz[m] | fill(1, m) | Frequencies of sine waves [Hz] |
offset[m] | zeros(m) | Voltage offsets [V] |
startTime[m] | zeros(m) | Time offsets [s] |
model SineVoltage "Multiphase sine voltage source" extends Interfaces.TwoPlug; parameter Modelica.SIunits.Voltage V[ m]=fill(1, m) "Amplitudes of sine waves"; parameter Modelica.SIunits.Angle phase[ m]=-{(j - 1)/m*2*Modelica. Constants.pi for j in 1:m} "Phases of sine waves"; parameter Modelica.SIunits.Frequency freqHz[ m]=fill(1, m) "Frequencies of sine waves"; parameter Modelica.SIunits.Voltage offset[ m]=zeros(m) "Voltage offsets"; parameter Modelica.SIunits.Time startTime[ m]=zeros(m) "Time offsets"; Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage[ m]( final V=V, final phase=phase, final freqHz=freqHz, final offset=offset, final startTime=startTime); equation connect(sineVoltage.p, plug_p.pin); connect(sineVoltage.n, plug_n.pin); end SineVoltage;
Contains m signal controlled voltage sources (Modelica.Electrical.Analog.Sources.SignalVoltage)
Name | Default | Description |
---|---|---|
m | 3 | number of phases |
model SignalVoltage "Multiphase signal voltage source" extends Interfaces.TwoPlug; Modelica.Blocks.Interfaces.InPort inPort( final n=m); Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage[ m]; equation signalVoltage.inPort.signal[1] = inPort.signal; connect(signalVoltage.p, plug_p.pin); connect(signalVoltage.n, plug_n.pin); end SignalVoltage;
Contains m signal controlled current sources (Modelica.Electrical.Analog.Sources.SignalCurrent)
Name | Default | Description |
---|---|---|
m | 3 | number of phases |
model SignalCurrent "Multiphase sine current source" extends Interfaces.TwoPlug; Modelica.Blocks.Interfaces.InPort inPort( final n=m); Modelica.Electrical.Analog.Sources.SignalCurrent signalCurrent[ m]; equation signalCurrent.inPort.signal[1] = inPort.signal; connect(signalCurrent.p, plug_p.pin); connect(signalCurrent.n, plug_n.pin); end SignalCurrent;
Contains m sine current sources (Modelica.Electrical.Analog.Sources.SineCurrent) with a default phase shift of -(j-1)/m * 2*pi for j in 1:m.
Name | Default | Description |
---|---|---|
m | 3 | number of phases |
I[m] | fill(1, m) | Amplitudes of sine waves [A] |
phase[m] | -{(j - 1)/m*2*Modelica.Const... | Phases of sine waves [rad] |
freqHz[m] | fill(1, m) | Frequencies of sine waves [Hz] |
offset[m] | zeros(m) | Voltage offsets [V] |
startTime[m] | zeros(m) | Time offsets [s] |
model SineCurrent "Multiphase sine current source" extends Interfaces.TwoPlug; parameter Modelica.SIunits.Current I[ m]=fill(1, m) "Amplitudes of sine waves"; parameter Modelica.SIunits.Angle phase[ m]=-{(j - 1)/m*2*Modelica. Constants.pi for j in 1:m} "Phases of sine waves"; parameter Modelica.SIunits.Frequency freqHz[ m]=fill(1, m) "Frequencies of sine waves"; parameter Modelica.SIunits.Voltage offset[ m]=zeros(m) "Voltage offsets"; parameter Modelica.SIunits.Time startTime[ m]=zeros(m) "Time offsets"; Modelica.Electrical.Analog.Sources.SineCurrent sineCurrent[ m]( final I=I, final phase=phase, final freqHz=freqHz, final offset=offset, final startTime=startTime); equation connect(sineCurrent.p, plug_p.pin); connect(sineCurrent.n, plug_n.pin); end SineCurrent;