V_pwlPiece-wise linear voltage source |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This model generates a voltage by linear interpolation in a given 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).
table |
Value: [0, 0; 1, 1; 2, 4] Type: Real[:,:] Description: Table matrix (time = first column, voltage = second column) |
---|
p |
Type: PositivePin Description: Positive electrical pin |
|
---|---|---|
n |
Type: NegativePin Description: Negative electrical pin |
tab |
Type: TimeTable |
---|