Question

In: Physics

9-162 Write a computer program with ESS to evaluate the variation of temperature with time of...

9-162
Write a computer program with ESS to evaluate the variation of temperature with time of thin square metal plate that are removed from an oven at a specified temperature and placed vertically in a large room. The thickness the size, the initial temperature, the emissivity, the thermophysical properties of the plate as well as the room temperature are to be specified by the user. The program should evaluate the temperature of the plate at specified intervals and tabulate the result against time. The computer should list the assumptions made during calculations before printing the results.
For each step or time interval, assume the surface temperature to be constant and evaluate the heat loss during that time interval and the temperature drop of the plate as a result of this heat loss. This gives the temperature of the plate at the end of a time interval, which is to serve as the initial temperature of the plate for the beginning of the next time interval.
Try your program for 0.2 cm-thick vertical copper plates of 40 cm x 40 cm in size initially at 300oC cooled in a room at 25oC. Take the surface emissivity to be 0.9. Use a time interval of 1s in calculations, but print the results at 10-s interval for a total cooling period of 15 min.

Solutions

Expert Solution

Answer:-

The below is the required source code for the given problem using C++

Code:-

#include <iostream>
#include <math.h>
using namespace std;

int main()
{
int l,h;
double b, initTemp,emissivity;
double roomTemp;
cout<<endl<<"Enter the details of Square metal plates";
cout<<endl<<"Thickness: ";
cin>>b;
cout<<endl<<"Size (length, height): ";
cin>>l;
cin>>h;
cout<<"Initial temperature: ";
cin>>initTemp;
cout<<endl<<"Emissivity: ";
cin>>emissivity;
cout<<endl<<"Enter room temperature: ";
cin>>roomTemp;
double heatLoss;
double tempDrop;
double Ts=initTemp;
cout<<endl<<"Time interval \t HeatLoss \t temperature drop"<<endl;
for(int t=15;t<150;t+=15)
{
heatLoss=emissivity*5.67*exp(-1*8)*t*(l*b*h)*pow(roomTemp-Ts,4);
tempDrop=initTemp-heatLoss;
Ts-=roomTemp-tempDrop;
cout<<t<<" \t "<<heatLoss<<" \t "<<tempDrop<<endl;
}
return 0;
}


Related Solutions

Write a program that uses an array for time and temperature. The program should contain an...
Write a program that uses an array for time and temperature. The program should contain an array with 24 elements, each of which is holding a temperature for a single hour. Your program should have a function that lists all of the temperatures that are held in the array. Temperatures should be listed to console with one entry per line. Your program should have a function that lists a single temperature entry. You should ask the user for a number...
The time it takes for a computer program to compile can be modeled with a Gamma...
The time it takes for a computer program to compile can be modeled with a Gamma distribution with a mean of 1 minute and a variance of 0.5 minutes^2. Find the probability that it takes more than 1 minute for a program to compile.
Write a Micro C program to: -Measure temperature using LM35 -Show the temperature on LCD You...
Write a Micro C program to: -Measure temperature using LM35 -Show the temperature on LCD You can use headers. if you use header, send headers with main code as homework.
Write a Micro C program to: -Measure temperature using LM35 -Show the temperature on LCD You...
Write a Micro C program to: -Measure temperature using LM35 -Show the temperature on LCD You can use headers. if you use header, send headers with main code as homework.
For this computer assignment, you are to write a C++ program to implement a class for...
For this computer assignment, you are to write a C++ program to implement a class for binary trees. To deal with variety of data types, implement this class as a template. Most of the public member functions of the BinaryTree class call private member functions of the class (with the same name). These private member functions can be implemented as either recursive or non-recursive, but clearly, recursive versions of these functions are preferable because of their short and simple implementations...
Write a defining table and a computer program that computes and outputs the volume of a...
Write a defining table and a computer program that computes and outputs the volume of a torus with inner radius a and outer radius b. A doughnut is an example of a torus. Your program must read the inner radius and outer radius from two text fields and display the volume in a div. The formula for the volume of a torus is v =  π2(a + b)(a - b)2 4 where v is the volume, π is the constant pi,...
For this computer assignment, you are to write a C++ program to implement a class for...
For this computer assignment, you are to write a C++ program to implement a class for binary trees. To deal with variety of data types, implement this class as a template. Most of the public member functions of the BinaryTree class call private member functions of the class (with the same name). These private member functions can be implemented as either recursive or non-recursive, but clearly, recursive versions of these functions are preferable because of their short and simple implementations...
9.) Write a MATLAB script that will read the Pressure and Temperature columns from the provided...
9.) Write a MATLAB script that will read the Pressure and Temperature columns from the provided Excel file. Use a loop to calculate the linear best fit line for the data. You may only use the built-in functions sum, size, and length. Plot both the individual data points (red) and the fit line (blue) on the same graph. Include a title and axes labels.
Write in java Q 4.Centigrade and Fahrenheit are two scales to measure temperature. Write a program...
Write in java Q 4.Centigrade and Fahrenheit are two scales to measure temperature. Write a program that that prompts the user to enter Centigrate and then print the Fahrenheit. Use following formula for conversion. Fahrenheit = Centigrade*1.8 +   32 ; Q. 7 Write a program to calculate the bill of a customer. The program will -           Prompt the employee to enter the monthly plan fees. -           Prompt the employee to enter the rate per additional minute. -          Print the bill...
For this problem, you will write a program in which the computer plays a dice game...
For this problem, you will write a program in which the computer plays a dice game called Craps. You might need to explore some Python documentation on random() for this homework assignment. PROVIDE A GRAPHICAL FLOWCHART as part of your submission for this solution Rules: The player rolls two six-sided dice. After rolling, the sum of what the dice show is calculated. If the sum is 7 or 11 on the first roll, the player wins. If the sum is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT