Engee documentation

Piecewise Linear Current Source

Time-dependent current source from tabulated data.

piecewise linear current source

Description

The Piecewise Linear Current Source block is a current source that is specified as a table using a vector of time values and a vector of corresponding current values. You must specify at least two pairs of time and current values. The block generates a time-dependent current based on these current values using the selected interpolation and extrapolation methods. You can select one of the two interpolation and extrapolation methods. The output current is independent of the voltage at the source terminals.

To prevent problems in numerical modelling, the block uses a small internal conductor. The conductor connects the + and - terminals of the unit and has a conductivity of GMIN:

By default, the value of GMIN is 1e-12 1/ohm.

Ports

Conserving

# + — positive terminal

Details

An electrical port connected to the positive terminal of a piecewise linear current source.

Program usage name

p

# - — negative terminal

Details

An electrical port connected to the negative terminal of a piecewise linear current 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

# Current at specified time — current vector
A | MA | kA | mA | nA | pA | uA

Details

The vector of current values as a tabulated array. The current value vector must be of the same dimension as the time value vector.

Values

A | MA | kA | mA | nA | pA | uA

Default value

[0.0, 0.0, 0.0, 0.0, 0.0] A

Program usage name

I_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 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

# Include parallel conductance, GMIN — parallel conduction inclusion

Details

Indicate whether the current source includes parallel conduction. The value of parallel conductivity corresponds to GMIN and is equal to 1e-12 1/ohm.

Default value

true (switched on)

Program usage name

g_min_parameterization

Evaluatable

No