MultiBondLib.Sources

Sources of the Modelica multibond library

Information


This package contains the active bondgraphic elements: sources.

The sources are either constant or modulated. Other source types like sinusoidal sources can easily be created by coupling Modelica.Blocks with the modulated sources.

Package Content

NameDescription
MultiBondLib.Sources.mSe mSe Modulated source of effort
MultiBondLib.Sources.mSf mSf Modulated source of flow
MultiBondLib.Sources.Se Se source of effort
MultiBondLib.Sources.Sf Sf source of flow


MultiBondLib.Sources.mSe MultiBondLib.Sources.mSe

Modulated source of effort

MultiBondLib.Sources.mSe

Information


This is the model of a modulated source of effort. 
The input signal is converted into bondgraphic effort.

The cardinality of the element can be specified by the parameter n. The size of the input signal has to match with the cardinality of the outgoing bond.

Use Modelica.Blocks.Sources as input signal to get all kinds of effort sources.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
RealSignals[n]Bondgraphic effort

Modelica definition

model mSe "Modulated source of effort" 
  extends Interfaces.ActiveOnePort;
public 
  Interfaces.RealSignal s[n] "Bondgraphic effort";
equation 
  e = s;
end mSe;

MultiBondLib.Sources.mSf MultiBondLib.Sources.mSf

Modulated source of flow

MultiBondLib.Sources.mSf

Information


This is the model of a modulated source of flow. 
The input signal is converted into bondgraphic flow.

The cardinality of the element can be specified by the parameter n. The size of the input signal has to match with the cardinality of the outgoing bond.

Use Modelica.Blocks.Sources as input signal to get all kinds of flow sources.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 
RealSignals[n]Bondgraphic flow

Modelica definition

model mSf "Modulated source of flow" 
  extends Interfaces.ActiveOnePort;
public 
  Interfaces.RealSignal s[n] "Bondgraphic flow";
equation 
  f = s;
end mSf;

MultiBondLib.Sources.Se MultiBondLib.Sources.Se

source of effort

MultiBondLib.Sources.Se

Information


This is the model of a constant source of effort. 

The cardinality of the element can be specified by the parameter n.

The constant effort can be specified by the vector e0 of size n or 1. If the size of e0 is 1, the single value is used for all effort vector elements.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection
Reale0[:]{1}Bondgraphic effort

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 

Modelica definition

model Se "source of effort" 
  extends Interfaces.ActiveOnePort;
  parameter Real[:] e0 = {1} "Bondgraphic effort";
protected 
  parameter Real[n] e0vec = if size(e0,1) == n then e0 else ones(n)*e0[1];
equation 
  assert((size(e0,1) == n) or (size(e0,1) == 1),"e0 must be of length 1 or n");
  e = e0vec;
end Se;

MultiBondLib.Sources.Sf MultiBondLib.Sources.Sf

source of flow

MultiBondLib.Sources.Sf

Information


This is the model of a constant source of flow. 

The cardinality of the element can be specified by the parameter n.

The constant flow can be specified by the vector f0 of size n or 1. If the size of f0 is 1, the single value is used for all flow vector elements.


Parameters

TypeNameDefaultDescription
IntegernNCardinality of Bond connection
Realf0[:]{1}Bondgraphic flow

Connectors

TypeNameDescription
MultiBondConMultiBondCon1 

Modelica definition

model Sf "source of flow" 
  extends Interfaces.ActiveOnePort;
  parameter Real[:] f0 = {1} "Bondgraphic flow";
protected 
  parameter Real[n] f0vec = if size(f0,1) == n then f0 else ones(n)*f0[1];
equation 
  assert((size(f0,1) == n) or (size(f0,1) == 1),"f0 must be of length 1 or n");
  f = f0vec;
end Sf;

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