I have a final project deals with problem solving in engineering class. This project needs to be solved using both C++ and MATLAB.
Here is the project information, which can be found with more detailed in the file attached:
____________________________________________________________________________
A simple, yet common, transient heat conduction problem is one in which a solid experiences a sudden temperature change in its thermal environment. We will consider the thermocouple junction to be a solid in the shape of a sphere (Fig 2.). The junctions are formed by twisting the wire ends then applying a bead of solder to create a weld. The thermocouple junction (sphere) is initially at a uniform temperature TI and is then immersed in a liquid of lower temperature TL. If the process begins at time t=0, the temperature of the thermocouple will decrease for time t > 0 until it eventually reaches the liquid temperature TL. The rate of heat loss is not constant! It depends on the temperature difference between the thermocouple junction (sphere) and the liquid and their thermal physical properties. The equation for the rate of change of the thermocouple junction temperature is
Simplified program test case for the transient response of the thermocouple with the following thermophysical properties:
Enter initial temperature of thermocouple junction (sphere) (C) > 100
Enter liquid temperature (C) > 25
Enter heat transfer coefficient (W/m2K) > 1000
Enter sphere density (kg/m3) > 8922
Enter sphere specific heat (J/kgK) > 287
Enter sphere radius (m) > 0.0005
Enter desired time step for temperature history (s) > .001
Output:
Time (s) Temp (C)
0.0000 100.0000
0.0010 99.8243
0.0020 99.6489
0.0030 99.4740
0.0040 99.2995
. .
2.8200 25.1005
2.8210 25.1002
2.8220 25.1000
____________________________________________________________________________