modelParallel

Example to demonstrate parallel activities described by a petri net

Extends from Modelica.Icons.Example.

Information

This is an example to demonstrate in which way parallel activities can be modelled by a Petri net. When transition "Par1" fires (after 1 second), two branches are executed in parallel. After 6 seconds the two branches are synchronized in order to arrive at place "P6".

Before simulating the model, try to figure out whether branch P2-P3-P5 or branch P2-P4-P5 is executed.

Simulate for 7 seconds and plot the following variables:

  S1state, P1state, P2state, ..., P6state

Components

TypeNameDefaultDescription
BooleanS1state
BooleanP1state
BooleanP2state
BooleanP3state
BooleanP4state
BooleanP5state
BooleanP6state
PetriNets.Place01S1
PetriNets.Place11P1
PetriNets.ParallelPar1
PetriNets.Place12P2
PetriNets.TransitionT1
PetriNets.TransitionT2
PetriNets.Place11P3
PetriNets.TransitionT3
PetriNets.Place11P4
PetriNets.TransitionT4
PetriNets.Place21P5
PetriNets.SynchronizeSync1
PetriNets.Place10P6