Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Simulating two vessels passing a lock

Simulating two vessels passing a lock

In this notebook, we simulate a lock on a network which two opposingly directed vessels have to pass. We add a pre-coded lock-complex object on the graph: only one vessel can be levelled at a time. The second vessel waits until the first vessel has passed the lock.

0. Import libraries

c:\Users\alpf\Documents\projecten\openTNSim\OpenTNSim\.venv\Lib\site-packages\requests\__init__.py:86: RequestsDependencyWarning:

Unable to find acceptable character detection dependency (chardet or charset_normalizer).

This notebook is executed with OpenTNSim version 1.3.7

1. Define object classes

2. Create graph

Loading...
Loading...

3. Run simulation

Loading...
Loading...

4. Inspect output

'Vessel 1' logbook data:

Loading...
'Vessel 2' logbook data:

Loading...
'Lock' logbook data:

Loading...
Loading...
Loading...
Loading...