eflips-impact 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ {
2
+ "schema_version": 1,
3
+ "battery_types": [
4
+ {
5
+ "vehicle_name_short": "EN",
6
+ "specific_mass": 6.0,
7
+ "chemistry": "lfp"
8
+ },
9
+ {
10
+ "vehicle_name_short": "DD",
11
+ "specific_mass": 6.0,
12
+ "chemistry": "lfp"
13
+ },
14
+ {
15
+ "vehicle_name_short": "GN",
16
+ "specific_mass": 6.0,
17
+ "chemistry": "lfp"
18
+ }
19
+ ],
20
+ "charging_point_types": [
21
+ {
22
+ "type": "depot",
23
+ "name": "Depot Charging Point",
24
+ "name_short": "DCS"
25
+ },
26
+ {
27
+ "type": "opportunity",
28
+ "name": "Opportunity Charging Point",
29
+ "name_short": "OCS"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,273 @@
1
+ {
2
+ "schema_version": 1,
3
+ "metadata": {
4
+ "ecoinvent_version": "3.9.1",
5
+ "lcia_method_set": "EF 3.1",
6
+ "description": "Filled strictly from bus_results.json",
7
+ "created_at": "2026-05-05T00:00:00Z",
8
+ "eta_avail": 0.9
9
+ },
10
+ "vehicle_production": {
11
+ "chassis_per_kg": {
12
+ "gwp": 7.1450240595,
13
+ "pm": 0.0130150898,
14
+ "pocp": 0.0165275622,
15
+ "ap": 0.0241323025,
16
+ "ep_freshwater": 0.0032166873,
17
+ "ep_marine": 0.0002458706,
18
+ "fuel": 1.8687034456,
19
+ "water": 0.0416410873
20
+ },
21
+ "electric_motor_per_kg": {
22
+ "gwp": 10.4222178848,
23
+ "pm": 0.0396204048,
24
+ "pocp": 0.0369665863,
25
+ "ap": 0.1049725031,
26
+ "ep_freshwater": 0.0078134135,
27
+ "ep_marine": 0.0003415405,
28
+ "fuel": 2.5539152597,
29
+ "water": 0.0632562358
30
+ },
31
+ "diesel_motor_per_unit": {
32
+ "gwp": 7119.8812502713,
33
+ "pm": 28.0884617065,
34
+ "pocp": 26.7830224941,
35
+ "ap": 70.987127361,
36
+ "ep_freshwater": 5.4776513498,
37
+ "ep_marine": 0.1185370059,
38
+ "fuel": 2002.9892693572,
39
+ "water": 38.6406873115
40
+ },
41
+ "diesel_motor_mass_kg": 1900
42
+ },
43
+ "battery": {
44
+ "lfp_production_per_kg": {
45
+ "gwp": 14.3224443242,
46
+ "pm": 0.0598533228,
47
+ "pocp": 0.0421623622,
48
+ "ap": 0.2127094264,
49
+ "ep_freshwater": 0.0061575681,
50
+ "ep_marine": 0.0007618472,
51
+ "fuel": 4.002192663,
52
+ "water": 0.094345349
53
+ },
54
+ "lfp_eol_transport_per_kg": {
55
+ "gwp": 0.6391297263,
56
+ "pm": 0.0004834968,
57
+ "pocp": 0.001006088,
58
+ "ap": 0.0007968881,
59
+ "ep_freshwater": 6.55958e-05,
60
+ "ep_marine": 1.73898e-05,
61
+ "fuel": 0.2030243693,
62
+ "water": 0.0009558494
63
+ },
64
+ "lfp_eol_disassembly_per_kg": {
65
+ "gwp": -0.2070739303,
66
+ "pm": -0.0786541299,
67
+ "pocp": 0.0053780256,
68
+ "ap": -0.2694058471,
69
+ "ep_freshwater": 0.0004983863,
70
+ "ep_marine": -1.57095e-05,
71
+ "fuel": -0.0427856118,
72
+ "water": -0.0079487565
73
+ },
74
+ "nmc_production_per_kg": {
75
+ "gwp": 20.1705783869,
76
+ "pm": 0.0628558404,
77
+ "pocp": 0.0324743284,
78
+ "ap": 0.1560246564,
79
+ "ep_freshwater": 0.0129088056,
80
+ "ep_marine": 0.0026767478,
81
+ "fuel": 6.2067875133,
82
+ "water": 1.2358116285
83
+ },
84
+ "nmc_eol_transport_per_kg": {
85
+ "gwp": 0.6391297263,
86
+ "pm": 0.0004834968,
87
+ "pocp": 0.001006088,
88
+ "ap": 0.0007968881,
89
+ "ep_freshwater": 6.55958e-05,
90
+ "ep_marine": 1.73898e-05,
91
+ "fuel": 0.2030243693,
92
+ "water": 0.0009558494
93
+ },
94
+ "nmc_eol_disassembly_per_kg": {
95
+ "gwp": -0.1142217733,
96
+ "pm": -0.0766256035,
97
+ "pocp": 0.0054840343,
98
+ "ap": -0.2626756459,
99
+ "ep_freshwater": 0.0005177394,
100
+ "ep_marine": -1.31525e-05,
101
+ "fuel": -0.0230062619,
102
+ "water": -0.007259187
103
+ },
104
+ "lifetime_years": 8
105
+ },
106
+ "use_phase": {
107
+ "electricity_per_kwh_by_year": {
108
+ "2023": {
109
+ "gwp": 0.1353671996,
110
+ "pm": -1.1765e-06,
111
+ "pocp": 0.000195864,
112
+ "ap": 0.0001231612,
113
+ "ep_freshwater": 0.0002881545,
114
+ "ep_marine": 1.70305e-05,
115
+ "fuel": 0.0302964784,
116
+ "water": 0.0009248269
117
+ },
118
+ "2030": {
119
+ "gwp": 0.0696828874,
120
+ "pm": 1.71883e-05,
121
+ "pocp": 9.77794e-05,
122
+ "ap": 6.91517e-05,
123
+ "ep_freshwater": 4.88415e-05,
124
+ "ep_marine": 2.9633e-06,
125
+ "fuel": 0.0203403371,
126
+ "water": 0.0003027604
127
+ },
128
+ "2050": {
129
+ "gwp": 0.0261391939,
130
+ "pm": 1.21063e-05,
131
+ "pocp": 4.93151e-05,
132
+ "ap": 3.81175e-05,
133
+ "ep_freshwater": 2.13471e-05,
134
+ "ep_marine": 1.3551e-06,
135
+ "fuel": 0.0070978087,
136
+ "water": 0.0001819775
137
+ }
138
+ },
139
+ "diesel_per_kg": {
140
+ "gwp": 3.8873023404,
141
+ "pm": 0.0025506822,
142
+ "pocp": 0.0152835829,
143
+ "ap": 0.008266563,
144
+ "ep_freshwater": -0.0005457298,
145
+ "ep_marine": 0.0006972338,
146
+ "fuel": 1.174965882,
147
+ "water": 0.0010879872
148
+ },
149
+ "efficiency_mv_to_lv": 0.99,
150
+ "efficiency_lv_ac_to_dc": 0.95
151
+ },
152
+ "maintenance": {
153
+ "iceb_per_year": {
154
+ "gwp": 2727.3725113174,
155
+ "pm": 1.4247619443,
156
+ "pocp": 4.0515118775,
157
+ "ap": 4.2536221735,
158
+ "ep_freshwater": 1.7563917371,
159
+ "ep_marine": 0.3003767929,
160
+ "fuel": 845.3033828273,
161
+ "water": 17.1228219107
162
+ },
163
+ "beb_per_year": {
164
+ "gwp": 2557.781999876,
165
+ "pm": 1.5140544646,
166
+ "pocp": 3.7768838271,
167
+ "ap": 4.6374171771,
168
+ "ep_freshwater": 1.9245437185,
169
+ "ep_marine": 0.351172717,
170
+ "fuel": 766.0160472554,
171
+ "water": 17.4877028381
172
+ },
173
+ "beb_maintenance_reduction_factor": 0.75
174
+ },
175
+ "charging_infrastructure": {
176
+ "control_unit_production_per_unit": {
177
+ "gwp": 1345.9444964049,
178
+ "pm": 18.0932046309,
179
+ "pocp": 10.7049633521,
180
+ "ap": 62.1398915436,
181
+ "ep_freshwater": -0.640240224,
182
+ "ep_marine": -0.025868672,
183
+ "fuel": 364.5624892555,
184
+ "water": 3.2271508923
185
+ },
186
+ "control_unit_eol_per_unit": {
187
+ "gwp": -695.6806515338,
188
+ "pm": -3.8086274076,
189
+ "pocp": -3.5434483822,
190
+ "ap": -12.2032120932,
191
+ "ep_freshwater": -0.6745872323,
192
+ "ep_marine": -0.0124930974,
193
+ "fuel": -166.475652966,
194
+ "water": -3.0624258115
195
+ },
196
+ "user_unit_production_per_unit": {
197
+ "gwp": 1103.5697420832,
198
+ "pm": 8.3891756795,
199
+ "pocp": 5.2934279549,
200
+ "ap": 24.807719031,
201
+ "ep_freshwater": 0.1623554265,
202
+ "ep_marine": 0.0088622687,
203
+ "fuel": 378.5719232999,
204
+ "water": 6.3381681756
205
+ },
206
+ "user_unit_eol_per_unit": {
207
+ "gwp": -575.5520046697,
208
+ "pm": -2.1062698977,
209
+ "pocp": -2.1443792511,
210
+ "ap": -5.6540243026,
211
+ "ep_freshwater": -0.4347275205,
212
+ "ep_marine": -0.0155945266,
213
+ "fuel": -218.6949472794,
214
+ "water": -4.9965202021
215
+ },
216
+ "power_unit": {
217
+ "ref_power_kw": 350,
218
+ "production_per_unit": {
219
+ "gwp": 6103.5150927163,
220
+ "pm": 88.7660796321,
221
+ "pocp": 52.1822194765,
222
+ "ap": 309.0006819978,
223
+ "ep_freshwater": -3.5354640772,
224
+ "ep_marine": -0.1454028451,
225
+ "fuel": 1618.5270535389,
226
+ "water": 12.9151295387
227
+ },
228
+ "eol_per_unit": {
229
+ "gwp": -1586.3434417575,
230
+ "pm": -15.0129738261,
231
+ "pocp": -12.6199610485,
232
+ "ap": -52.3884489456,
233
+ "ep_freshwater": -2.6246336265,
234
+ "ep_marine": -0.0099295108,
235
+ "fuel": -408.4318346679,
236
+ "water": -3.8301140032
237
+ }
238
+ },
239
+ "transformer": {
240
+ "ref_power_kw": 315.0,
241
+ "production_per_unit": {
242
+ "gwp": 8100.000000000007,
243
+ "pm": 18.580645161290313,
244
+ "pocp": 22.027913232601538,
245
+ "ap": 58.602150537634465,
246
+ "ep_freshwater": 2.933333333333336,
247
+ "ep_marine": 6.000000000000005,
248
+ "fuel": 3440.8602150537668,
249
+ "water": 3965.25
250
+ },
251
+ "eol_per_unit": {
252
+ "gwp": -0.0,
253
+ "pm": -1.300645161290322,
254
+ "pocp": -1.5419539262821078,
255
+ "ap": -4.1021505376344125,
256
+ "ep_freshwater": -0.733333333333334,
257
+ "ep_marine": -0.6000000000000005,
258
+ "fuel": -240.86021505376368,
259
+ "water": 1.56
260
+ }
261
+ },
262
+ "concrete_per_m3": {
263
+ "gwp": 307.953,
264
+ "pm": 0.298,
265
+ "pocp": 1.801,
266
+ "ap": 0.684,
267
+ "ep_freshwater": 0.037,
268
+ "ep_marine": 0.003,
269
+ "fuel": 48.306,
270
+ "water": 2.677
271
+ }
272
+ }
273
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "schema_version": 1,
3
+ "year": 2025,
4
+ "vehicle_type_overrides": [
5
+ {
6
+ "name_short": "EN",
7
+ "motor_rated_power_kw": 200.0,
8
+ "motor_power_to_weight_ratio_kw_per_kg": 1.5,
9
+ "vehicle_lifetime_years": 12.0,
10
+ "average_consumption_kwh_per_km": 1.48,
11
+ "diesel_consumption_kg_per_km": null
12
+ },
13
+ {
14
+ "name_short": "DD",
15
+ "motor_rated_power_kw": 300.0,
16
+ "motor_power_to_weight_ratio_kw_per_kg": 1.5,
17
+ "vehicle_lifetime_years": 12.0,
18
+ "average_consumption_kwh_per_km": 2.16,
19
+ "diesel_consumption_kg_per_km": null
20
+ },
21
+ {
22
+ "name_short": "GN",
23
+ "motor_rated_power_kw": 250.0,
24
+ "motor_power_to_weight_ratio_kw_per_kg": 1.5,
25
+ "vehicle_lifetime_years": 12.0,
26
+ "average_consumption_kwh_per_km": 2.16,
27
+ "diesel_consumption_kg_per_km": null
28
+ }
29
+ ],
30
+ "charging_point_type_overrides": [
31
+ {
32
+ "type": "depot",
33
+ "infrastructure_lifetime_years": 20.0
34
+ },
35
+ {
36
+ "type": "opportunity",
37
+ "infrastructure_lifetime_years": 20.0,
38
+ "foundation_volume_per_point_m3": 3.96
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,113 @@
1
+ {
2
+ "scenario": {
3
+ "project_duration": 20,
4
+ "interest_rate": 0.04,
5
+ "inflation_rate": 0.02,
6
+ "staff_cost": 25.0,
7
+ "fuel_cost": {"diesel": 1.0, "electricity": 0.1794},
8
+ "vehicle_maint_cost": {"diesel": 0.5, "electricity": 0.35},
9
+ "infra_maint_cost": 1000.0,
10
+ "cost_escalation_rate": {
11
+ "general": 0.02,
12
+ "staff": 0.025,
13
+ "diesel": 0.0,
14
+ "electricity": 0.038,
15
+ "insurance": 0.02
16
+ },
17
+ "insurance": 9693.0,
18
+ "taxes": 278.0,
19
+ "eta_avail": 0.9
20
+ },
21
+ "vehicle_types": [
22
+ {
23
+ "name_short": "EN",
24
+ "useful_life": 14,
25
+ "procurement_cost": 580000.0,
26
+ "cost_escalation": -0.02,
27
+ "average_electricity_consumption": 1.48
28
+ },
29
+ {
30
+ "name_short": "DD",
31
+ "useful_life": 14,
32
+ "procurement_cost": 780000.0,
33
+ "cost_escalation": -0.02,
34
+ "average_electricity_consumption": 2.16
35
+ },
36
+ {
37
+ "name_short": "GN",
38
+ "useful_life": 14,
39
+ "procurement_cost": 780000.0,
40
+ "cost_escalation": -0.02,
41
+ "average_electricity_consumption": 2.16
42
+ },
43
+ {
44
+ "name_short": "Diesel EN",
45
+ "useful_life": 14,
46
+ "procurement_cost": 275000.0,
47
+ "cost_escalation": 0.02,
48
+ "average_diesel_consumption": 0.449
49
+ },
50
+ {
51
+ "name_short": "Diesel DD",
52
+ "useful_life": 14,
53
+ "procurement_cost": 330000.0,
54
+ "cost_escalation": 0.02,
55
+ "average_diesel_consumption": 0.589
56
+ },
57
+ {
58
+ "name_short": "Diesel GN",
59
+ "useful_life": 14,
60
+ "procurement_cost": 510000.0,
61
+ "cost_escalation": 0.02,
62
+ "average_diesel_consumption": 0.589
63
+ }
64
+ ],
65
+ "battery_types": [
66
+ {
67
+ "vehicle_name_short": "EN",
68
+ "procurement_cost": 190,
69
+ "useful_life": 7,
70
+ "cost_escalation": -0.03
71
+ },
72
+ {
73
+ "vehicle_name_short": "DD",
74
+ "procurement_cost": 190,
75
+ "useful_life": 7,
76
+ "cost_escalation": -0.03
77
+ },
78
+ {
79
+ "vehicle_name_short": "GN",
80
+ "procurement_cost": 190,
81
+ "useful_life": 7,
82
+ "cost_escalation": -0.03
83
+ }
84
+ ],
85
+ "charging_point_types": [
86
+ {
87
+ "type": "depot",
88
+ "procurement_cost": 119899.50,
89
+ "useful_life": 20,
90
+ "cost_escalation": 0.02
91
+ },
92
+ {
93
+ "type": "opportunity",
94
+ "procurement_cost": 299748.74,
95
+ "useful_life": 20,
96
+ "cost_escalation": 0.02
97
+ }
98
+ ],
99
+ "charging_infrastructure": [
100
+ {
101
+ "type": "depot",
102
+ "procurement_cost": 2397989.95,
103
+ "useful_life": 20,
104
+ "cost_escalation": 0.02
105
+ },
106
+ {
107
+ "type": "station",
108
+ "procurement_cost": 269773.87,
109
+ "useful_life": 20,
110
+ "cost_escalation": 0.02
111
+ }
112
+ ]
113
+ }
@@ -0,0 +1,57 @@
1
+ """eflips-lca: Life Cycle Assessment for eFLIPS bus simulations.
2
+
3
+ Calculates per-revenue-km environmental impacts of electric (BEB) and
4
+ diesel (ICEB) bus fleets across their full life cycle, following
5
+ ISO 14040/14044.
6
+ """
7
+
8
+ from eflips.impact.lca.calculation import calculate_lca
9
+ from eflips.impact.lca.dataclasses import (
10
+ BatteryTypeLCAParams,
11
+ ChargingPointTypeLCAParams,
12
+ ItemType,
13
+ LCAItem,
14
+ LCAResult,
15
+ LCAScope,
16
+ VehicleTypeLCAParams,
17
+ )
18
+ from eflips.impact.utils.extraction import (
19
+ AreaSimData,
20
+ ScenarioSimData,
21
+ StationSimData,
22
+ VehicleTypeSimData,
23
+ extract_simulation_data,
24
+ )
25
+ from eflips.impact.lca.open_lca_data import (
26
+ ChargingPointTypeOverrides,
27
+ OpenLCAData,
28
+ VehicleTypeOverrides,
29
+ YearSeries,
30
+ init_lca_params,
31
+ populate_lca_parameters_from_data,
32
+ )
33
+ from eflips.impact.lca.util import DefaultImpactVector, ImpactVector
34
+
35
+ __all__ = [
36
+ "ImpactVector",
37
+ "DefaultImpactVector",
38
+ "VehicleTypeLCAParams",
39
+ "BatteryTypeLCAParams",
40
+ "ChargingPointTypeLCAParams",
41
+ "LCAItem",
42
+ "LCAResult",
43
+ "LCAScope",
44
+ "ItemType",
45
+ "ScenarioSimData",
46
+ "VehicleTypeSimData",
47
+ "AreaSimData",
48
+ "StationSimData",
49
+ "extract_simulation_data",
50
+ "calculate_lca",
51
+ "OpenLCAData",
52
+ "YearSeries",
53
+ "VehicleTypeOverrides",
54
+ "ChargingPointTypeOverrides",
55
+ "init_lca_params",
56
+ "populate_lca_parameters_from_data",
57
+ ]