WOLFRAM SYSTEMMODELER

CLevel

General System Dynamics controlling level

Diagram

Wolfram Language

In[1]:=
Click for copyable input
SystemModel["SystemDynamics.Levels.CLevel"]
Out[1]:=

Information

This is the continuous controlling Level model of the System Dynamics methodology with a single inflow and a single outflow. It computes the level by integrating over the difference between inflow and outflow rates.

Once the level reaches its maximum allowed value, it sends a Boolean signal to its inflow rate element to tell it to stop sending more stuff. Once it reaches its minimum allowed value, it sends a Boolean signal to its outflow rate element to tell it to stop demanding more stuff.

Public Parameters (3)

x0

Value: 0

Type: Real

Description: Initial condition

minLevel

Value: 0

Type: Real

Description: Smallest allowed value of stock

maxLevel

Value: inf

Type: Real

Description: Largest allowed value of stock

Outputs (1)

level

Type: Real

Description: Continuous state variable

Connectors (7)

u1

Type: MassInPort

Description: Inflow variable

u2

Type: MassInPort

Description: Outflow variable

y

Type: MassOutPort

Description: State variable

y1

Type: MassOutPort

Description: State variable

y2

Type: MassOutPort

Description: State variable

s1

Type: BooleanOutput

Description: Inflow control signal

s2

Type: BooleanOutput

Description: Outflow control signal

Components (4)

Integrator1

Type: Integrator

LessThreshold1

Type: LessThreshold

Add1

Type: Add

GreaterThreshold1

Type: GreaterThreshold