|
30 | 30 | %
|
31 | 31 | %--------------------------------------------------------------------------
|
32 | 32 |
|
33 |
| - properties |
| 33 | + properties(Constant) |
34 | 34 | M = 500 % vehicle mass
|
35 | 35 | I_z = 600 % vehicle moment of inertia (yaw axis)
|
36 | 36 | g = 9.81 % gravitation
|
|
48 | 48 | C_f = 8; % shape factor (Pacejka) (front wheel)
|
49 | 49 | D_f = 4560.4; % peak value (Pacejka) (front wheel)
|
50 | 50 | E_f = -0.5; % curvature factor (Pacejka) (front wheel)
|
51 |
| - |
52 | 51 | B_r = 0.45; % stiffnes factor (Pacejka) (rear wheel)
|
53 | 52 | C_r = 8; % shape factor (Pacejka) (rear wheel)
|
54 | 53 | D_r = 4000; % peak value (Pacejka) (rear wheel)
|
55 | 54 | E_r = -0.5; % curvature factor (Pacejka) (rear wheel)
|
56 |
| - |
57 |
| -% B_f = 10.96; % stiffnes factor (Pacejka) (front wheel) |
58 |
| -% C_f = 1.3; % shape factor (Pacejka) (front wheel) |
59 |
| -% D_f = 4560.4; % peak value (Pacejka) (front wheel) |
60 |
| -% E_f = -0.5; % curvature factor (Pacejka) (front wheel) |
61 |
| -% |
62 |
| -% B_r = 12.67; % stiffnes factor (Pacejka) (rear wheel) |
63 |
| -% C_r = 1.3; % shape factor (Pacejka) (rear wheel) |
64 |
| -% D_r = 3947.81; % peak value (Pacejka) (rear wheel) |
65 |
| -% E_r = -0.5; % curvature factor (Pacejka) (rear wheel) |
66 | 55 | end
|
67 | 56 |
|
68 | 57 | properties(Constant)
|
|
220 | 209 | %------------------------------------------------------------------
|
221 | 210 | gradu = zeros(obj.m,obj.n);
|
222 | 211 | end
|
223 |
| - |
224 |
| - function testTyres(obj) |
225 |
| - c_f = 14000; % = 1*g*M/deltamax % front coornering stiffness (C*delta=Fy~M*a) |
226 |
| - c_r = 14000; % = 2*g*M/deltamax % rear coornering stiffness |
227 |
| - |
228 |
| - % Pacejka lateral dynamics parameters |
229 |
| - B_f = 0.4; % stiffnes factor (Pacejka) (front wheel) |
230 |
| - C_f = 8; % shape factor (Pacejka) (front wheel) |
231 |
| - D_f = 4560.4; % peak value (Pacejka) (front wheel) |
232 |
| - E_f = -0.5; % curvature factor (Pacejka) (front wheel) |
233 |
| - |
234 |
| - B_r = 0.45; % stiffnes factor (Pacejka) (rear wheel) |
235 |
| - C_r = 8; % shape factor (Pacejka) (rear wheel) |
236 |
| - D_r = 4000; % peak value (Pacejka) (rear wheel) |
237 |
| - E_r = -0.5; % curvature factor (Pacejka) (rear wheel) |
238 |
| - |
239 |
| - B_f = 10.96; % stiffnes factor (Pacejka) (front wheel) |
240 |
| - C_f = 1.3; % shape factor (Pacejka) (front wheel) |
241 |
| - D_f = 4560.4; % peak value (Pacejka) (front wheel) |
242 |
| - E_f = -0.5; % curvature factor (Pacejka) (front wheel) |
243 |
| - |
244 |
| - B_r = 12.67; % stiffnes factor (Pacejka) (rear wheel) |
245 |
| - C_r = 1.3; % shape factor (Pacejka) (rear wheel) |
246 |
| - D_r = 3947.81; % peak value (Pacejka) (rear wheel) |
247 |
| - E_r = -0.5; % curvature factor (Pacejka) (rear wheel) |
248 |
| - |
249 |
| - a_r = deg2rad(-25:0.1:25); |
250 |
| - a_f = deg2rad(-25:0.1:25); |
251 |
| - W_Fy_r = D_r*sin(C_r*atan(B_r*a_r-E_r*(B_r*a_r -atan(B_r*a_r)))); % rear lateral force |
252 |
| - W_Fy_f = D_f*sin(C_f*atan(B_f*a_f-E_f*(B_f*a_f -atan(B_f*a_f)))); % front lateral force |
253 |
| - |
254 |
| - figure('Color','w'); hold on; grid on; |
255 |
| - plot(rad2deg(a_r),W_Fy_r/1000,'DisplayName','Pacejka tyre model') |
256 |
| - plot(rad2deg(a_r),a_r*c_r/1000,'DisplayName','Constant coornering stiffness model') |
257 |
| - title('Rear tyre') |
258 |
| - xlabel('Slip angle [deg]'); |
259 |
| - ylabel('Tyre lateral force [kN]') |
260 |
| - legend |
261 |
| - |
262 |
| - figure; hold on; grid on; |
263 |
| - plot(rad2deg(a_f),W_Fy_f/1000,'DisplayName','Pacejka tyre model') |
264 |
| - plot(rad2deg(a_f),a_r*c_f/1000,'DisplayName','Constant coornering stiffness model') |
265 |
| - title('Front tyre') |
266 |
| - xlabel('Slip angle [deg]'); |
267 |
| - ylabel('Tyre lateral force [kN]') |
268 |
| - legend |
269 |
| - end |
270 |
| - |
271 |
| - |
| 212 | + |
272 | 213 | end
|
273 |
| - |
274 | 214 | end
|
0 commit comments