BondLib.Sources.rampSf

# .BondLib.Sources.rampSf

Ramp flow source of the Modelica bond graph library

## Information

The ramp flow source is an active OnePort element. It inherits the effort and flow variables from the active OnePort. The ramp 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:         Height of ramp to be generated (default value = 1)

     duration:   Duration of ramp to be generated (default value = 2)

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

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

Equations:

f = offset + (if time < startTime then 0 else if time < (startTime + duration) then (time - startTime)*f0/duration else f0);

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos