modelV_pulse
Pulse voltage source
Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n).
Information
Periodic pulse source with not limited number of periods.
A single pulse is described by the following table:
time |
value |
0 |
V1 |
TD |
V1 |
TD+TR |
V2 |
TD+TR+PW |
V2 |
TD+TR+PW+TF |
V1 |
TSTOP |
V1 |
Intermediate points are determined by linear interpolation.
A pulse it looks like a saw tooth, use this parameters e.g.:
Parameter |
Value |
V1 |
0 |
V2 |
1 |
TD |
0 |
TR |
1 |
TF |
1 |
PW |
2 |
PER |
1 |
Note
- All parameters of sources should be set explicitly.
- since TSTEP and TSTOP are not available for modeling in Modelica, differences to SPICE may occur if not all parameters are set.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | V1 | 0 | Initial value |
| SI.Voltage | V2 | 0 | Pulsed value |
| SI.Time | TD | 0.0 | Delay time |
| SI.Time | TR | Rise time | |
| SI.Time | TF | TR | Fall time |
| SI.Time | PW | Modelica.Constants.inf | Pulse width |
| SI.Time | PER | Modelica.Constants.inf | Period |
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 |