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

Name Description
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.SineVoltageVariableFrequencyAndAmplitude SineVoltageVariableFrequencyAndAmplitude Sine voltage source with variable frequency and amplitude
Modelica.Electrical.Analog.Sources.CosineVoltageVariableFrequencyAndAmplitude CosineVoltageVariableFrequencyAndAmplitude Cosine voltage source with variable frequency and amplitude
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.SineCurrentVariableFrequencyAndAmplitude SineCurrentVariableFrequencyAndAmplitude Sine current source with variable frequency and amplitude
Modelica.Electrical.Analog.Sources.CosineCurrentVariableFrequencyAndAmplitude CosineCurrentVariableFrequencyAndAmplitude Cosine current source with variable frequency and amplitude
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.SupplyVoltage SupplyVoltage Supply voltage (positive and negative)

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.

Extends from Modelica.Electrical.Analog.Icons.VoltageSource (Icon for voltage sources).

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), Modelica.Electrical.Analog.Icons.VoltageSource (Icon for voltage sources).

Parameters

NameDescription
VValue of constant voltage [V]

Connectors

NameDescription
pPositive electrical pin
nNegative electrical 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.

StepVoltage.png

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

Parameters

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

Connectors

NameDescription
pPositive electrical pin
nNegative electrical 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.

RampVoltage.png

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 electrical pin
nNegative electrical 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.

SineVoltage.png

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

Parameters

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

Connectors

NameDescription
pPositive electrical pin
nNegative electrical 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.

CosineVoltage.png

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

Parameters

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

Connectors

NameDescription
pPositive electrical pin
nNegative electrical pin

Modelica.Electrical.Analog.Sources.SineVoltageVariableFrequencyAndAmplitude Modelica.Electrical.Analog.Sources.SineVoltageVariableFrequencyAndAmplitude

Sine voltage source with variable frequency and amplitude

Information

This voltage source provides a sinusoidal voltage with variable frequency f and variable amplitude V, i.e. the phase angle of the sine wave is integrated from 2*π*f.

Note that the initial value of the phase angle phi defines the initial phase shift, and that the parameter startTime is omitted since the voltage can be kept equal to offset with setting the input V to zero.

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Icons.VoltageSource (Icon for voltage sources).

Parameters

NameDescription
useConstantAmplitudeEnable constant amplitude
constantAmplitudeConstant amplitude [V]
useConstantFrequencyEnable constant frequency
constantFrequencyConstant frequency [Hz]
offsetOffset of the sine wave [V]

Connectors

NameDescription
pPositive electrical pin
nNegative electrical pin
VAmplitude [V]
fFrequency [Hz]

Modelica.Electrical.Analog.Sources.CosineVoltageVariableFrequencyAndAmplitude Modelica.Electrical.Analog.Sources.CosineVoltageVariableFrequencyAndAmplitude

Cosine voltage source with variable frequency and amplitude

Information

This voltage source provides a cosine voltage with variable frequency f and variable amplitude V, i.e. the phase angle of the sine wave is integrated from 2*π*f.

Note that the initial value of the phase angle phi defines the initial phase shift, and that the parameter startTime is omitted since the voltage can be kept equal to offset with setting the input V to zero.

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Icons.VoltageSource (Icon for voltage sources).

Parameters

NameDescription
useConstantAmplitudeEnable constant amplitude
constantAmplitudeConstant amplitude [V]
useConstantFrequencyEnable constant frequency
constantFrequencyConstant frequency [Hz]
offsetOffset of the sine wave [V]

Connectors

NameDescription
pPositive electrical pin
nNegative electrical pin
VAmplitude [V]
fFrequency [Hz]

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.

ExpSineVoltage.png

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

Parameters

NameDescription
VAmplitude of sine wave [V]
fFrequency 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 electrical pin
nNegative electrical 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.

ExponentialsVoltage.png

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 electrical pin
nNegative electrical 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.

PulseVoltage.png

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 electrical pin
nNegative electrical 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.

