.BusinessSimulation.Flows.Interaction.ComplexInteraction

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The ComplexInteraction component combines linear and nonlinear interaction between two stocks A (portA) and B (portB):

Formula.svg

Note: Capital letters were chosen to represent the stocks (state variables) connected at portA and portB in the formula above. Also dot notation is used for a stock's rate of flow—its first derivative with respect to time.

Coefficient Unit Description
a_0

base unit of flow to A (OutputType_A)

Rate of growth for stock A

b_0

base unit of flow to B (OutputType_B)

Rate of growth for stock B

a_A

1/s

fractional rate of growth for stock A
(e.g., the self-coupling coefficient for A)

b_B

1/s

fractional rate of growth for stock B
(e.g., the self-coupling coefficient for B)

a_B

base unit of flow to A (OutputType_A)
per base unit of B (TypeB)

Rate of growth for stock A per stock B
(e.g., the coupling-cofficient for B towards A)

b_A

base unit of flow to B (OutputType_B)
per base unit of A (TypeA)

Rate of growth for stock B per stock A
(e.g., the coupling-coefficient for A towards B)

a_AB 1 per second
per base unit of B (TypeB)

Factor used to determine the net flow to A
(e.g., nonlinear coupling factor for A)

b_AB 1 per second
per base unit of A TypeA)

Factor used to determine the net flow to B
(e.g., nonlinear coupling factor for B)

The coefficients can be given as parameters or as variables via the expandable connector dataIn.

Examples

The classical Lotka-Volterra-Model of predator-prey-dynamics can be derived from this model using the following parameterization:

a_0 = 0, a_A = α, a_B = 0, a_AB = -β, b_0 = 0, b_B = -γ, b_A = 0, b_AB = δ

Notes

See also

LinearInteraction, ComplexInteractionLotkaVolterra

Contents

NameDescription
 TypeAType selector for stock A
 TypeBType selector for stock B
 InputConnectorData bus for inputs

Revisions


Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos