2021-12-10 18:30:08 +01:00
|
|
|
#!/usr/bin/env julia
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
# __julia-version__ = 1.7.0
|
|
|
|
# __author__ = "Max Kannenberg"
|
|
|
|
# __copyright__ = "2021"
|
|
|
|
# __license__ = "ISC"
|
|
|
|
|
2021-12-08 13:35:25 +01:00
|
|
|
include("../src/TrainRun.jl")
|
|
|
|
using .TrainRun
|
|
|
|
|
2022-01-18 13:39:51 +01:00
|
|
|
train_directory = "data/trains/train_freight_V90withOreConsist.yaml"
|
|
|
|
running_path_directory = "data/paths/path_1_10km_nConst_vConst.yaml"
|
|
|
|
setting_directory = "data/settings.yaml"
|
|
|
|
(train, running_path, settings) = importYamlFiles(train_directory, running_path_directory, setting_directory)
|
2021-10-13 16:49:42 +02:00
|
|
|
|
2021-12-13 12:24:56 +01:00
|
|
|
train_run = calculateDrivingDynamics(train, running_path, settings)
|
2022-01-19 01:40:48 +01:00
|
|
|
runtime = train_run[:movingSectionMinimumRunningTime][:t]
|
2021-12-08 13:35:25 +01:00
|
|
|
|
2022-01-20 13:37:55 +01:00
|
|
|
exportToCsv(train_run)
|
2021-12-13 12:24:56 +01:00
|
|
|
println("The V 90 with 10 ore wagons needs $runtime seconds for 10 km with no gradient.")
|