9. Schemas¶
The JSON-schema instances or inputs & outputs of this project, rendered below, are contained in the wltp/data-schema.yaml YAML document.
9.1. Inputs& outputs of the WLTP gear-shit generator.¶
The vehicle attributes required for generating the WLTC velocity-profile downscaling and gear-shifts.
/data |
||||
type |
object |
|||
properties |
||||
|
Any identifier for the object |
|||
type |
integer / string |
|||
|
vehicle unladen mass |
|||
The mass (kg) of the vehicle without the driver, used to decide its class, as defined in Annex-4 |
||||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
The test mass of the vehicle used in all calculations, as defined in Annex 4.2.1.3.1, pg 94. |
|||
units |
|
|||
tags |
|
|||
|
maximum vehicle velocity |
|||
(OUT) The calculated maximum velocity, as defined in Annex 2-2.i. |
||||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
|
engine speed for maximum vehicle velocity |
|||
(OUT) The engine speed for |
||||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
gear for maximum vehicle velocity |
|||
(OUT) The gear for achieving |
||||
type |
number |
|||
exclusiveMinimum |
0 |
|||
|
maximum rated power |
|||
The maximum rated engine power as declared by the manufacturer. |
||||
units |
|
|||
tags |
|
|||
|
rated engine revolutions |
|||
The rated engine revolutions at which an engine develops its maximum power. If the maximum power is developed over an engine revolutions range, it is determined by the mean of this range. |
||||
units |
|
|||
tags |
|
|||
|
idling revolutions |
|||
The idling engine revolutions (Annex 1). |
||||
units |
|
|||
tags |
|
|||
|
Minimum engine revolutions: either a number with the minimum engine revolutions
for gears > 2 when the vehicle is in motion, or an array with
the exact If unspecified, the minimum n_min = n_idle + f_n_min(=0.125) * (n_rated - n_idle)
Higher values may be used if requested by the manufacturer, by setting this one. |
|||
type |
array / number |
|||
units |
|
|||
tags |
|
|||
|
(optional) maximum engine speed limit |
|||
units |
|
|||
tags |
|
|||
|
Just an artifact of the calculation of |
|||
units |
|
|||
tags |
|
|||
|
The |
|||
units |
|
|||
tags |
|
|||
|
The |
|||
units |
|
|||
tags |
|
|||
|
The |
|||
units |
|
|||
tags |
|
|||
|
N-to-V ratios |
|||
An array with the gear-ratios obtained by dividing engine-revolutions |
||||
units |
|
|||
tags |
|
|||
|
driving resistance coefficient f0 |
|||
The driving resistance coefficient f0 (Annex 4). |
||||
type |
number |
|||
units |
|
|||
tags |
|
|||
|
driving resistance coefficient f1 |
|||
The driving resistance coefficient f1 (Annex 4). |
||||
type |
number |
|||
units |
|
|||
tags |
|
|||
|
driving resistance coefficient f2 |
|||
The driving resistance coefficient f2 (Annex 4). |
||||
type |
number |
|||
units |
|
|||
tags |
|
|||
|
[1/min], see Annex 2-2.k, n_min for gear 1 |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k, calculated minimum engine speed for gears > 2: n_min_drive = n_idle + 0.125 (n_rated - n_idle)
Do not override this, its value will be ignored. Set higher values only into parameters n_min_drive_up/down. Matlab call this |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
[1/min], Annex 2-2.k |
|||
type |
number |
|||
exclusiveMinimum |
0 |
|||
units |
|
|||
tags |
|
|||
|
see Annex 2-2.k about n_mins |
|||
type |
number |
|||
minimum |
0 |
|||
default |
0 |
|||
units |
|
|||
tags |
|
|||
|
Wide open throttle curves: an array/dict/dataframe holding the full load power curves for (at least) 2 columns (‘n’, ‘p’) or the normalized values (‘n_norm’, ‘p_norm’).
Example: np.array([
[ 600, 1000, ... 7000 ],
[ 4, 10, ... 30 ]
]).T
Normalized N/P Example: np.array([
[ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120 ],
[ 6.11, 21.97, 37.43, 51.05, 62.61, 72.49, 81.13, 88.7, 94.92, 98.99, 100., 96.28, 87.66 ]
]).T
|
|||
type |
object / array |
|||
|
A dataframe with 2-level columns for p-available (item, gear) and p-required:
|
|||
|
Power/unladen-Mass ratio. |
|||
type |
number |
|||
units |
|
|||
|
The name (or index0) of the WLTC-class (found within WLTC-data/classes) as selected by the experiment. |
|||
type |
integer / string |
|||
enum |
class1, class2, class3a, class3b, 0, 1, 2, 3 |
|||
|
Regression curve factors for calculating vehicle’s |
|||
type |
array |
|||
items |
type |
array |
||
items |
type |
number |
||
maxItems |
2 |
|||
minItems |
2 |
|||
maxItems |
3 |
|||
minItems |
3 |
|||
|
Downscale-factor threshold |
|||
The limit for the calculated |
||||
type |
number |
|||
default |
0.01 |
|||
tags |
|
|||
|
Downscale-factor rounding decimals |
|||
type |
number |
|||
default |
3 |
|||
tags |
|
|||
|
Driver’s mass (kg) |
|||
The mass (kg) of the vehicle’s driver (Annex 1-3.2.6, p9), where: Unladen_mass = Test_mass - driver_mass
|
||||
type |
number |
|||
default |
75 |
|||
units |
|
|||
tags |
|
|||
|
Velocity under which (<=) to idle gear-shift (Annex 2-3.3, p71). |
|||
type |
number |
|||
default |
1 |
|||
units |
|
|||
tags |
|
|||
|
This is the |
|||
type |
number |
|||
default |
1.03 |
|||
tags |
|
|||
|
Safety-margin(SM) factor for load-curve (Annex 2-3.4). |
|||
type |
number |
|||
default |
0.1 |
|||
tags |
|
|||
|
For each gear > 2, |
|||
type |
number |
|||
default |
0.125 |
|||
units |
|
|||
tags |
|
|||
|
Gear-2 is invalid when |
|||
type |
number |
|||
default |
0.9 |
|||
units |
|
|||
tags |
|
|||
|
A 2-value number-array(f1, f2) controlling when to clutch gear-2: N < n_clutch_gear2 := max(f1 * n_idle, f2 * n_range + n_idle),
unless “clutched”… |
|||
type |
array |
|||
default |
1.15 |
|||
0.03 |
||||
units |
|
|||
tags |
|
|||
|
The downscaling-factor as calculated by the experiment (Annex 1-8.3). Set it to 0 to disable downscaling, (or to any other value to force it). |
|||
type |
number |
|||
tags |
|
|||
|
Τhe velocity threshold above which the vehicle is considered as “running”, from drivability rules of Annex 2-4. |
|||
type |
number |
|||
default |
1 |
|||
units |
|
|||
tags |
|
|||
|
The acceleration/constant<–>deceleration threshold for n_mins_up/down (Annex 2-2.k) for the determination of the initial gear & n_mins, according to Annex 2-3.5. |
|||
type |
number |
|||
default |
-0.1389 |
|||
units |
|
|||
tags |
|
|||
|
A flag to suppress shifting to gear-0(idle) during downshifts. |
|||
type |
boolean |
|||
tags |
|
|||
|
A maximum velocity limit that when given and > 0, all |
|||
type |
integer / null |
|||
minimum |
0 |
|||
default |
null |
|||
units |
|
|||
tags |
|
|||
|
Downscaled cycle distance |
|||
units |
|
|||
tags |
|
|||
|
Capped cycle distance |
|||
units |
|
|||
tags |
|
|||
|
the cumulative distance of the compensated cycle |
|||
units |
|
|||
tags |
|
|||
|
An inp/out dataframe matrix with 2-level columns(item, gear),
and items, in addition to those of |
|||
properties |
||||
|
Downscaled velocity raw |
|||
like |
||||
units |
|
|||
tags |
|
|||
|
Downscaled velocity |
|||
Downscaled velocity profile by If not given, the |
||||
units |
|
|||
tags |
|
|||
|
The |
|||
tags |
|
|||
|
The |
|||
units |
|
|||
tags |
|
|||
|
The Acceleration, Annex 2-3.1 |
|||
type |
number |
|||
units |
|
|||
tags |
|
|||
|
Driveability rule phase for the initial accelerating phase of a short trip. |
|||
tags |
|
|||
|
Driveability rule phase for the final decelerating phase of a short trip. |
|||
tags |
|
|||
|
Driveability rule phase for where |
|||
tags |
|
|||
|
Driveability rule phase for where |
|||
tags |
|
|||
|
Driveability rule for acceleration/constant phase in Annex 2-2.k for the determination of the initial gear, according to Annex 2-3.5. for Annex 2-4. |
|||
tags |
|
|||
additionalProperties |
True |
|||
|
wltc |
|||
additionalProperties |
True |
9.1.1. positiveInteger¶
type |
integer |
exclusiveMinimum |
0 |
9.1.2. positiveNumber¶
type |
number |
exclusiveMinimum |
0 |
9.1.3. positiveIntegers¶
type |
array |
items |
9.1.4. positiveNumbers¶
type |
array |
items |
9.1.5. booleans¶
type |
array |
|
items |
type |
boolean |
9.2. WLTC constants & configuration data¶
/wltc |
||
type |
object |
|
properties |
||
|
type |
object |
properties |
||
|
||
|
||
|
||
|
||
additionalProperties |
False |
|
additionalProperties |
False |
9.2.1. WLTC class data¶
type |
object |
|||
properties |
||||
|
PMR (low, high] |
|||
Power_To_unladen-Mass ratio-limits ((low, high], W/kg) used to select classes (Annex 1, p19). |
||||
type |
array |
|||
items |
type |
number |
||
maxItems |
2 |
|||
minItems |
2 |
|||
|
Velocity-limits ([low, high), km/h) within which (<) version-a/b from class3 is selected (Annex 1, p19). |
|||
type |
array |
|||
items |
type |
number |
||
maxItems |
2 |
|||
minItems |
2 |
|||
|
class part lengths |
|||
class part duration, in [sec] |
||||
type |
array |
|||
items |
type |
integer |
||
|
type |
object |
||
properties |
||||
|
triplet (start, tip, end); start & end remain unchanged |
|||
type |
array |
|||
items |
positiveInteger |
|||
additionalItems |
False |
|||
maxItems |
3 |
|||
minItems |
3 |
|||
|
type |
array |
||
items |
type |
integer |
||
additionalItems |
False |
|||
maxItems |
2 |
|||
minItems |
2 |
|||
|
type |
object |
||
properties |
||||
|
type |
number |
||
|
type |
number |
||
|
type |
number |
||
additionalProperties |
False |
|||
|
type |
array |
||
additionalProperties |
False |
|||
|
type |
number |
||
|
type |
array |
||
items |
type |
number |
||
|
type |
array |
||
items |
type |
number |
||
minItems |
906 |
|||
additionalProperties |
False |