@sh.add_function(dsp, outputs=['speed_velocity_ratios'])
def calculate_speed_velocity_ratios(
gear_box_ratios, final_drive_ratios, r_dynamic):
"""
Calculates speed velocity ratios of the gear box [h*RPM/km].
:param gear_box_ratios:
Gear box ratios [-].
:type gear_box_ratios: dict[int, float | int]
:param final_drive_ratios:
Final drive ratios [-].
:type final_drive_ratios: dict[int, float | int]
:param r_dynamic:
Dynamic radius of the wheels [m].
:type r_dynamic: float
:return:
Speed velocity ratios of the gear box [h*RPM/km].
:rtype: dict
"""
c = 30 / (3.6 * math.pi * r_dynamic)
svr = {k: c * v * final_drive_ratios[k] for k, v in gear_box_ratios.items()}
svr[0] = dfl.INF
return svr