modelrampSe

Ramp effort source of the Modelica bond graph library

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

Information

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

The effort source has its causality stroke away from the source.


Potential variables:

 e:          Bondgraphic effort variable

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


Parameters:

 e0:         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:

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

Parameters

TypeNameDefaultDescription
Reale01Height of ramp
Modelica.SIunits.Timeduration2Duration of ramp
Realoffset0Offset of ramp
Modelica.SIunits.TimestartTime0Start time of ramp

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.RampRamp1