Package Modelica.​StateGraph.​Examples.​Utilities
Utility components for the examples

Information

This icon indicates a package containing utility classes.

Extends from Modelica.​Icons.​UtilitiesPackage (Icon for utility packages).

Package Contents

NameDescription
CompositeStepState machine demonstrating a composite step (used in StateGraph.Examples.ShowCompositeStep)
CompositeStep1Composite step used to demonstrate exceptions (in StateGraph.Examples.ShowExceptions)
CompositeStep2Composite step used to demonstrate exceptions (in StateGraph.Examples.ShowExceptions)
Inflow1Inflow connector (this is a copy from Isolde Dressler's master thesis project)
Inflow2Inflow connector (this is a copy from Isolde Dressler's master thesis project)
MakeProductState machine defining the time instants when to fill or empty a tank
Outflow1Outflow connector (this is a copy from Isolde Dressler's master thesis project)
Outflow2Outflow connector (this is a copy from Isolde Dressler's master thesis project)
SourceSimple source model (this is a copy from Isolde Dressler's master thesis project)
TankSimple tank model (this is a copy from Isolde Dressler's master thesis project)
TankControllerController for tank system
valveSimple valve model (this is a copy from Isolde Dressler's master thesis project)

Model Modelica.​StateGraph.​Examples.​Utilities.​TankController
Controller for tank system

Extends from Modelica.​StateGraph.​Interfaces.​PartialStateGraphIcon (Icon for a StateGraph object).

Parameters

TypeNameDefaultDescription
SetRealParameterlimit0.98Limit level of tank 1
SetRealParameterwaitTime3Wait time

Connectors

TypeNameDescription
input BooleanInputstart 
input BooleanInputstop 
input BooleanInputshut 
input RealInputlevel1 
input RealInputlevel2 
output BooleanOutputvalve1 
output BooleanOutputvalve2 
output BooleanOutputvalve3 

Model Modelica.​StateGraph.​Examples.​Utilities.​MakeProduct
State machine defining the time instants when to fill or empty a tank

Extends from Modelica.​StateGraph.​PartialCompositeStep (Superclass of a subgraph, i.e., a composite step that has internally a StateGraph).

Parameters

TypeNameDefaultDescription
IntegernSuspend1Number of suspend ports
IntegernResume1Number of resume ports
SetRealParameterlimit0.98Limit level of tank 1
SetRealParameterwaitTime3Wait time

Connectors

TypeNameDescription
Step_ininPort 
Step_outoutPort 
CompositeStep_suspendsuspend[nSuspend] 
CompositeStep_resumeresume[nResume] 
input RealInputlevel1 

Connector Modelica.​StateGraph.​Examples.​Utilities.​Inflow1
Inflow connector (this is a copy from Isolde Dressler's master thesis project)

Fields

TypeNameDescription
input VolumeFlowRateFiinflow

Connector Modelica.​StateGraph.​Examples.​Utilities.​Inflow2
Inflow connector (this is a copy from Isolde Dressler's master thesis project)

Fields

TypeNameDescription
output VolumeFlowRateFiinflow

Connector Modelica.​StateGraph.​Examples.​Utilities.​Outflow1
Outflow connector (this is a copy from Isolde Dressler's master thesis project)

Fields

TypeNameDescription
output VolumeFlowRateFooutflow
input Booleanopenvalve open

Connector Modelica.​StateGraph.​Examples.​Utilities.​Outflow2
Outflow connector (this is a copy from Isolde Dressler's master thesis project)

Fields

TypeNameDescription
input VolumeFlowRateFooutflow
output Booleanopenvalve open

Model Modelica.​StateGraph.​Examples.​Utilities.​valve
Simple valve model (this is a copy from Isolde Dressler's master thesis project)

Connectors

TypeNameDescription
input BooleanInputvalveControl 
Inflow2inflow1 
Outflow2outflow1 

Model Modelica.​StateGraph.​Examples.​Utilities.​Tank
Simple tank model (this is a copy from Isolde Dressler's master thesis project)

Parameters

TypeNameDefaultDescription
RealA1Ground area of tank in m^2
Reala0.2Area of drain hole in m^2
Realhmax1Max height of tank in m

Connectors

TypeNameDescription
output RealOutputlevelSensor 
Inflow1inflow1 
Outflow1outflow1 

Model Modelica.​StateGraph.​Examples.​Utilities.​Source
Simple source model (this is a copy from Isolde Dressler's master thesis project)

Parameters

TypeNameDefaultDescription
Realmaxflow1maximal flow out of source

Connectors

TypeNameDescription
Outflow1outflow1 

Model Modelica.​StateGraph.​Examples.​Utilities.​CompositeStep
State machine demonstrating a composite step (used in StateGraph.Examples.ShowCompositeStep)

Extends from Modelica.​StateGraph.​PartialCompositeStep (Superclass of a subgraph, i.e., a composite step that has internally a StateGraph).

Parameters

TypeNameDefaultDescription
IntegernSuspend1Number of suspend ports
IntegernResume1Number of resume ports

Connectors

TypeNameDescription
Step_ininPort 
Step_outoutPort 
CompositeStep_suspendsuspend[nSuspend] 
CompositeStep_resumeresume[nResume] 

Model Modelica.​StateGraph.​Examples.​Utilities.​CompositeStep1
Composite step used to demonstrate exceptions (in StateGraph.Examples.ShowExceptions)

Extends from Modelica.​StateGraph.​PartialCompositeStep (Superclass of a subgraph, i.e., a composite step that has internally a StateGraph).

Parameters

TypeNameDefaultDescription
IntegernSuspend1Number of suspend ports
IntegernResume1Number of resume ports

Connectors

TypeNameDescription
Step_ininPort 
Step_outoutPort 
CompositeStep_suspendsuspend[nSuspend] 
CompositeStep_resumeresume[nResume] 

Model Modelica.​StateGraph.​Examples.​Utilities.​CompositeStep2
Composite step used to demonstrate exceptions (in StateGraph.Examples.ShowExceptions)

Extends from Modelica.​StateGraph.​PartialCompositeStep (Superclass of a subgraph, i.e., a composite step that has internally a StateGraph).

Parameters

TypeNameDefaultDescription
IntegernSuspend1Number of suspend ports
IntegernResume1Number of resume ports
SetRealParameterwaitTime2waiting time in this composite step

Connectors

TypeNameDescription
Step_ininPort 
Step_outoutPort 
CompositeStep_suspendsuspend[nSuspend] 
CompositeStep_resumeresume[nResume]