modelpulseSf

Pulse flow source of the Modelica bond graph library

Extends from Interfaces.ActiveOnePort (Partial model invoking one bondgraphic connector).

Information

The pulse flow source is an active OnePort element. It inherits the effort and flow variables from the active OnePort. The pulse flow to be generated is modeled as a set of five 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 pulse to be generated (default value = 1)

 width:      Percentage of period in on state (default value = 50)

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

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

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


Equations:

when sample(startTime, period) then
T0 = time
end when
f = offset + (if time < startTime or time >= T0 + T_width then 0 else f0)

Parameters

TypeNameDefaultDescription
Realf01Amplitude of saw tooth
Modelica.SIunits.Timewidth50Width of saw tooth in % of period
Modelica.SIunits.Timeperiod1Time for one period
Realoffset0Offset of saw tooth
Modelica.SIunits.TimestartTime0Start time of saw tooth

Connectors

TypeNameDefaultDescription
BondLib.Interfaces.BondConBondCon1 (from ActiveOnePort)Bond graph connector

Components

TypeNameDefaultDescription
Reale (from ActiveOnePort)Bondgraphic effort
Realf (from ActiveOnePort)Bondgraphic flow
Modelica.Blocks.Sources.PulsePulse1