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.
Name | Description |
---|---|
mSe | Modulated source of effort |
mSf | Modulated source of flow |
Se | source of effort |
Sf | source of 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 effort sources.
Name | Default | Description |
---|---|---|
n | N | Cardinality of Bond connection |
model mSe "Modulated source of effort" extends Interfaces.ActiveOnePort; public Interfaces.RealSignal s[n] "Bondgraphic effort"; equation e = s; end mSe;
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.
Name | Default | Description |
---|---|---|
n | N | Cardinality of Bond connection |
model mSf "Modulated source of flow" extends Interfaces.ActiveOnePort; public Interfaces.RealSignal s[n] "Bondgraphic flow"; equation f = s; end mSf;
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.
Name | Default | Description |
---|---|---|
n | N | Cardinality of Bond connection |
e0[:] | {1} | Bondgraphic effort |
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;
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.
Name | Default | Description |
---|---|---|
n | N | Cardinality of Bond connection |
f0[:] | {1} | Bondgraphic flow |
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;