modelControl
Partial model for control in CLD+ modeling
Extends from FlowPort (Single flow port with optional flow reporting), TimedSource (Partial class for flow port with timing).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
This is the basic class for control components, which typically set a flow to a stock under control, whose current level is measured by a sensor currentValue.y.
The class allows to use either a RampInput or an optional input connector u to provide setpoint information.
Timing choices can be given, which determin whether a PulseInput or a ConstantConverter is active.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SetpointType | initialSetpoint | Setpoint valid from modelStartTime to startTime | |
| SetpointType | finalSetpoint | Final setpoint valid from startTime + duration until the end of the simulation | |
| Time | startTime | modelSettings.modelStartTime | Start time for change of setpoint |
| Time | duration | modelSettings.modelTimeHorizon | Time until final setpoint is reached |
| Structural Parameters | |||
| Boolean | hasRateOutput (from FlowPort) | false | = true, if the rate is reported via real output connectors |
| Boolean | hasExogenousSetpoint | false | = true, if the setpoint is to be given by an input connector |
| Timing | |||
| TimingChoices | tc (from TimedSource) | TimingChoices.permanent | Select whether contoll is permanent or timed |
| Time | onTime (from TimedSource) | modelSettings.modelStartTime | Time for component to become effective |
| Time | offTime (from TimedSource) | modelSettings.modelTimeHorizon | Time for component to become ineffective |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FlowPort | flowPort (from FlowPort) | Used to represent stock and flow connections | |
| Connectors.RealInput | u | Setpoint input for controller |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from FlowPort) | Output of current rate of flow | |
| RealOutput | y1 (from FlowPort) | Output of current rate of flow | |
| ModelSettings | modelSettings (from TimedSource) |
Contents
| Name | Description |
|---|---|
| SetpointType |
Revisions
- Moved check for
offTime <= onTimeto anassertstatement as to prevent theminattribute to be set by a parameter withfixed = falsein v2.1.0.