Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help me code this problem in MatLab!!! Consider a fluid flowing externall

ID: 2321603 • Letter: P

Question

Please help me code this problem in MatLab!!!

Consider a fluid flowing externally over a hot horizontal cylindrical wire of diameter D=0.002m at an average velocity V=lm/s. The Reynolds and Prandtl numbers are defined respectively as Re = rho VD/mu and Pr = mu cp/k where rho, k,mu, c_p are its density, thermal conductivity, dynamic viscosity, and specific heat capacity, respectively; these fluid properties depend on temperature as shown in Tables 2 & 3. Create a function file called 'waterprops' with temperature ' T' as input to output or find rho,k, p, c_p for water using linear interpolation (use interp1 on Table 2). Use 'waterprops' to obtain Re and Pr for water flow at a film temperature T_f = 0.5(T_infinite + T_s) = 377. 52 K.

Explanation / Answer

Table 2 is not provided

store the temperature values from table 2 in temp vector

store the density values from table 2 in rho vector

store the conductivity values from table 2 in k vector

store the viscosity values from table 2 in mu vector

store the Cp values from table 2 in Cp vector

Matlab Code

function [ Re,Pr ] = waterprops( T )
temp = []; %store the temperature values from table 2
rho = []; %store the density values from table 2
k = []; %store the conductivity values from table 2
mu = [];%store the viscosity values from table 2
Cp = []; %store the Cp values from table 2
rho_out = interp1(temp,rho,T);
k_out = interp1(temp,k,T);
mu_out = interp1(temp,mu,T);
Cp_out = interp1(temp,Cp,T);
V = 1;
D = 0.002 m
Re = rho_out*V*D / mu_out;
Pr = mu_out*Cp_out / k_out;
end

For output first add all the values from Table 2 which you have into the respective empty vectors and then run the program.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote