MultiBondLib.Sensors

Sensor elements of the Modelica multibond library

MultiBondLib.Sensors.De MultiBondLib.Sensors.Df MultiBondLib.Sensors.Dp MultiBondLib.Sensors.Dq MultiBondLib.Sensors.ePMultiBond MultiBondLib.Sensors.fPMultiBond MultiBondLib.Sensors.PMultiBond

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.

NameDescription
De sensor of bondgraphic effort
Df sensor of bondgraphic flow
Dp sensor of bondgraphic momentum
Dq sensor of bondgraphic position
ePMultiBond Power flow sensor
fPMultiBond Power flow sensor
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

NameDefaultDescription
nNCardinality of Bond connection

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

NameDefaultDescription
nNCardinality of Bond connection

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

NameDefaultDescription
nNCardinality of Bond connection
stateInitialConditiontruestate the initial bondgraphic potential p
p_start[n]{0}initial value for p

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

NameDefaultDescription
nNCardinality of Bond connection
stateInitialConditiontruestate the initial bondgraphic position q
q_start[n]{0}initial value for q

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

NameDefaultDescription
nNCardinality of Bond

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

NameDefaultDescription
nNCardinality of Bond

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

NameDefaultDescription
nNCardinality of Bond

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 Feb 23 12:19:31 2006.