V_pulse

Pulse voltage source

Description

The V_pulse component models a periodic pulse source with unlimited number of periods. A single pulse is described by the following table:

 time value 0 V1 TD V1 TD+TR V2 TD+TR+PW V2 TD+TR+PW+TF V1 TSTOP V1

Intermediate points are determined by linear interpolation. A pulse it looks like a saw tooth, use this parameters e.g.:

 Parameter Value V1 0 V2 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 $i={i}_{p}=-{i}_{n}$ $v={v}_{p}-{v}_{n}=\mathrm{V1}+\left\{\begin{array}{cc}0& t<\mathrm{TD}\vee \mathrm{counter2}=0\vee \mathrm{T0}+\mathrm{Tfalling}\le t\\ \left(t-\mathrm{T0}\right)\frac{\mathrm{V2}-\mathrm{V1}}{\mathrm{Trising}}& t<\mathrm{T0}+\mathrm{Trising}\\ \mathrm{V2}-\mathrm{V1}& t<\mathrm{T0}+\mathrm{Twidth}\\ \left(\mathrm{T0}+\mathrm{Tfalling}-t\right)\frac{\mathrm{V2}-\mathrm{V1}}{\mathrm{Tfalling}-\mathrm{Twidth}}& \mathrm{otherwise}\end{array}$

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 ${V}_{1}$ $0$ $V$ Initial value V1 ${V}_{2}$ $0$ $V$ Pulsed value V2 ${T}_{\mathrm{D}}$ $0$ $s$ Delay time TD ${T}_{R}$ $s$ Rise time TR ${T}_{F}$ $\mathrm{TR}$ $s$ Fall time TF $\mathrm{PW}$ $\mathrm{Modelica}\cdot \mathrm{Constants}\cdot \mathrm{inf}$ $s$ Pulse width PW $\mathrm{PER}$ $\mathrm{Modelica}\cdot \mathrm{Constants}\cdot \mathrm{inf}$ $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.