modelUnidirectionalFlow

Interaction with linear and nonlinear terms

Extends from Interfaces.PartialCLD.Flow (Partial interaction for causal loop diagramming).

Information

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

Using →Transition this component allows to model a transition from stock A (connected to portA) to stock B (connected to portB) at a rate given by the parameter rate. The parameter rate is multiplied either with 1 (hasFactor = false) or an exogenous factor u (hasFactor = true). Upon setting hasRateOutput = true the component will report the current rate of flow via an output connector (y).

Notes

  • Using rate = 1 and hasFactor = true a unidirectional flow can be modeled, whose rate is given by the input u. Note that negative values will be clipped to zero as only flows from A to B are permitted.

  • The parameters polA and polB allow to give visual cues with regard to polarity in the diagram.

See also

ComplexInteraction

Parameters

TypeNameDefaultDescription
Raterate1Base rate of flow from A to B
Structural Parameters
BooleanhasFactor (from Flow)false= true, if coefficients are to be multiplied with input u
BooleanhasRateOutput (from Flow)false= true, if the rate is reported via real output connectors

Connectors

TypeNameDefaultDescription
Connectors.FlowPortportA (from Flow)
Connectors.FlowPortportB (from Flow)
Connectors.RealInputu (from Flow)Factor input

Components

TypeNameDefaultDescription
RealOutputy (from Flow)Output of current rate of flow
RealOutputy1 (from Flow)Output of current rate of flow

Revisions

  • Introduced in v2.0.0.

  • Fixed that rate was not used in v2.1.0