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

TypeNameDefaultDescription
SetpointTypeinitialSetpointSetpoint valid from modelStartTime to startTime
SetpointTypefinalSetpointFinal setpoint valid from startTime + duration until the end of the simulation
TimestartTimemodelSettings.modelStartTimeStart time for change of setpoint
TimedurationmodelSettings.modelTimeHorizonTime until final setpoint is reached
Structural Parameters
BooleanhasRateOutput (from FlowPort)false= true, if the rate is reported via real output connectors
BooleanhasExogenousSetpointfalse= true, if the setpoint is to be given by an input connector
Timing
TimingChoicestc (from TimedSource)TimingChoices.permanentSelect whether contoll is permanent or timed
TimeonTime (from TimedSource)modelSettings.modelStartTimeTime for component to become effective
TimeoffTime (from TimedSource)modelSettings.modelTimeHorizonTime for component to become ineffective

Connectors

TypeNameDefaultDescription
FlowPortflowPort (from FlowPort)Used to represent stock and flow connections
Connectors.RealInputuSetpoint input for controller

Components

TypeNameDefaultDescription
RealOutputy (from FlowPort)Output of current rate of flow
RealOutputy1 (from FlowPort)Output of current rate of flow
ModelSettingsmodelSettings (from TimedSource)

Contents

NameDescription
SetpointType

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.