Question

SOLVE WITH MATLAB

We would like to find the temperature of the glass for the wall shown in the image. From heat transfer theory we know that I

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER

GIVEN THAT

Create the following function and save it by file name, "Temp_g.m"

%-------------------------------- Code begins------------------------

function T_g_new = Temp_g(T_g)

T_inf = 38;
g = 9.81;
v = 1.562*10^(-5);
k_air = 0.0255;
A = 3*4;
Q_dot = -700;
L = 3;

T_f = (T_g+T_inf)/2;

Pr = 0.65+0.1*sin(T_f-100);

T_f = T_f + 273; % Change in Kelvins
beta = 1/T_f;

Ra = abs(g*beta*(T_g-T_inf)*L^3*Pr/v^2);
h = 0.59*k_air*Ra^0.25/L;

% Q_dot = hA(T_g-T_inf)
% Rearrange the equation to calculate T_g
% and name it T_g_new
T_g_new = T_inf + Q_dot/(h*A);

%------------------------Code Ends---------------------------------

Now, use the following recursive code to determine the Temperature, T_g

Use any initial guess value for T_g. I have taken 18 C. You can try with any other value.

% -----------------------Code starts---------------

T_g = 18;
error = 10; % any initial value just to enter while loop.
while error > 0.001
T_g_new = Temp_g(T_g); % Calculate the new T_g value using the function Temp_g
error = abs(T_g_new-T_g); % Calculate the error
T_g = T_g_new; % Store the new value of T_g for use in next iteration.
end
T_g % Prints the value of T_g in command window

% ------------------------Code Ends----------------------

The following are two code executions with initial guess values of 18 and 25.

T_g = 18; error = 10; while error > 0.001 T_g_new = Temp_g(T_g); error = abs(T_g_new-T_g); T_g = t_g_new; end T_g T_g = 14.77

Please rate the answer if you liked it by clicking on thumbs-Up. Thank-you

Add a comment
Know the answer?
Add Answer to:
SOLVE WITH MATLAB We would like to find the temperature of the glass for the wall...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please show claer solve for ( a,c,d,e ) of this qustion. mm, electrical resistance per unit...

    Please show claer solve for ( a,c,d,e ) of this qustion. mm, electrical resistance per unit length An electrical transmission line (diameter: D=5 r=0.002 Ω/m) carries an electric current (1-100 A), dissipating an electrical power per unit length inr. On a windy day, the line is subjected to air flow (air temperature: T. -10C, air velocity V 50 km/hr) T, 10°C V 50 km/hr T, =? 1 -100 A air elec electrical line We would like to determine the surface...

  • Heat Transfer problem, ch9 Will give instant thumbs up! Problem 14: Also, after going over example...

    Heat Transfer problem, ch9 Will give instant thumbs up! Problem 14: Also, after going over example problem 9-2, determine the heat transfer by natural convection for the hot plate facing down with 0 = 30°. Cooling of a Plate in Different Orientations Consider a 0.6-m x 0.6-m thin square plate in a room at 30°C. One side of the plac is maintained at a temperature of 90°C, while the other side is insulated, as shown in Fig. 9-18. Determine the...

  • Question 5: How would dust and oil on the glass plates affect the results? EXPERIMENT 10 THIN FILM I...

    Question 5: How would dust and oil on the glass plates affect the results? EXPERIMENT 10 THIN FILM INTERFERENCE Light from a monochromatic source is shined downward on two glass plates that are separated at one end by a hair. Light that is reflected from the top and bottom surfaces of the wedge-shaped thin film of air undergoes interference, and a series of dark and light lines are seen. By counting the number of dark or light lines over a...

  • please solve 17 for me thanks~~ :) ! temperature f(x) °C, where 5. f(x) = sin 0.1 x 6 f(x) = 4 - 08 |x - 5 7. fix) =x(1...

    please solve 17 for me thanks~~ :) ! temperature f(x) °C, where 5. f(x) = sin 0.1 x 6 f(x) = 4 - 08 |x - 5 7. fix) =x(10 - x) 8 Arbitrarytemperatures at ends. If the ends x = 0 and x= Lof the bar in the text are kept at constant 20. CAS PROJECT. Isotherms. Fim solutions (tempe rature s) in the squa with a 2 satisfying the followin tions. Graph isotherms. (a) u80 sin Tx on...

  • Question 6: What percentage error would result from miscounting the bars by one? EXPERIMENT 10 THIN...

    Question 6: What percentage error would result from miscounting the bars by one? EXPERIMENT 10 THIN FILM INTERFERENCE Light from a monochromatic source is shined downward on two glass plates that are separated at one end by a hair. Light that is reflected from the top and bottom surfaces of the wedge-shaped thin film of air undergoes interference, and a series of dark and light lines are seen. By counting the number of dark or light lines over a known...

  • Please answer question 6. thanks 1. A 7 kg lead sphere that has 35 °C temperature...

    Please answer question 6. thanks 1. A 7 kg lead sphere that has 35 °C temperature falls through the air. When the sphere is 15 m above the ground, its speed is 20 m/s. Suppose that when the sphere hits the ground, 75% of its kinetic energy converts to heat that raises its temperature. Specific heat capacity of lead c = 128 J/kg.°C, g=9.8 m/s. A. Setup with a labeled diagram. b. Write down in symbols the energy equation. c....

  • 1. At an outdoor lot, there is a black-colored solar heat collection copper pipe. It is 50 meters...

    Please answer question 2. Quastion 1 answer is already provided in the photos. 1. At an outdoor lot, there is a black-colored solar heat collection copper pipe. It is 50 meters long, 10 cm in inner diameter and 10.2 cm in outer diameter. The pipe is set horizontally. Assume that solar radiation in 1.0 kW/m2 shines on the entire surface of the pipe and convert 90% of the solar energy on the pipe into heat. There is water in 25...

  • how do i find H, and how do i use the equation on the 4 question...

    how do i find H, and how do i use the equation on the 4 question to find Ei and Ef where m is the mass of the hanging mass, M is the mass of the Smart Cart, h is the height of the hanging mass above the floor, H is the height the Smart Cart (mass M) climbs up the track, and v the velocity of the Smart Cart in the instant when the hanging mass is about to...

  • Ur thhe spécific for shear, u, and the specific heat of the material. Hence, temperature risc ene...

    ur thhe spécific for shear, u, and the specific heat of the material. Hence, temperature risc ene machining materials with high strengt cates. The temperature rise at the tool-chip interface is, of course, also a fiu cocfficient of friction. Flank wear (see Section 8.3 and Fig. 8.20a) isction of source of heat, caused by rubbing of the tool on the machined surface. those of the workpiece. generated in the shear plane is a functioll UI material. Hence, temperature rise is...

  • Please answer all the blanks (volume if H2 and everything in analysis). TIA! Data 5 1...

    Please answer all the blanks (volume if H2 and everything in analysis). TIA! Data 5 1 oong 0.00 10.5ml 2 o.olag 0.00 11.0 Trial 3 o.org 0.00 12.00 o Daag o.albg 0.00 10.0 ml 11.5ml Mass of Mg (g) Initial volume of Syringe (mL) Final volume of Syringe (mL) Volume of H (mL) Barometric pressure (torr) Ambient temperature (°C) Vapor pressure of H2O (torr) 779.314har 23. Oi 21.0 forr TA.314tar 23.0c 179.3 14ton 23.0¢ 779.314 ton 23.0c 779.31472 23.0c 21.0...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT