V_pwl - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


V_pwl

Piecewise linear voltage source

 

Description

Equations

Variables

Connections

Parameters

Modelica Standard Library

Description

The V_pwl component models a current source defined by linear interpolation from a given table. The time points and voltage values are stored in a matrix table[i,j], where the first column contains the time points and the second column contains the voltage to be interpolated. The table interpolation has the following properties:

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:

• 

The time points need to be monotonically increasing.

• 

Discontinuities are allowed, by providing the same time point twice in the table.

• 

Values outside of the table range, are computed by extrapolation through the last or first two points of the table.

• 

If the table has only one row, no interpolation is performed and the voltage value is just returned independently of the actual time instant, i.e., this is a constant voltage source.

• 

Via parameters startTime and offset the curve defined by the table can be shifted both in time and in the voltage.

• 

The table is implemented in a numerically sound way by generating time events at interval boundaries. This generates continuously differentiable values for the integrator.

Equations

i=ip=in

v=vpvn=tab.y

Variables

Name

Units

Description

Modelica ID

v

V

Voltage drop between the two pins vpvn

v

i

A

Current flowing from pin p to pin n

i

Connections

Name

Description

Modelica ID

p

Positive pin

p

n

Negative pin

n

Parameters

Name

Default

Units

Description

Modelica ID

table

[0,0; 1,1; 2,4]

 

Table matrix (time = first column, voltage = second column)

table

Modelica Standard Library

• 

The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.

See Also

Analog Components

Spice3 Overview

Spice3 Voltage Sources