-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-simple.toml
More file actions
83 lines (73 loc) · 1.94 KB
/
Copy pathexample-simple.toml
File metadata and controls
83 lines (73 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Minimum viable scenario — 3 stations, 1 line, 1 trainset.
#
# Use this as a starting template for a brand-new city design:
# cp lib/examples/example-simple.toml scenarios/my-city.toml
# # edit my-city.toml to match your network
# cargo run --release --bin osr-sim -- --config scenarios/my-city.toml
#
# Distances are in metres; times are "HH:MM"; headways are in minutes.
[scenario]
name = "Example — 3-station shuttle"
start_time = "07:00"
[climate]
ambient_c = 30.0
peak_sun_hours = 5.0
[[stations]]
id = "west-terminal"
name = "West Terminal"
charging_power_kw = 1000
dwell_seconds = 60
is_terminal = true
[[stations]]
id = "midtown"
name = "Midtown"
charging_power_kw = 500
dwell_seconds = 30
[[stations]]
id = "east-terminal"
name = "East Terminal"
charging_power_kw = 1000
dwell_seconds = 60
is_terminal = true
is_depot = true
[[lines]]
id = "shuttle"
name = "Shuttle"
is_ring = false
stations = [
{ id = "west-terminal", distance_from_prev_m = 0 },
{ id = "midtown", distance_from_prev_m = 2000 },
{ id = "east-terminal", distance_from_prev_m = 2000 },
]
[[fleets]]
line = "shuttle"
trainset_count = 1
dispatch_points = [
{ station = "west-terminal", heading = "forward" },
]
service_start = "06:00"
service_end = "22:00"
schedule = [
{ from = "06:00", to = "22:00", headway_min = 15 },
]
# --- Optional: trackside energy sites ---
#
# Add [[sites]] entries to model PV + battery + grid tie at each charging
# station. Without any sites, charging is treated as free (unlimited).
# A minimum-viable site at each terminal:
[[sites]]
station = "west-terminal"
pv_nameplate_kw = 200
storage_capacity_kwh = 1000
storage_max_charge_kw = 500
storage_max_discharge_kw = 500
grid_import_kw = 300
grid_export_kw = 300
[[sites]]
station = "east-terminal"
pv_nameplate_kw = 500 # larger depot PV array
storage_capacity_kwh = 2000
storage_max_charge_kw = 1000
storage_max_discharge_kw = 1000
grid_import_kw = 500
grid_export_kw = 500