Acceleration Test module¶
t3co.objectives.accel
¶
Module for simulating acceleration performance.
PHEV = 365
module-attribute
¶
init_socs = [i for i in np.linspace(v.min_soc, v.max_soc, 10)]
module-attribute
¶
scenario_inputs_path = Path(gl.T3CO_INPUTS_DIR / 'tda_example/TDA_FY22_scenario_assumptions.csv').resolve()
module-attribute
¶
v = run_scenario.get_vehicle(PHEV, vehicle_input_path)
module-attribute
¶
vehicle_input_path = Path(gl.T3CO_INPUTS_DIR / 'tda_example/TDA_FY22_vehicle_model_assumptions.csv').resolve()
module-attribute
¶
zero_to_sixties = []
module-attribute
¶
get_accel(analysis_vehicle: fastsim.vehicle.Vehicle, scenario: run_scenario.Scenario = None, set_weight_to_max_kg: bool = True, verbose=False, ess_init_soc=None) -> Tuple[float, float, fastsim.vehicle.Vehicle]
¶
This function runs a simdrive for getting 0-to-60 and 0-30 mph time with fully laden weight at GVWR (plus gvwr_credit_kg?)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
analysis_vehicle
|
fastsim.vehicle.Vehicle
|
FASTSim vehicle object for analysis vehicle |
required |
scenario
|
run_scenario.Scenario
|
Scenario object for current selection. Defaults to None. |
None
|
set_weight_to_max_kg
|
bool
|
if True, runs run_scenario.set_test_weight(). Defaults to True. |
True
|
verbose
|
bool
|
if True, prints the process steps. Defaults to False. |
False
|
ess_init_soc
|
float
|
ESS initial SOC override. Defaults to None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
zero_to_sixty |
float
|
0-60 mph acceleration time in sec |
zero_to_thirty |
float
|
0-30 mph acceleration time in sec |
accel_simdrive |
fastsim.simdrive.SimDrive
|
FASTSim.simdrive.SimDrive object for running the acceleration drivecycle |
Source code in t3co/objectives/accel.py
Python | |
---|---|
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 |
|