MultiBondLib.Sensors

Sensor elements of the Modelica multibond library

Information


  This package contains sensor elements. Bondgraphic variables like: 
  effort, flow, momentum, position and power can be extracted by acausal signals.

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.

Package Content

NameDescription
MultiBondLib.Sensors.De De sensor of bondgraphic effort
MultiBondLib.Sensors.Df Df sensor of bondgraphic flow
MultiBondLib.Sensors.Dp Dp sensor of bondgraphic momentum
MultiBondLib.Sensors.Dq Dq sensor of bondgraphic position
MultiBondLib.Sensors.ePMultiBond ePMultiBond Power flow sensor
MultiBondLib.Sensors.fPMultiBond fPMultiBond Power flow sensor
MultiBondLib.Sensors.PMultiBond PMultiBond Power flow sensor


MultiBondLib.Sensors.De MultiBondLib.Sensors.De

sensor of bondgraphic effort

MultiBondLib.Sensors.De

Information


The effort sensor converts the bondgraphic effort vector into a real signal. 

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


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
RealSignale_out[n] 

Modelica definition

model De "sensor of bondgraphic effort" 
  extends Interfaces.PassiveOnePort;
  Interfaces.RealSignal e_out[n];
equation 
  e_out = e;
  f = zeros(n);
end De;

MultiBondLib.Sensors.Df MultiBondLib.Sensors.Df

sensor of bondgraphic flow

MultiBondLib.Sensors.Df

Information


The flow sensor converts the bondgraphic flow vector into a real signal. 

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


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
RealSignalf_out[n] 

Modelica definition

model Df "sensor of bondgraphic flow" 
  extends Interfaces.PassiveOnePort;
  Interfaces.RealSignal f_out[n];
equation 
  f_out = f;
  e = zeros(n);
end Df;

MultiBondLib.Sensors.Dp MultiBondLib.Sensors.Dp

sensor of bondgraphic momentum

MultiBondLib.Sensors.Dp

Information


The momentum sensor converts the bondgraphic momentum vector into a real signal. 
The bondgraphic momentum is the integrated effort. You can set an inital position by the parameter p_start
The initial condition can be removed by setting the boolean parameter stateInitialCondition to false.

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


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection
BooleanstateInitialConditiontruestate the initial bondgraphic potential p
Realp_start[n]{0}initial value for p

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
RealSignalp[n] 

Modelica definition

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;

MultiBondLib.Sensors.Dq MultiBondLib.Sensors.Dq

sensor of bondgraphic position

MultiBondLib.Sensors.Dq

Information


The position sensor converts the bondgraphic charge vector into a real signal. 
The bondgraphic position is the integrated flow. You can set an inital position by the parameter q_start
The initial condition can be removed by setting the boolean parameter stateInitialCondition to false.

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


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection
BooleanstateInitialConditiontruestate the initial bondgraphic position q
Realq_start[n]{0}initial value for q

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
RealSignalq[n] 

Modelica definition

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;

MultiBondLib.Sensors.ePMultiBond MultiBondLib.Sensors.ePMultiBond

Power flow sensor

MultiBondLib.Sensors.ePMultiBond

Information


This is the causal power sensor bond. It behaves exactly like a normal causal bond. 
In addition, the throughgoing power can be measured by the outgoing singal.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond

Connectors

TypeNameDescription
fMultiBondConfMultiBondCon1 
eMultiBondConeMultiBondCon2 
RealSignalP 

Modelica definition

model ePMultiBond "Power flow sensor" 
  extends Bonds.eMultiBond;
  
  Interfaces.RealSignal P;
equation 
  P = eMultiBondCon2.e * fMultiBondCon1.f;
  
end ePMultiBond;

MultiBondLib.Sensors.fPMultiBond MultiBondLib.Sensors.fPMultiBond

Power flow sensor

MultiBondLib.Sensors.fPMultiBond

Information


This is the causal power sensor bond. It behaves exactly like a normal causal bond. 
In addition, the throughgoing power can be measured by the outgoing singal.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond

Connectors

TypeNameDescription
eMultiBondConeMultiBondCon1 
fMultiBondConfMultiBondCon2 
RealSignalP 

Modelica definition

model fPMultiBond "Power flow sensor" 
  extends Bonds.fMultiBond;
  
  Interfaces.RealSignal P;
equation 
  P = eMultiBondCon1.e * fMultiBondCon2.f;
  
end fPMultiBond;

MultiBondLib.Sensors.PMultiBond MultiBondLib.Sensors.PMultiBond

Power flow sensor

MultiBondLib.Sensors.PMultiBond

Information


This is the acausal power sensor bond. It behaves exactly like a normal bond. 
In addition, the throughgoing power can be measured by the outgoing singal.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
MultiBondConMultiBondCon2 
RealSignalP 

Modelica definition

model PMultiBond "Power flow sensor" 
  extends Bonds.MultiBond;
  
  Interfaces.RealSignal P;
equation 
  P = MultiBondCon1.e * MultiBondCon1.f;
  
end PMultiBond;

HTML-documentation generated by Dymola Thu Aug 31 09:47:33 2006.