Viscosity mu is property of gases and fluids that characterises their resistance to flow. For most materials viscosity is highly sensitive to temperature. Below is a table that gives the viscosity of SAE 10w oil at different temperatures. Determine an equation that can be fitted to the data.

Question:   Viscosity mu is property of gases and fluids that characterises their resistance to
flow. For most
materials viscosity is highly sensitive to temperature. Below is a table that gives the viscosity of SAE
10w oil at different temperatures. Determine an equation that can be fitted to the data.
T 0c
-20
0
20
40
60
80
100
120


mu(N-s/m2)
4.0000
.38
.095
.032
0.0150
0.0078
0.0045
0.0032




%in script file
T=[-20:20:120];
mu=[4 0.38 0.095 0.032 0.015 0.0078 0.0045 0.0032];
Tk=T+273;
P=polyfit(Tk,log(mu),2);
Tplot=273+(-20:120);
muplot=exp(P(1)*Tplot.^2+P(2)*Tplot+P(3));
semilogy(Tk,mu,'r',Tplot,muplot);
xlabel('temperature(kelvin)'
ylabel('viscosity(N-S/M^2)')
title('Given data fitted as shown in plot')


Matlab for engineers
Related Posts Plugin for WordPress, Blogger...