modelexpSe

Step response effort source of the Modelica bond graph library

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

Information

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

 riseTime:       Rise time of step response to be generated (default value = 0.5)

 riseTimeConst:  Rise time constant of step response to be generated (default value = 0.1)

 fallTimeConst:  Fall time constant of step response to be generated (default value = riseTimeConst)

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

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


Equations:

e_riseTime = e0*(1 - exp(-riseTime/riseTimeConst))
e = offset + (if (time < startTime) then 0 else if (time < (startTime + riseTime)) then e0*(1 - exp(-(time - startTime)/riseTimeConst)) else e_riseTime*exp(-(time - startTime - riseTime)/fallTimeConst));

Parameters

TypeNameDefaultDescription
Reale01Height of step response after infinite time
Modelica.SIunits.TimeriseTime0.5Rise time
Modelica.SIunits.TimeriseTimeConst0.1Rise time constant
Modelica.SIunits.TimefallTimeConstriseTimeConstFall time constant
Realoffset0Offset of step response
Modelica.SIunits.TimestartTime0Start time of step response

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