Bond Graph
Domains: Continuous. Size: 2-D. Kind: Block Diagrams, Bond Graphs.
This model is the multiport equivalent of the single C storage element. Consequently the constitutive equation must be written as a matrix-vector multiplication. The element has a preferred effort out causality. The corresponding constitutive equations then contain an integration. The element can also have the non-preferred flow out causality. The constitutive equations then contain a derivation, which can only be simulated when the Backward Differentiation Formula integration algorithm is available:
effort out causality (preferred):
state = int(p.f) + state(0);
p.e = inverse(C)*state;
outp = state;
flow out causality:
state = C*p.e;
p.f = d state / dt;
output = state;
Ports |
Description |
p[2] |
Input port of the storage element (columnvector with size 2). |
Causality |
|
preferred effort out |
A flow out causality results in a derivative constitutive equation. |
Outputs |
|
output[2] |
The output signal is equal to the state (columnvector with size 2). |
Parameters |
|
C[2,2] |
The storage element constants (matrix of size [2,2]). |
Initial Values |
|
state(0)[2] |
The initial values of the storage element (columnvector with size 2). |
The preferred equation contains an inverted C matrix. The elements of this matrix should be chosen with care to prevent this matrix from becoming singular.