Energy Sub-Module
t3co.energy_models.energy
Energy
dataclass
Source code in src/t3co/energy_models/energy.py
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 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
__new__(*args, **kwargs)
Creates a new instance of the Energy class.
Source code in src/t3co/energy_models/energy.py
34 35 36 37 38 39 | |
__init__(mpgge=None, primary_fuel_range_mi=None)
Initializes the Energy instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mpgge |
float
|
Miles per gallon gasoline equivalent. Defaults to None. |
None
|
primary_fuel_range_mi |
float
|
Primary fuel range in miles. Defaults to None. |
None
|
Source code in src/t3co/energy_models/energy.py
41 42 43 44 45 46 47 48 49 50 51 | |
run_fastsim_model(veh_no, scenario, t3co_vehicle=None, vehicle_df=None, vehicle_file=gl.RESOURCES_FOLDERPATH / 'inputs' / 'Demo_FY22_vehicle_model_assumptions.csv')
Runs the FASTSim model to calculate mpgge and primary fuel range.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
veh_no |
int
|
Vehicle selection number. |
required |
scenario |
Scenario
|
Scenario instance containing configuration data. |
required |
vehicle_file |
Union[str, Path]
|
Vehicle model assumptions input CSV file path. Defaults to gl.RESOURCES_FOLDERPATH / "inputs" / "Demo_FY22_vehicle_model_assumptions.csv". |
RESOURCES_FOLDERPATH / 'inputs' / 'Demo_FY22_vehicle_model_assumptions.csv'
|
Source code in src/t3co/energy_models/energy.py
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 | |
run_range_test(vehicle, scenario)
Runs the range test and updates the energy object with results.
Source code in src/t3co/energy_models/energy.py
86 87 88 89 90 91 92 93 94 95 | |
run_acceleration_test(vehicle, scenario, set_weight_to_max_kg=True, verbose=False)
Runs the acceleration test and updates the energy object with results.
Source code in src/t3co/energy_models/energy.py
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 136 137 138 139 | |
run_gradeability_test(vehicle, scenario, set_weight_to_max_kg=True, verbose=False)
Runs the gradeability test and updates the energy object with results.
Source code in src/t3co/energy_models/energy.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |