Modelica.Electrical.MultiPhase.Sources

Multiphase voltage and current sources

Information


This package contains time-dependend and controlled multiphase voltage and current sources:

Extends from Modelica.Icons.Library2 (Icon for library where additional icon elements shall be added).

Package Content

NameDescription
Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage Multiphase signal voltage source
Modelica.Electrical.MultiPhase.Sources.ConstantVoltage ConstantVoltage Multiphase constant voltage source
Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage Multiphase sine voltage source
Modelica.Electrical.MultiPhase.Sources.SignalCurrent SignalCurrent Multiphase sine current source
Modelica.Electrical.MultiPhase.Sources.ConstantCurrent ConstantCurrent Multiphase constant current source
Modelica.Electrical.MultiPhase.Sources.SineCurrent SineCurrent Multiphase sine current source


Modelica.Electrical.MultiPhase.Sources.SignalVoltage Modelica.Electrical.MultiPhase.Sources.SignalVoltage

Multiphase signal voltage source

Modelica.Electrical.MultiPhase.Sources.SignalVoltage

Information


Contains m signal controlled voltage sources (Modelica.Electrical.Analog.Sources.SignalVoltage)

Parameters

TypeNameDefaultDescription
Integerm3number of phases

Connectors

TypeNameDescription
PositivePlugplug_p 
NegativePlugplug_n 
input RealInputv[m]Voltage between pin p and n (= p.v - n.v) as input signal

Modelica definition

model SignalVoltage "Multiphase signal voltage source"
  parameter Integer m(min=1) = 3 "number of phases";
  Modelica.SIunits.Current i[m] "Currents flowing into positive plugs";
  Interfaces.PositivePlug plug_p(final m=m);
  Interfaces.NegativePlug plug_n(final m=m);
  Modelica.Blocks.Interfaces.RealInput v[m] 
    "Voltage between pin p and n (= p.v - n.v) as input signal";
  Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage[m];
equation 
  i = plug_p.pin.i;
  connect(signalVoltage.p, plug_p.pin);
  connect(signalVoltage.n, plug_n.pin);
  connect(v, signalVoltage.v);
end SignalVoltage;

Modelica.Electrical.MultiPhase.Sources.ConstantVoltage Modelica.Electrical.MultiPhase.Sources.ConstantVoltage

Multiphase constant voltage source

Modelica.Electrical.MultiPhase.Sources.ConstantVoltage

Information


Contains m constant voltage sources (Modelica.Electrical.Analog.Sources.ConstantVoltage)

Extends from Interfaces.TwoPlug (Component with one m-phase electric port).

Parameters

TypeNameDefaultDescription
Integerm3number of phases
VoltageV[m] Value of constant voltage [V]

Connectors

TypeNameDescription
PositivePlugplug_p 
NegativePlugplug_n 

Modelica definition

model ConstantVoltage "Multiphase constant voltage source"
  extends Interfaces.TwoPlug;
  parameter Modelica.SIunits.Voltage V[m](start=fill(1, m)) 
    "Value of constant voltage";
  Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage[m](
    final V=V);
equation 
  connect(constantVoltage.p, plug_p.pin);
  connect(constantVoltage.n, plug_n.pin);
end ConstantVoltage;

Modelica.Electrical.MultiPhase.Sources.SineVoltage Modelica.Electrical.MultiPhase.Sources.SineVoltage

Multiphase sine voltage source

Modelica.Electrical.MultiPhase.Sources.SineVoltage

Information


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.

Extends from Interfaces.TwoPlug (Component with one m-phase electric port).

Parameters

