.BondLib.Sources.sawSf

Information

The saw tooth flow source is an active OnePort element. It inherits the effort and flow variables from the active OnePort. The saw tooth flow to be generated is modeled as a set of four parameters.

The flow source has its causality stroke at the source.


Potential variables:

 e:          Bondgraphic effort variable

 f:          Bondgraphic flow variable, normalized positive for flows out of the model


Parameters:

 f0:         Amplitude of saw tooth to be generated (default value = 1)

 period:     Length of period of saw tooth to be generated (default value = 1)

 offset:     Offset of saw tooth to be generated (default value = 0)

 startTime:  Start time of saw tooth to be generated (default value = 0)


Equations:

when sample(startTime, period) then
T0 = time
end when
f = offset + (if time < startTime then 0 else (f0/period)*(time - T0))


Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos