modelexpsinSf
Damped sinusoidal flow source of the Modelica bond graph library
Extends from Interfaces.ActiveOnePort (Partial model invoking one bondgraphic connector).
Information
The damped sinusoidal flow source is an active OnePort element. It inherits the effort and flow variables from the active OnePort. The damped sinusoidal flow to be generated is modeled as a set of six 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 damped sine wave to be generated (default value = 1) phase: Phase of damped sine wave to be generated (default value = 0) freqHz: Frequency of damped sine wave to be generated (default value = 2) damping: Damping coefficient of damped sine wave to be generated (default value = 1) offset: Offset of damped sine wave to be generated (default value = 0) startTime: Start time of damped sine wave to be generated (default value = 0)
Equations:
f = offset + (if time < startTime then 0 else f0*exp(-(time - startTime)*damping)*sin(2*pi*freqHz*(time - startTime) + phase))
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | f0 | 1 | Amplitude of sine wave |
| Modelica.SIunits.Angle | phase | 0 | Phase of sine wave |
| Modelica.SIunits.Frequency | freqHz | 2 | Frequency of sine wave |
| Real | damping | 1 | Damping coefficient of sine wave |
| Real | offset | 0 | Offset of sine wave |
| Modelica.SIunits.Time | startTime | 0 | Start time of sine wave |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BondLib.Interfaces.BondCon | BondCon1 (from ActiveOnePort) | Bond graph connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e (from ActiveOnePort) | Bondgraphic effort | |
| Real | f (from ActiveOnePort) | Bondgraphic flow | |
| Modelica.Blocks.Sources.ExpSine | ExpSine1 |