Professional Documents
Culture Documents
temperature,
3
T 2
(T S)
TT
where is the dynamic viscosity, T is the absolute temperature, o and To are reference values
of and T, respectively, and S is a constant (with units of temperature)that depends on the gas.
For air, To = 273 K, o =1 .71 10 -5 kg / (m s), and S =110 .4 K
Write a script m-file that evaluates air at 30oC. In your expression for , use variables, not the
numerical constants, for , T, and S.
Solution:
T=30;
T = T+273;
To = 273;
uo= 1.71*1e-5;
S = 110.4;
u= (((T/To^(3/2)*(To*S))/(T+S))*uo
2. Convert the script written in the preceding exercise to a function. The function should have one
input parameter, T, and one output parameter, .
Solution:
function u = viscosity(t)
T = T+273;
To = 273;
uo = 1.71*1e-5;
S = 110.4;
u = (((T/To)^(3/2)*(To*S))/(T+S))*uo;
3. Modify the function from the preceding exercise so that it accepts a vector of T values as well
as a scalar T values.
Solution:
function u = viscosity(t)
T = T+273;
To = 273;
uo =1.71*1e-5;
T =110.4;
u = (((T./To).^(3/2).*(To*S))./(T+S)).*uo;
o
in the range 0 T 230 C using the
air
function written in the preceding exercise. Plot the Sutherland model data
against the shown below.
4. Write a function that evaluates
0
20
40
60
80
100
127
177
227
Solution:
function u = plotviscosity(T,Tv,uv)
T = T+273;
To =273;
uo =1.71*1e-5;
S =110.4;
u = (((T./To).^(3/2).*(To*S))./(T+S)).*uo;
plot (T,u,'--');
hold on;
plot(Tv,uv,'-');
1.720e-5
1.817e-5
1.911e-5
2.002e-5
2.091e-5
2.177e-5
2.294e-5
2.493e-5
2.701e-5
function [s1,s2,s3,tmax,toct,e1,e2,e3]=qxn5(sxyz,E,v)
% s1, s2 and s3 are principle stresses
% tmax = max. Shear stress
% toct = octahedral shear stress
% e1, e2 and e3 are principle strains
% sxyz is the stress tensor
% E is the modulus of elasticity
% v is the poison's ratio
% s is Eigen vector of stresses
s = eig(sxyz);
s1 = max(s);
s3 = min(s);
% If condition is used to find the s2
if (s(1)>s3 && s(1)<s1)
s2 = s(1);
elseif (s(2)>s3 && s(2)<s1)
s2 = s(2);
else
s2 = s(3);
end
s2
s3
s3
s2
s3
s3
plot(x2,y2);
xlabel('Normal stress')
ylabel('Shear stress')
title('Mohr Circle of Stress');
end
e2
e3
e3
e2
e3
e3
s1 =50
s2 =25
s3 = -75
tmax = 62.5000
toct =54.0062
e1 = 0.0030
e2 = 0.0015
e3 = -0.0045