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 passing multiple locks

Simulating traffic passing multiple locks

In this notebook, we simulate two locks on a network which vessels from opposing direction shave to pass. Vessels are locked together if they can fit inside the lock, and arrive within the clustering time window.

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...

4. Inspect output

'Lock_1' logbook data:

Loading...
'Lock_2' logbook data:

Loading...

Gantt chart of event table

Loading...
Loading...

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

Loading...
Loading...

Vessel delays: individual delays and overall average

The average vessel delay is 0.0 minutes

Simulated intensity (vessels per hour)

‘get_vessels_during_leveling’:

  • Identify locking cycles (by looking at the lock logbook)

  • From the vessel list identify which vessels were in the lock during that locking cycle

‘calculate_cycle_looptimes’:

  • Using the info derived from ‘get_vessels_during_leveling’ calculate looptimes

‘calculate_detailed_cycle_time’:

  • using the info from ‘get_vessels_during_leveling’ and ‘calculate_cycle_looptimes’ calculate detailed cycle times

Loading...
Loading...
Loading...
Locking cycle 1 has an intensity of 0.69 vessels per hour

Estimated capacity (vessels per hour)

The capacity of the lock is 4.4 vessels per hour
Loading...
Loading...
Loading...