Piecewise Linear Voltage Source
Time-dependent voltage source from tabulated data.
Description
The Piecewise Linear Voltage Source block is a voltage source that is specified as a table using a vector of time values and a vector of corresponding voltage values. You must specify at least two pairs of time-current values. The block generates a time-dependent voltage based on these time-voltage values using the selected interpolation and extrapolation methods. You can select one of the two interpolation and extrapolation methods. The output voltage is independent of the current at the source terminals.
Ports
Conserving
#
+
—
positive terminal
scalar
Details
An electrical port connected to the positive terminal of a piecewise linear voltage source.
Program usage name |
|
#
-
—
negative terminal
scalar
Details
An electrical port connected to the negative terminal of a piecewise linear voltage source.
Program usage name |
|
Parameters
Parameters
#
Time specification —
vector of time values
d
| s
| hr
| ms
| ns
| us
| min
Details
A vector of time values in the form of a tabulated array. The vector of time values must be strictly monotonically increasing.
Values |
|
Default value |
|
Program usage name |
|
Evaluatable |
Yes |
#
Voltage at specified time —
vector of voltage values
V
| MV
| kV
| mV
Details
Vector of voltage values as a tabulated array. The vector of voltage values must be of the same dimension as the vector of time values.
Values |
|
Default value |
|
Program usage name |
|
Evaluatable |
Yes |
#
Interpolation method —
interpolation method
Linear
| Smooth
Details
Select the method the unit uses to determine output current values at intermediate time points not specified in the previous vectors:
-
Linear
- linear interpolation is used. -
Smooth
- smooth spline interpolation with continuous first order derivatives is used.
Values |
|
Default value |
|
Program usage name |
|
Evaluatable |
No |
#
Extrapolation method —
extrapolation method
Nearest
| Linear
Details
Select the method the unit uses to determine output current values at times outside the time range specified in the previous vectors:
-
Nearest
- set to use the nearest value for extrapolation. -
Linear
- set to use a linear function.
Values |
|
Default value |
|
Program usage name |
|
Evaluatable |
No |