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

Online Help

All Products    Maple    MapleSim


Trapezoid Current

Trapezoidal current source

 

Description

Equations

Variables

Connections

Parameters

Modelica Standard Library

Description

The Trapezoid Current source generates a periodic trapezoidal waveform.

Equations

i&equals;ip&equals;in&equals;I0&plus;Ih{0t<0tTr0t<Tr1Trt<Tr&plus;TwTr&plus;Tw&plus;TftTfTr&plus;Twt<Tr&plus;Tw&plus;Tf0otherwise

t&equals;tT0kT&comma;k&equals;0&comma;1&comma;&comma;n1

v&equals;vpvn

Variables

Name

Units

Description

Modelica ID

v

V

Voltage drop between the two pins

v

vx

V

Voltage at pin x, xn&comma;p

x.v

i

A

Current flowing from pin p to pin n

i

ix

A

Current into pin x, xn&comma;p

x.i

Connections

Name

Description

Modelica ID

p

Positive pin

p

n

Negative pin

n

Parameters

Name

Default

Units

Description

Modelica ID

nperiod

−1

 

Number of periods; negative means infinite number of periods)

nperiod

T0

0

s

Time offset

startTime

Tr

0

s

Rising duration of trapezoid

rising

Tw

0.5

s

Width duration of trapezoid

width

Tf

0

s

Falling duration of trapezoid

falling

T

1

s

Time for one period

period

Ih

1

A

Amplitude of trapezoid

I

I0

0

A

Current offset

offset

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

Current Sources

Electrical Library