Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a mat lab question. Please include the code so I can review it and use it to actully plot the graph. Thank You!

This is a mat lab question. Please include the code so I can review it and use it to actully plot the graph. Thank You!

The actual question is in bold.

we solved a heat transfer problem:

ho(Tout T1) = kg (T1 T2/ xglass)

kg (T1 T2/ xglass) = ka (T2 T3/ xargon)

ka (T2 T3 /xargon) = kg (T3 T4/ xglass)

kg (T3 T4/ xglass) = hi (T4 23)

The glass panes are xglass = 0.003 thick, and the argon in between is xargon = 0.01. The outside heat transfer coefficient is ho = 44, and the inside coefficient is hi = 12. The thermal conductivity of the glass is kg = 0.81, and the conductivity of the argon is 0.015. The inside temperature is 23. Put a copy of the file you used in HW3 into your HW4 directory. Modify it so that it is a function file called heat.m that takes Tout as an input and spits out the solutions T1, T2, T3, and T4 in one column vector as an output. Now, write Matlab code that produces a plot of all four temperatures versus Tout for 100 evenly spaced values of Tout ranging from 25 to 45 degrees Celsius. You should do this by calling heat.m repeatedly inside a for loop. It may be helpful to use the colon operator to add the output of heat.m into a large matrix every time through the for loop. Turn in the plot.

So this question asks about the code we used to solve this problem before. Below is the first question asked and below it is the code to answer the first question. This code must be used to answer the actual question that is in bold!

ORGINIAL QUESTION: Heat transfer application. Double-pane windows are an engineering triumph. I have a double-paned window. The glass panes are xglass = 0.003 thick, and the argon in between is xargon = 0.01. The outside heat transfer coefficient is ho = 44, and the inside coefficient is hi = 12. The thermal conductivity of the glass is kg = 0.81, and the conductivity of the argon is 0.015. Let the outside temperature be Tout, and assume that the inside temperature is 23 (room temperature). The temperatures of the four glass surfaces, T1, T2, T3, and T4 are given by the system of four equations (obtained by balancing heat flux at each interface):

ho(Tout T1) = kg (T1 T2/ xglass)

kg (T1 T2/ xglass) = ka (T2 T3/ xargon)

ka (T2 T3 /xargon) = kg (T3 T4/ xglass)

kg (T3 T4/ xglass) = hi (T4 23)

Write a Matlab script file to find a vector containing the T1, T2, T3, and T4 temperatures. What are the temperatures if Tout = 34? Hint: the backslash operator is your friend. As a check, the temperatures for Tout = 37 are T1 = 36.5921, T2 = 36.5257, T3 = 24.5619, and T = 24.4955.

code to answer this question is

a= [11880 270 0 0;270 21870 81 0;0 81 21870 270;0 0 81 3240]

b=[-1496;0;0;-276]

T=a\b

first we solved the equation to make a system of equations then inputted the given information and solved using the backslash operator.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Explain the service recovery paradox.

Answered: 1 week ago