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 traffic around a lock (with hydrodynamics)

Simulating traffic around a lock (with hydrodynamics)

In this notebook, we simulate a lock on a network which two opposingly directed vessels have to pass. We add a pre-coded complex lock object on the graph. Vessels are locked together if they can fit inside the lock, and arrive within the clustering time window. Changing water levels are implemented, which influences the duration of the levelling.

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

'Lock' logbook data:

Loading...

Gantt chart of event table

Loading...
Loading...

Time-distance diagram of vessels passing the lock and planning info

Loading...

Levelling times as a function of water levels

(np.float64(20090.0), np.float64(20090.25))
<Figure size 1200x800 with 1 Axes>
<Figure size 640x480 with 1 Axes>