I_pulse

Pulse current source

Description

The I_pulse component models a periodic pulse source with unlimited 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.
 Equations $0={i}_{p}+{i}_{n}$ $i={i}_{p}={I}_{1}+\left\{\begin{array}{cc}0& t<{T}_{\mathrm{D}}\vee \mathrm{counter2}=0\vee {T}_{0}+\mathrm{Tfalling}\le t\\ \left(t-{T}_{0}\right)\frac{{I}_{2}-{I}_{1}}{\mathrm{Trising}}& t<{T}_{0}+\mathrm{Trising}\\ {I}_{2}-{I}_{1}& t<{T}_{0}+\mathrm{Twidth}\\ \left({T}_{0}+\mathrm{Tfalling}-t\right)\frac{{I}_{2}-{I}_{1}}{\mathrm{Tfalling}-\mathrm{Twidth}}& \mathrm{otherwise}\end{array}$ $v={v}_{p}-{v}_{n}$

Variables

 Name Units Description Modelica ID $v$ $V$ Voltage drop between the two pins $\left({v}_{p}-{v}_{n}\right)$ 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 ${I}_{1}$ $0$ $A$ Initial value I1 ${I}_{2}$ $0$ $A$ Pulsed value I2 ${T}_{\mathrm{D}}$ $0$ $s$ Delay time TD ${T}_{R}$ $1$ $s$ Rise time TR ${T}_{F}$ ${T}_{R}$ $s$ Fall time TF $\mathrm{PW}$ $\mathrm{\infty }$ $s$ Pulse width PW $\mathrm{PER}$ $\mathrm{\infty }$ $s$ Period PER

 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.