Links

A link makes two objects (flows, stocks, converters, or parameters) aware of each other. This allows the two primitives to reference the value of each other in their equations. A flow is automatically aware of both its Alpha and Omega and, conversely, its Alpha and Omega are aware of the flow. In any other case, if two primitives are not connected by a link, you will be unable to reference the value of the first in the equations of the second or vice versa. Links are reciprocal; the Alpha of the link is made aware of the Omega and the Omega of the Alpha.

For an example of the use of links, take the following model that only contains two parameters: A and B. A has some arbitrary value that is not important to us. B’s value is set to the following (the carrot sign “^” means to carry out a power operation, so the function here returns the square of the value of A):

[A]^2

We could construct our model like this:

a b.png

When we run this model though, Simgua will print out an error that no connection to A was found from primitive B. This is because A and B are not connected in any way so B is unaware that A exists. Therefore you cannot refer to the value of A from B. This problem is easy to fix though; just create a link joining A and B like this:

a-b.png

This time, the model runs perfectly.

Back to the overview of all primitives.