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).
Name | Description |
---|---|
ConstantCurrent | Source for constant current |
ConstantVoltage | Source for constant voltage |
CosineCurrent | Cosine current source |
CosineVoltage | Cosine voltage source |
ExponentialsCurrent | Rising and falling exponential current source |
ExponentialsVoltage | Rising and falling exponential voltage source |
ExpSineCurrent | Exponentially damped sine current source |
ExpSineVoltage | Exponentially damped sine voltage source |
PulseCurrent | Pulse current source |
PulseVoltage | Pulse voltage source |
RampCurrent | Ramp current source |
RampVoltage | Ramp voltage source |
SawToothCurrent | Saw tooth current source |
SawToothVoltage | Saw tooth voltage source |
SignalCurrent | Generic current source using the input signal as source current |
SignalVoltage | Generic voltage source using the input signal as source voltage |
SineCurrent | Sine current source |
SineVoltage | Sine voltage source |
StepCurrent | Step current source |
StepVoltage | Step voltage source |
SupplyVoltage | Supply voltage (positive and negative) |
TableCurrent | Current source by linear interpolation in a table |
TableVoltage | Voltage source by linear interpolation in a table |
TrapezoidCurrent | Trapezoidal current source |
TrapezoidVoltage | Trapezoidal voltage source |
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.
Type | Name | Description |
---|---|---|
PositivePin | p |   |
NegativePin | n |   |
input RealInput | v | Voltage between pin p and n (= p.v - n.v) as input signal |
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 Modelica.Electrical.Analog.Interfaces.OnePort
(Component with two electrical pins p and n and current i from p to n).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Value of constant voltage |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Height of step | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Height of ramp | |
Time | duration | Duration of ramp | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Amplitude of sine wave | |
Angle | phase | 0 | Phase of sine wave |
Frequency | freqHz | Frequency of sine wave | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Amplitude of cosine wave | |
Angle | phase | 0 | Phase of cosine wave |
Frequency | freqHz | Frequency of cosine wave | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Amplitude of sine wave | |
Frequency | freqHz | Frequency of sine wave | |
Angle | phase | 0 | Phase of sine wave |
Damping | damping | Damping coefficient of sine wave | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Real | vMax | Upper bound for rising edge | |
Time | riseTime | Rise time | |
Time | riseTimeConst | Rise time constant | |
Time | fallTimeConst | Fall time constant | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Amplitude of pulse | |
Real | width | Width of pulse in % of period | |
Time | period | Time for one period | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Amplitude of saw tooth | |
Time | period | Time for one period | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Voltage | V | Amplitude of trapezoid | |
Time | rising | Rising duration of trapezoid | |
Time | width | Width duration of trapezoid | |
Time | falling | Falling duration of trapezoid | |
Time | period | Time for one period | |
Integer | nperiod | Number of periods (< 0 means infinite number of periods) | |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.VoltageSource
(Interface for voltage sources).
Type | Name | Default | Description |
---|---|---|---|
Real | table[:,:] | [0,0; 1,1; 2,4] | Table matrix (time = first column, voltage = second column) |
Voltage | offset | 0 | Voltage offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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.
Type | Name | Description |
---|---|---|
PositivePin | p |   |
NegativePin | n |   |
input RealInput | i | Current flowing from pin p to pin n as input signal |
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 Modelica.Electrical.Analog.Interfaces.OnePort
(Component with two electrical pins p and n and current i from p to n).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Value of constant current |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Height of step | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Height of ramp | |
Time | duration | Duration of ramp | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Amplitude of sine wave | |
Angle | phase | 0 | Phase of sine wave |
Frequency | freqHz | Frequency of sine wave | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Amplitude of cosine wave | |
Angle | phase | 0 | Phase of cosine wave |
Frequency | freqHz | Frequency of cosine wave | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Real | I | Amplitude of sine wave | |
Frequency | freqHz | Frequency of sine wave | |
Angle | phase | 0 | Phase of sine wave |
Damping | damping | Damping coefficient of sine wave | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Real | iMax | Upper bound for rising edge | |
Time | riseTime | Rise time | |
Time | riseTimeConst | Rise time constant | |
Time | fallTimeConst | Fall time constant | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Amplitude of pulse | |
Real | width | Width of pulse in % of period | |
Time | period | Time for one period | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Amplitude of saw tooth | |
Time | period | Time for one period | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Current | I | Amplitude of trapezoid | |
Time | rising | Rising duration of trapezoid | |
Time | width | Width duration of trapezoid | |
Time | falling | Falling duration of trapezoid | |
Time | period | Time for one period | |
Integer | nperiod | Number of periods (< 0 means infinite number of periods) | |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
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 Modelica.Electrical.Analog.Interfaces.CurrentSource
(Interface for current sources).
Type | Name | Default | Description |
---|---|---|---|
Real | table[:,:] | [0,0; 1,1; 2,4] | Table matrix (time = first column, current = second column) |
Current | offset | 0 | Current offset |
Time | startTime | 0 | Time offset |
Type | Name | Description |
---|---|---|
PositivePin | p | Positive electrical pin |
NegativePin | n | Negative electrical pin |
This is a simple model of a constant supply voltage with positive and negative supply, the potential between positive and negative supply is accessible.
Type | Name | Default | Description |
---|---|---|---|
Voltage | Vps | 15 | Positive supply |
Voltage | Vns | -15 | Negative supply |
Type | Name | Description |
---|---|---|
PositivePin | pin_p |   |
NegativePin | pin_n |   |
NegativePin | ground |   |
Generated 2018-12-12 12:10:03 EST by MapleSim.