question 4 Af = 1.4; % m^2 5 mveh 75; % kg 6 Tm 3; % Nm 7 vlow 2; % m/s 8 vhigh 6; % m/s 9 GR 6; % no units 10 = = 11 Cd = 12 Crr = 13 14 % Code to find pcttime for all values of varying parameter 15 16 17 % Code to plot solution 18 19 20
To optimise the vehicle's ability to coast, the resistance forces are the most important. The main variables are: Aerodynamic: Coefficient of aerodynamic drag (Cd) Rolling resistance: Coefficient of rolling resistance (Crr) 1 Assume the following values for other parameters: Af = 1.4; % m^2 mveh 75; % kg Tm 3; % Nm vlow 2; % m/s vhigh 6; % m/s GR = 6; % no units = - Produce code that determines the value of percentage time for Cd values between 0.08 and 0.3 in steps of 0.01. Set Crr to be 0.002. Show the results by plotting a graph of percentage time on against coefficient of drag (i.e. pcttime as the y-axis, and Cd as the x-axis). The y-axis should have the label 'Percentage Time On (%)'and the x-axis should have the label 'Coefficient of drag'.
1 clear 2 = = 3 % Constants, defined in 1 clear 2 = = 3 % Constants, defined in question 4 Af = 1.4; % m^2 5 mveh 75; % kg 6 Tm 3; % Nm 7 vlow 2; % m/s 8 vhigh
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am