Question: MATLAB: When the surface of an object suddenly experiences a temperature change, an exchange of heat with the object takes place. This heat flow is

MATLAB: When the surface of an object suddenly experiences a temperature change, an exchange of heat with the object takes place. This heat flow is typically a function of time ( t ) and the amount of temperature change ( DT ). Depending on the size of the object, the heat transfer rate can be calculated from one of the following expressions: MATLAB: When the surface of an object suddenly experiences a temperature change,

When the surface of an object suddenly experiences a temperature change, an exchange of heat with the object takes place. This heat flow is typically a function of time (t) and the amount of temperature change (DT). Depending on the size of the object, the heat transfer rate can be calculated from one of the following expressions: Small Object (such as a small concrete block): (m cp) (DT) e K (DT) Very Large Object(such as a large and thick concrete wall): a t Where: for Concrete m = Mass of the object ( kg ) 1 kg Cp= Specific heat of the object (j/(kg-K)) 750 j/kg-K T = Thermal time constant of the object (sec) 750 sec k = Thermal conductivity of the object (w/(m-K)) 1 w/m-K a = Thermal diffusivity (m2/sec) 5.5e-7 sec DT = Temperature change at the surface (K) q = Heat transfer rate (w) t = Time (sec) Write a primary function called heat_transfer with t and DT as the input arguments; this function has no output argument. This function should call two separate subfunctions called Small and large, each calculating the heat transfer rate for an object based on the above expressions. Each of the subfunctions has t and DT as its input arguments and each return the corresponding heat transfer rate in its output argument. The primary function should also plot the heat transfer rates as a function of time in one figure containing two curves. This plot should be semilog on y axis. Make sure to place labels, title, and legend. Write a script that calls the primary function for t between 0.01 to 1000 seconds, with an increment of 0.01, and DT=50 K. When one runs this script, a plot should be generated. Define two global variables representing the heat transfer rate at 200 sec for a small and a large object. Have the values of these variables calculated in the primary function but have them displayed in your script file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!