Gradeability Test module¶
t3co.objectives.gradeability
¶
PHEV = 365
module-attribute
¶
analysis_vehicle = run_scenario.get_vehicle(PHEV, vehicle_input_path)
module-attribute
¶
g6mphachs = []
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 / 'phev-testing/TDA_FY22_scenario_assumptions.csv').resolve()
module-attribute
¶
soc_used = []
module-attribute
¶
v = analysis_vehicle
module-attribute
¶
vehicle_input_path = Path(gl.T3CO_INPUTS_DIR / 'phev-testing/TDA_FY22_vehicle_model_assumptions.csv').resolve()
module-attribute
¶
get_gradeability(analysis_vehicle: fastsim.vehicle.Vehicle, scenario: run_scenario.Scenario = None, verbose: bool = False, ess_init_soc: float = None, set_weight_to_max_kg: bool = True) -> Tuple[float, float, fastsim.simdrive.SimDrive, fastsim.simdrive.SimDrive]
¶
This function runs SimDrives to determine the gradeability at given speed and the grade vehicle is evaluated at how much it meets or exceeds target speed at the target grade.
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
|
verbose
|
bool
|
if True, prints process steps. Defaults to False. |
False
|
ess_init_soc
|
float
|
ESS Initial SOC override. Defaults to None. |
None
|
set_weight_to_max_kg
|
bool
|
if True, run_scenario.set_test_weight() overrides vehice weight to GVWR. Defaults to True. |
True
|
Returns:
Name | Type | Description |
---|---|---|
grade_6percent_mph_ach |
float
|
Achieved speed on 6% grade test |
grade_1pt25percent_mph_ach |
float
|
Achieved speed on 1.25% grade test |
grade_6_simdrive |
fastsim.simdrive.SimDrive
|
FASTSim SimDrive for gradeability test of 6% grade |
grade_1p25_simdrive |
fastsim.simdrive.SimDrive
|
FASTSim SimDrive for gradeability test of 1.25% grade |
Source code in t3co/objectives/gradeability.py
Python | |
---|---|
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 126 127 128 129 130 131 132 133 134 135 |
|