Control

Partial model for control in CLD+ modeling

Diagram

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 (9)

hasRateOutput

Value: false

Type: Boolean

Description: = true, if the rate is reported via real output connectors

tc

Value: TimingChoices.permanent

Type: TimingChoices

Description: Select whether contoll is permanent or timed

onTime

Value: modelSettings.modelStartTime

Type: Time (s)

Description: Time for component to become effective

offTime

Value: modelSettings.modelTimeHorizon

Type: Time (s)

Description: Time for component to become ineffective

hasExogenousSetpoint

Value: false

Type: Boolean

Description: = true, if the setpoint is to be given by an input connector

initialSetpoint

Value:

Type: SetpointType

Description: Setpoint valid from modelStartTime to startTime

finalSetpoint

Value:

Type: SetpointType

Description: Final setpoint valid from startTime + duration until the end of the simulation

startTime

Value: modelSettings.modelStartTime

Type: Time (s)

Description: Start time for change of setpoint

duration

Value: modelSettings.modelTimeHorizon

Type: Time (s)

Description: Time until final setpoint is reached

Connectors (4)

flowPort

Type: FlowPort

Description: Used to represent stock and flow connections

y

Type: RealOutput

Description: Output of current rate of flow

y1

Type: RealOutput

Description: Output of current rate of flow

u

Type: RealInput

Description: Setpoint input for controller

Components (5)

modelSettings

Type: ModelSettings

Description: Setting important global variables within a model

onOff

Type: PulseInput

Description: Generate pulse or pulse-train signal of real input

permanent

Type: ConstantConverter

Description: A constant value is turned into a constant signal

setpoint

Type: RampInput

Description: Ramp input determining the setpoint

currentValue

Type: FlowPortSensor

Description: Current value of connected stock

Extended by (2)

PID_Control

BusinessSimulation.CausalLoop

Directly influencing a stock to keep it at setpoint value

SimpleControl

BusinessSimulation.CausalLoop

Directly influencing a stock to keep it at setpoint value

Revisions

  • Moved check for offTime <= onTime to an assert statement as to prevent the min attribute to be set by a parameter with fixed = false in v2.1.0.