Sensor elements serve for different purposes. They can be used to...
In contrast to the classic BondLib, the sensor signals are acausal. Therefore momentum and position sensors do not necessarily define integrators. If the algebraic relations form a structural singularity, a sensor's integrator might be removed by the pantelides algorithm.
Name | Description |
---|---|
![]() | sensor of bondgraphic effort |
![]() | sensor of bondgraphic flow |
![]() | sensor of bondgraphic momentum |
![]() | sensor of bondgraphic position |
![]() | Power flow sensor |
![]() | Power flow sensor |
![]() | Power flow sensor |
The effort sensor has to be connected to a 0-junction via a multibond.
The size of the sensor signal equals the cardinality of the element which can be specified by the parameter n
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond connection |
Type | Name | Description |
---|---|---|
MultiBondCon | MultiBondCon1 | |
RealSignal | e_out[n] |
model De "sensor of bondgraphic effort" extends Interfaces.PassiveOnePort; Interfaces.RealSignal e_out[n]; equation e_out = e; f = zeros(n); end De;
The flow sensor has to be connected to a 1-junction via a multibond.
The size of the sensor signal equals the cardinality of the element which can be specified by the parameter n
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond connection |
Type | Name | Description |
---|---|---|
MultiBondCon | MultiBondCon1 | |
RealSignal | f_out[n] |
model Df "sensor of bondgraphic flow" extends Interfaces.PassiveOnePort; Interfaces.RealSignal f_out[n]; equation f_out = f; e = zeros(n); end Df;
The momentum sensor has to be connected to a 0-junction via a multibond.
The size of the sensor signal equals the cardinality of the element which can be specified by the parameter n
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond connection |
Boolean | stateInitialCondition | true | state the initial bondgraphic potential p |
Real | p_start[n] | {0} | initial value for p |
Type | Name | Description |
---|---|---|
MultiBondCon | MultiBondCon1 | |
RealSignal | p[n] |
model Dp "sensor of bondgraphic momentum" extends Interfaces.PassiveOnePort; parameter Boolean stateInitialCondition = true "state the initial bondgraphic potential p"; parameter Real[n] p_start = {0} "initial value for p"; Interfaces.RealSignal p[n]; initial equation if stateInitialCondition then p = p_start; end if; equation f = zeros(n); der(p) = e; end Dp;
The position sensor has to be connected to a 1-junction via a multibond.
The size of the sensor signal equals the cardinality of the element which can be specified by the parameter n
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond connection |
Boolean | stateInitialCondition | true | state the initial bondgraphic position q |
Real | q_start[n] | {0} | initial value for q |
Type | Name | Description |
---|---|---|
MultiBondCon | MultiBondCon1 | |
RealSignal | q[n] |
model Dq "sensor of bondgraphic position" extends Interfaces.PassiveOnePort; parameter Boolean stateInitialCondition = true "state the initial bondgraphic position q"; parameter Real[n] q_start = {0} "initial value for q"; Interfaces.RealSignal[n] q; initial equation if stateInitialCondition then q = q_start; end if; equation e = zeros(n); der(q) = f; end Dq;
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond |
Type | Name | Description |
---|---|---|
fMultiBondCon | fMultiBondCon1 | |
eMultiBondCon | eMultiBondCon2 | |
RealSignal | P |
model ePMultiBond "Power flow sensor" extends Bonds.eMultiBond; Interfaces.RealSignal P; equation P = eMultiBondCon2.e * fMultiBondCon1.f; end ePMultiBond;
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond |
Type | Name | Description |
---|---|---|
eMultiBondCon | eMultiBondCon1 | |
fMultiBondCon | fMultiBondCon2 | |
RealSignal | P |
model fPMultiBond "Power flow sensor" extends Bonds.fMultiBond; Interfaces.RealSignal P; equation P = eMultiBondCon1.e * fMultiBondCon2.f; end fPMultiBond;
Type | Name | Default | Description |
---|---|---|---|
Integer | n | N | Cardinality of Bond |
Type | Name | Description |
---|---|---|
MultiBondCon | MultiBondCon1 | |
MultiBondCon | MultiBondCon2 | |
RealSignal | P |
model PMultiBond "Power flow sensor" extends Bonds.MultiBond; Interfaces.RealSignal P; equation P = MultiBondCon1.e * MultiBondCon1.f; end PMultiBond;