Modelica.Electrical.Analog.Sources

Time-dependent and controlled voltage and current sources

Information


This package contains time-dependent and controlled voltage and current sources. Most of the sources use the behavior modeled in the Modelica.Blocks.Sources package. All sources are ideal in the sense that no internal resistances are included.

Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).

Package Content

NameDescription
Modelica.Electrical.Analog.Sources.SignalVoltage SignalVoltage Generic voltage source using the input signal as source voltage
Modelica.Electrical.Analog.Sources.ConstantVoltage ConstantVoltage Source for constant voltage
Modelica.Electrical.Analog.Sources.StepVoltage StepVoltage Step voltage source
Modelica.Electrical.Analog.Sources.RampVoltage RampVoltage Ramp voltage source
Modelica.Electrical.Analog.Sources.SineVoltage SineVoltage Sine voltage source
Modelica.Electrical.Analog.Sources.CosineVoltage CosineVoltage Cosine voltage source
Modelica.Electrical.Analog.Sources.ExpSineVoltage ExpSineVoltage Exponentially damped sine voltage source
Modelica.Electrical.Analog.Sources.ExponentialsVoltage ExponentialsVoltage Rising and falling exponential voltage source
Modelica.Electrical.Analog.Sources.PulseVoltage PulseVoltage Pulse voltage source
Modelica.Electrical.Analog.Sources.SawToothVoltage SawToothVoltage Saw tooth voltage source
Modelica.Electrical.Analog.Sources.TrapezoidVoltage TrapezoidVoltage Trapezoidal voltage source
Modelica.Electrical.Analog.Sources.TableVoltage TableVoltage Voltage source by linear interpolation in a table
Modelica.Electrical.Analog.Sources.SignalCurrent SignalCurrent Generic current source using the input signal as source current
Modelica.Electrical.Analog.Sources.ConstantCurrent ConstantCurrent Source for constant current
Modelica.Electrical.Analog.Sources.StepCurrent StepCurrent Step current source
Modelica.Electrical.Analog.Sources.RampCurrent RampCurrent Ramp current source
Modelica.Electrical.Analog.Sources.SineCurrent SineCurrent Sine current source
Modelica.Electrical.Analog.Sources.CosineCurrent CosineCurrent Cosine current source
Modelica.Electrical.Analog.Sources.ExpSineCurrent ExpSineCurrent Exponentially damped sine current source
Modelica.Electrical.Analog.Sources.ExponentialsCurrent ExponentialsCurrent Rising and falling exponential current source
Modelica.Electrical.Analog.Sources.PulseCurrent PulseCurrent Pulse current source
Modelica.Electrical.Analog.Sources.SawToothCurrent SawToothCurrent Saw tooth current source
Modelica.Electrical.Analog.Sources.TrapezoidCurrent TrapezoidCurrent Trapezoidal current source
Modelica.Electrical.Analog.Sources.TableCurrent TableCurrent Current source by linear interpolation in a table

Modelica.Electrical.Analog.Sources.SignalVoltage Modelica.Electrical.Analog.Sources.SignalVoltage

Generic voltage source using the input signal as source voltage

Information


The signal voltage source is a parameterless converter of real valued signals into a the source voltage. No further effects are modeled. The real valued signal has to be provided by components of the blocks library. It can be regarded as the "Opposite" of a voltage sensor.

Connectors

NameDescription
p 
n 
vVoltage between pin p and n (= p.v - n.v) as input signal [V]

Modelica.Electrical.Analog.Sources.ConstantVoltage Modelica.Electrical.Analog.Sources.ConstantVoltage

Source for constant voltage

Information


The ConstantVoltage source is a simple source for an ideal constant voltage which is provided by a parameter. There is no internal resistance modeled. If it is used instead of a battery model it is not very realistic: This battery will never be unloaded.

Extends from Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n).

Parameters

NameDescription
VValue of constant voltage [V]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.StepVoltage Modelica.Electrical.Analog.Sources.StepVoltage

Step voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VHeight of step [V]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.RampVoltage Modelica.Electrical.Analog.Sources.RampVoltage

Ramp voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VHeight of ramp [V]
durationDuration of ramp [s]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.SineVoltage Modelica.Electrical.Analog.Sources.SineVoltage

Sine voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VAmplitude of sine wave [V]
phasePhase of sine wave [rad]
freqHzFrequency of sine wave [Hz]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.CosineVoltage Modelica.Electrical.Analog.Sources.CosineVoltage

Cosine voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VAmplitude of cosine wave [V]
phasePhase of cosine wave [rad]
freqHzFrequency of cosine wave [Hz]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.ExpSineVoltage Modelica.Electrical.Analog.Sources.ExpSineVoltage

Exponentially damped sine voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VAmplitude of sine wave [V]
freqHzFrequency of sine wave [Hz]
phasePhase of sine wave [rad]
dampingDamping coefficient of sine wave [s-1]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.ExponentialsVoltage Modelica.Electrical.Analog.Sources.ExponentialsVoltage

Rising and falling exponential voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
vMaxUpper bound for rising edge
riseTimeRise time [s]
riseTimeConstRise time constant [s]
fallTimeConstFall time constant [s]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.PulseVoltage Modelica.Electrical.Analog.Sources.PulseVoltage

Pulse voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VAmplitude of pulse [V]
widthWidth of pulse in % of period
periodTime for one period [s]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.SawToothVoltage Modelica.Electrical.Analog.Sources.SawToothVoltage

