-
Notifications
You must be signed in to change notification settings - Fork 0
Wheels Model
stefanosts edited this page Aug 6, 2016
·
1 revision
Name | Units | Source / Comments | Parameter |
---|---|---|---|
Dynamic Rolling Radius | mm | Input | r_dynamic |
Velocity Profile | km/h, sec, - | Input | velocities, times, gears |
Motive Powers | kW | Calculated by Vehicle Model | motive_powers |
- Wheels Powers [kW] / wheels_powers
- Wheels Speeds [RPM] / wheels_speeds
- Wheels Torques [Nm] / wheels_torques
def calculate_wheel_speeds(velocities, r_dynamic):
return velocities * (30.0 / (3.6 * pi * r_dynamic))
def calculate_wheel_torques(wheel_powers, wheel_speeds):
if isinstance(wheel_speeds, np.ndarray):
return np.nan_to_num(wheel_powers / wheel_speeds * (30000.0 / pi))
return wheel_powers / wheel_speeds * (30000.0 / pi) if wheel_speeds else 0.0
wheels.add_function(
function=dsp_utl.bypass,
inputs=['motive_powers'],
outputs=['wheel_powers']
)