modelTrapezoidVoltage
Trapezoidal voltage source
Extends from Interfaces.VoltageSource (Interface for voltage sources).
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | V | Amplitude of trapezoid | |
| SI.Time | rising | Rising duration of trapezoid | |
| SI.Time | width | Width duration of trapezoid | |
| SI.Time | falling | Falling duration of trapezoid | |
| SI.Time | period | Time for one period | |
| Integer | nperiod | Number of periods (< 0 means infinite number of periods) | |
| SI.Voltage | offset (from VoltageSource) | 0 | Voltage offset |
| SI.Time | startTime (from VoltageSource) | 0 | Time offset |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n | |
| Modelica.Blocks.Interfaces.SignalSource | signalSource (from VoltageSource) |
Revisions
- 1998
by Christoph Clauss
initially implemented