SawToothVoltage.png

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 electrical pin
nNegative electrical 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.

TrapezoidVoltage.png

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 electrical pin
nNegative electrical 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.

TableVoltage.png

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 electrical pin
nNegative electrical 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.

Extends from Modelica.Electrical.Analog.Icons.CurrentSource (Icon for current sources).

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), Modelica.Electrical.Analog.Icons.CurrentSource (Icon for current sources).

Parameters

NameDescription
IValue of constant current [A]

Connectors

NameDescription
pPositive electrical pin
nNegative electrical 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.

StepCurrent.png

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

Parameters

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

Connectors

NameDescription
pPositive electrical pin
nNegative electrical 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.

RampCurrent.png

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 electrical pin
nNegative electrical 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.

SineCurrent.png

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

Parameters

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

Connectors

NameDescription
pPositive electrical pin
nNegative electrical 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.

CosineCurrent.png

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

Parameters

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

Connectors

NameDescription
pPositive electrical pin
nNegative electrical pin

Modelica.Electrical.Analog.Sources.SineCurrentVariableFrequencyAndAmplitude Modelica.Electrical.Analog.Sources.SineCurrentVariableFrequencyAndAmplitude

Sine current source with variable frequency and amplitude

Information

This current source provides a sinusoidal current with variable frequency f and variable amplitude I, i.e. the phase angle of the sine wave is integrated from 2*π*f.

Note that the initial value of the phase angle phi defines the initial phase shift, and that the parameter startTime is omitted since the current can be kept equal to offset with setting the input I to zero.

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Icons.CurrentSource (Icon for current sources).

Parameters

NameDescription
useConstantAmplitudeEnable constant amplitude
constantAmplitudeConstant amplitude [A]
useConstantFrequencyEnable constant frequency
constantFrequencyConstant frequency [Hz]
offsetOffset of the sine wave [A]

Connectors

NameDescription
pPositive electrical pin
nNegative electrical pin
IAmplitude [A]
fFrequency [Hz]

Modelica.Electrical.Analog.Sources.CosineCurrentVariableFrequencyAndAmplitude Modelica.Electrical.Analog.Sources.CosineCurrentVariableFrequencyAndAmplitude

Cosine current source with variable frequency and amplitude

Information

This current source provides a cosine current with variable frequency f and variable amplitude I, i.e. the phase angle of the sine wave is integrated from 2*π*f.

Note that the initial value of the phase angle phi defines the initial phase shift, and that the parameter startTime is omitted since the current can be kept equal to offset with setting the input I to zero.

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Icons.CurrentSource (Icon for current sources).

Parameters

NameDescription
useConstantAmplitudeEnable constant amplitude
constantAmplitudeConstant amplitude [A]
useConstantFrequencyEnable constant frequency
constantFrequencyConstant frequency [Hz]
offsetOffset of the sine wave [A]

Connectors

NameDescription
pPositive electrical pin
nNegative electrical pin
IAmplitude [A]
fFrequency [Hz]

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.

ExpSineCurrent.png

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

Parameters

NameDescription
IAmplitude of sine wave
fFrequency 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 electrical pin
nNegative electrical 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.

ExponentialsCurrent.png

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 electrical pin
nNegative electrical 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 electrical pin
nNegative electrical 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.

SawToothCurrent.png

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 electrical pin
nNegative electrical 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.

TrapezoidCurrent.png

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 electrical pin
nNegative electrical 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.

TableCurrent.png

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 electrical pin
nNegative electrical pin

Modelica.Electrical.Analog.Sources.SupplyVoltage Modelica.Electrical.Analog.Sources.SupplyVoltage

Supply voltage (positive and negative)

Information

This is a simple model of a constant supply voltage with positive and negative supply, the potential between positive and negative supply is accessible.

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]

Connectors

NameDescription
pin_p 
pin_n 
ground 
Automatically generated Thu Oct 1 16:07:39 2020.