Saw tooth voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VAmplitude of saw tooth [V]
periodTime for one period [s]
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.TrapezoidVoltage Modelica.Electrical.Analog.Sources.TrapezoidVoltage

Trapezoidal voltage source

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
VAmplitude of trapezoid [V]
risingRising duration of trapezoid [s]
widthWidth duration of trapezoid [s]
fallingFalling duration of trapezoid [s]
periodTime for one period [s]
nperiodNumber of periods (< 0 means infinite number of periods)
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.TableVoltage Modelica.Electrical.Analog.Sources.TableVoltage

Voltage source by linear interpolation in a table

Information


This voltage source uses the corresponding signal source of the Modelica.Blocks.Sources package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.


This block generates a voltage source by linear interpolation in a table. The time points and voltage values are stored in a matrix table[i,j], where the first column table[:,1] contains the time points and the second column contains the voltage to be interpolated. The table interpolation has the following properties:

Example:

   table = [0  0
            1  0
            1  1
            2  4
            3  9
            4 16]
If, e.g., time = 1.0, the voltage v =  0.0 (before event), 1.0 (after event)
    e.g., time = 1.5, the voltage v =  2.5,
    e.g., time = 2.0, the voltage v =  4.0,
    e.g., time = 5.0, the voltage v = 23.0 (i.e., extrapolation). 


Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.VoltageSource (Interface for voltage sources).

Parameters

NameDescription
table[:, :]Table matrix (time = first column, voltage = second column)
offsetVoltage offset [V]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.SignalCurrent Modelica.Electrical.Analog.Sources.SignalCurrent

Generic current source using the input signal as source current

Information


The signal current source is a parameterless converter of real valued signals into a the source current. No further effects are modeled. The real valued signal has to be provided by components of the blocks library. It can be regarded as the "Opposite" of a current sensor.

Connectors

NameDescription
p 
n 
iCurrent flowing from pin p to pin n as input signal [A]

Modelica.Electrical.Analog.Sources.ConstantCurrent Modelica.Electrical.Analog.Sources.ConstantCurrent

Source for constant current

Information


The ConstantCurrent source is a simple source for an ideal constant current which is provided by a parameter. There is no internal resistance modeled. No further effects are modeled. Especially, the current flow will never end.

Extends from Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n).

Parameters

NameDescription
IValue of constant current [A]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.StepCurrent Modelica.Electrical.Analog.Sources.StepCurrent

Step current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IHeight of step [A]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.RampCurrent Modelica.Electrical.Analog.Sources.RampCurrent

Ramp current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IHeight of ramp [A]
durationDuration of ramp [s]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.SineCurrent Modelica.Electrical.Analog.Sources.SineCurrent

Sine current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IAmplitude of sine wave [A]
phasePhase of sine wave [rad]
freqHzFrequency of sine wave [Hz]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.CosineCurrent Modelica.Electrical.Analog.Sources.CosineCurrent

Cosine current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IAmplitude of cosine wave [A]
phasePhase of cosine wave [rad]
freqHzFrequency of cosine wave [Hz]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.ExpSineCurrent Modelica.Electrical.Analog.Sources.ExpSineCurrent

Exponentially damped sine current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IAmplitude of sine wave
freqHzFrequency of sine wave [Hz]
phasePhase of sine wave [rad]
dampingDamping coefficient of sine wave [s-1]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.ExponentialsCurrent Modelica.Electrical.Analog.Sources.ExponentialsCurrent

Rising and falling exponential current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
iMaxUpper bound for rising edge
riseTimeRise time [s]
riseTimeConstRise time constant [s]
fallTimeConstFall time constant [s]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.PulseCurrent Modelica.Electrical.Analog.Sources.PulseCurrent

Pulse current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IAmplitude of pulse [A]
widthWidth of pulse in % of period
periodTime for one period [s]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.SawToothCurrent Modelica.Electrical.Analog.Sources.SawToothCurrent

Saw tooth current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IAmplitude of saw tooth [A]
periodTime for one period [s]
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.TrapezoidCurrent Modelica.Electrical.Analog.Sources.TrapezoidCurrent

Trapezoidal current source

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
IAmplitude of trapezoid [A]
risingRising duration of trapezoid [s]
widthWidth duration of trapezoid [s]
fallingFalling duration of trapezoid [s]
periodTime for one period [s]
nperiodNumber of periods (< 0 means infinite number of periods)
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Modelica.Electrical.Analog.Sources.TableCurrent Modelica.Electrical.Analog.Sources.TableCurrent

Current source by linear interpolation in a table

Information


This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.


This block generates a current source by linear interpolation in a table. The time points and current values are stored in a matrix table[i,j], where the first column table[:,1] contains the time points and the second column contains the current to be interpolated. The table interpolation has the following properties:

Example:

   table = [0  0
            1  0
            1  1
            2  4
            3  9
            4 16]
If, e.g., time = 1.0, the current i =  0.0 (before event), 1.0 (after event)
    e.g., time = 1.5, the current i =  2.5,
    e.g., time = 2.0, the current i =  4.0,
    e.g., time = 5.0, the current i = 23.0 (i.e., extrapolation). 


Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

Extends from Interfaces.CurrentSource (Interface for current sources).

Parameters

NameDescription
table[:, :]Table matrix (time = first column, current = second column)
offsetCurrent offset [A]
startTimeTime offset [s]

Connectors

NameDescription
pPositive pin (potential p.v > n.v for positive voltage drop v)
nNegative pin

Automatically generated Mon Sep 23 17:20:27 2013.