blockCLevel1b
General System Dynamics controlling level with no inflow
Information
This is the continuous controlling Level model of the System Dynamics methodology with a single outflow and no inflow. It computes the level by integrating over the negative outflow rate.Once the level reaches its minimum allowed value, it sends a Boolean signal to its outflow rate element to tell it to stop demanding more stuff.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x0 | 0 | Initial condition |
| Real | minLevel | 0 | Smallest allowed value of stock |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| SystemDynamics.Interfaces.MassInPort | u1 | Outflow variable | |
| SystemDynamics.Interfaces.MassOutPort | y | State variable | |
| SystemDynamics.Interfaces.MassOutPort | y1 | State variable | |
| SystemDynamics.Interfaces.MassOutPort | y2 | State variable | |
| SystemDynamics.Interfaces.MassOutPort | y3 | State variable | |
| Modelica.Blocks.Interfaces.BooleanOutput | s | Control signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | level | Continuous state variable | |
| Modelica.Blocks.Continuous.Integrator | Integrator1 | ||
| Modelica.Blocks.Math.Gain | Gain1 | ||
| Modelica.Blocks.Logical.GreaterThreshold | GreaterThreshold1 |