Engee documentation

Piecewise Linear Voltage Source

Time-dependent voltage source from tabulated data.

piecewise linear voltage source

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

p

# - — negative terminal
scalar

Details

An electrical port connected to the negative terminal of a piecewise linear voltage source.

Program usage name

n

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

d | s | hr | ms | ns | us | min

Default value

[0.0, 1.0, 2.0, 3.0, 4.0] s

Program usage name

time_vector

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

V | MV | kV | mV

Default value

[0.0, 0.0, 0.0, 0.0, 0.0] V

Program usage name

V_vector

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

Linear | Smooth

Default value

Linear

Program usage name

interpolation_type

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

Nearest | Linear

Default value

Nearest

Program usage name

extrapolation_type

Evaluatable

No