TypeNameDefaultDescription
Integerm3number of phases
VoltageV[m] Amplitudes of sine waves [V]
Anglephase[m]-{(j - 1)/m*2*Modelica.Const...Phases of sine waves [rad]
FrequencyfreqHz[m] Frequencies of sine waves [Hz]
Voltageoffset[m]zeros(m)Voltage offsets [V]
TimestartTime[m]zeros(m)Time offsets [s]

Connectors

TypeNameDescription
PositivePlugplug_p 
NegativePlugplug_n 

Modelica definition

model SineVoltage "Multiphase sine voltage source"
  extends Interfaces.TwoPlug;
  parameter Modelica.SIunits.Voltage V[m](start=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](start=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;

Modelica.Electrical.MultiPhase.Sources.SignalCurrent Modelica.Electrical.MultiPhase.Sources.SignalCurrent

Multiphase sine current source

Modelica.Electrical.MultiPhase.Sources.SignalCurrent

Information


Contains m signal controlled current sources (Modelica.Electrical.Analog.Sources.SignalCurrent)

Parameters

TypeNameDefaultDescription
Integerm3number of phases

Connectors

TypeNameDescription
PositivePlugplug_p 
NegativePlugplug_n 
input RealInputi[m]Current flowing from pin p to pin n as input signal

Modelica definition

model SignalCurrent "Multiphase sine current source"
  parameter Integer m(min=1) = 3 "number of phases";
  Modelica.SIunits.Voltage v[m] "Voltage drops between the two plugs";
  Interfaces.PositivePlug plug_p(final m=m);
  Interfaces.NegativePlug plug_n(final m=m);
  Modelica.Blocks.Interfaces.RealInput i[m] 
    "Current flowing from pin p to pin n as input signal";
  Modelica.Electrical.Analog.Sources.SignalCurrent signalCurrent[m];
equation 
  v = plug_p.pin.v - plug_n.pin.v;
  connect(signalCurrent.p, plug_p.pin);
  connect(signalCurrent.n, plug_n.pin);
  connect(i, signalCurrent.i);
end SignalCurrent;

Modelica.Electrical.MultiPhase.Sources.ConstantCurrent Modelica.Electrical.MultiPhase.Sources.ConstantCurrent

Multiphase constant current source

Modelica.Electrical.MultiPhase.Sources.ConstantCurrent

Information


Contains m constant current sources (Modelica.Electrical.Analog.Sources.ConstantCurrent)

Extends from Interfaces.TwoPlug (Component with one m-phase electric port).

Parameters

TypeNameDefaultDescription
Integerm3number of phases
CurrentI[m] Value of constant current [A]

Connectors

TypeNameDescription
PositivePlugplug_p 
NegativePlugplug_n 

Modelica definition

model ConstantCurrent "Multiphase constant current source"
  extends Interfaces.TwoPlug;
  parameter Modelica.SIunits.Current I[m](start=fill(1, m)) 
    "Value of constant current";
  Modelica.Electrical.Analog.Sources.ConstantCurrent constantCurrent[m](
    final I=I);
equation 
  connect(constantCurrent.p, plug_p.pin);
  connect(constantCurrent.n, plug_n.pin);
end ConstantCurrent;

Modelica.Electrical.MultiPhase.Sources.SineCurrent Modelica.Electrical.MultiPhase.Sources.SineCurrent

Multiphase sine current source

Modelica.Electrical.MultiPhase.Sources.SineCurrent

Information


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.

Extends from Interfaces.TwoPlug (Component with one m-phase electric port).

Parameters

TypeNameDefaultDescription
Integerm3number of phases
CurrentI[m] Amplitudes of sine waves [A]
Anglephase[m]-{(j - 1)/m*2*Modelica.Const...Phases of sine waves [rad]
FrequencyfreqHz[m] Frequencies of sine waves [Hz]
Currentoffset[m]zeros(m)Current offsets [A]
TimestartTime[m]zeros(m)Time offsets [s]

Connectors

TypeNameDescription
PositivePlugplug_p 
NegativePlugplug_n 

Modelica definition

model SineCurrent "Multiphase sine current source"
  extends Interfaces.TwoPlug;
  parameter Modelica.SIunits.Current I[m](start=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](start=fill(1, m)) 
    "Frequencies of sine waves";
  parameter Modelica.SIunits.Current offset[m]=zeros(m) "Current 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;

HTML-documentation generated by Dymola Sun Jan 17 21:11:02 2010.