modelsinSe

Sinusoidal effort source of the Modelica bond graph library

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

Information

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

 phase:      Phase of sine wave to be generated (default value = 0)

 freqHz:     Frequency of sine wave to be generated (default value = 1)

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

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


Equations:

e = offset + e0*sin(2*pi*freqHz*(time - startTime))

Parameters

TypeNameDefaultDescription
Reale01Amplitude of sine wave
Modelica.SIunits.Anglephase0Phase of sine wave
Modelica.SIunits.FrequencyfreqHz1Frequency of sine wave
Realoffset0Offset of sine wave
Modelica.SIunits.TimestartTime0Start time of sine wave

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