modelI_pulse

Pulse current source

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n).

Information

Periodic pulse source with not limited number of periods.

A single pulse is described by the following table:

time

value

0

I1

TD

I1

TD+TR

I2

TD+TR+PW

I2

TD+TR+PW+TF

I1

TSTOP

I1

Intermediate points are determined by linear interpolation.

A pulse it looks like a saw tooth, use this parameters e.g.:

Parameter

Value

I1

0

I2

1

TD

0

TR

1

TF

1

PW

2

PER

1

Note

  • All parameters of sources should be set explicitly.
  • since TSTEP and TSTOP are not available for modeling in Modelica, differences to SPICE may occur if not all parameters are set.

Parameters

TypeNameDefaultDescription
SI.CurrentI10Initial value
SI.CurrentI20Pulsed value
SI.TimeTD0.0Delay time
SI.TimeTRRise time
SI.TimeTFTRFall time
SI.TimePWModelica.Constants.infPulse width
SI.TimePERModelica.Constants.infPeriod

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currenti (from OnePort)Current flowing from pin p to pin n