Professional Documents
Culture Documents
Matlab Tut PDF
Matlab Tut PDF
Contents
Close all open figures and clear all variables in memory
Enter the geometric properties of the Ellipsoids in contact
Enter the material properties of the Ellipsoids
Transform the geometric data to Hertz theory
The angle between axis of contacting surfaces
close all;
clear all;
w = 0;
E = 1 / ( (1-v1^2)/E1 + (1-v2^2)/E2 );
syms x k
hk = symfun(1/sqrt(1-(1-k^2)*sin(x)^2), [x]);
ik = symfun(cos(x)^2/(sqrt(1-(1-k^2)*sin(x)^2))^3, [x]);
jk = symfun(cos(x)^2/(sqrt(1-(1-1/k^2)*sin(x)^2))^3, [x]);
BN = 2; %Intervals
HK = symfun(mBoole(hk, 0, pi/2,BN),[k]);
IK = symfun(mBoole(ik, 0, pi/2,BN),[k]);
JK = symfun(mBoole(jk, 0, pi/2,BN),[k]);
if (omg>=0) && (omg<=5) %These if statements give good initial guesses for finding roots of equation
ig = 0.04;
end
if (omg>5) && (omg<=73)
ig = 0.56;
end
if (omg>73)
ig = 0.85;
end
HK = eval(HK(k1));
IK = eval(IK(k1));
JK = eval(JK(k1));
f = (2*IK/(pi*sin(omg/2)^2))^(1/3);
g = (2*JK/(pi*cos(omg/2)^2))^(1/3);
Radii of Contact
a =
4.4416e-04
b =
2.8351e-04
Maximum Pressure
Pmax =
3.7917
Vertical Deformation
def =
18.0896
if a< b
xCenter = b;
yCenter = b;
end
xRadius = a;
yRadius = b;
theta = 0 : 0.01 : 2*pi;
x = xRadius * cos(theta) + xCenter;
y = yRadius * sin(theta) + yCenter;
plot(x, y, 'LineWidth', 3);
title('Geometry of Contact');
xlabel('Major contact radius a in mm');
ylabel('Minor contact radius b in mm');
axis square;
if a>= b
xlim([0 2*a]);
ylim([0 2*a]);
end
if a< b
xlim([0 2*b]);
ylim([0 2*b]);
end
set(gca,'fontsize', 16);
grid on;
Tutorial by Dr. Waqar Ahmed, Assistant Professor, Mechanical Engineering Department, University of Engineering & Technology Taxila. Pakistan.
waqaraq@gmail.com