-
Notifications
You must be signed in to change notification settings - Fork 1
/
ev_model.js
125 lines (123 loc) · 3.25 KB
/
ev_model.js
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
const minChargeAtDestinationInkWh = 20;
const minChargeAtChargingStopsInkWh = 20;
const consumptionModel = {
vehicleWeight: 1900,
accelerationEfficiency: 0.66,
decelerationEfficiency: 0.91,
uphillEfficiency: 0.74,
downhillEfficiency: 0.73,
constantSpeedConsumptionInkWhPerHundredkm: [ [ 100, 20.09 ] ],
currentChargeInkWh: 100,
maxChargeInkWh: 100,
auxiliaryPowerInkW: 1.7
};
const chargingModes = [
{
"chargingConnections": [
{
"facilityType": "Charge_200_to_480V_Direct_Current_at_255A_120kW",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_380_to_480V_3_Phase_at_63A",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_50_to_500V_Direct_Current_at_125A_50kW",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_50_to_500V_Direct_Current_at_62A_25kW",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_50_to_500V_Direct_Current_at_62A_25kW",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_50_to_500V_Direct_Current_at_125A_50kW",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_380_to_480V_3_Phase_at_63A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_380_to_480V_3_Phase_at_32A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_380_to_480V_3_Phase_at_16A",
"plugType": "SAE_J1772"
}
],
"chargingCurve":[
{
"chargeInkWh":50,
"timeToChargeInSeconds":1200
},
{
"chargeInkWh":80,
"timeToChargeInSeconds":2400
},
{
"chargeInkWh":100,
"timeToChargeInSeconds":4500
}
]
},
{
"chargingConnections": [
{
"facilityType": "Charge_380_to_480V_3_Phase_at_32A",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_100_to_120V_1_Phase_at_16A",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_200_to_240V_1_Phase_at_32A",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_200_to_240V_1_Phase_at_16A",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_200_to_240V_3_Phase_at_32A",
"plugType": "Tesla_Connector"
},
{
"facilityType": "Charge_200_to_240V_1_Phase_at_12A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_200_to_240V_1_Phase_at_32A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_200_to_240V_1_Phase_at_10A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_200_to_240V_3_Phase_at_32A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_200_to_240V_1_Phase_at_16A",
"plugType": "SAE_J1772"
},
{
"facilityType": "Charge_100_to_120V_1_Phase_at_16A",
"plugType": "SAE_J1772"
}
],
"chargingCurve": [
{
"chargeInkWh": 100,
"timeToChargeInSeconds": 90000
}
]
}
];