Introduction
This is a rather short -- but useful -- project I did for a heat and mass transfer class within my Aerospace Engineering degree. I really enjoyed this class, so this project was one of my favorite parts of this course.
When selecting a suitable material for a certain application, its mechanical properties are one of the key decision makers. Mechanical properties can be altered by thermal processes, in which the material is heated and cooled at known (or predicted) rates, in order to modify what is known as the microstructure.
The tempering of steel is a thermal process in where hot steel is quickly cooled down in order to prevent it from cooling down in equilibrium. Typically, this process is performed in large pools of water that can absorb the material's heat without significantly altering its temperature. This process leads to a harder -- but more fragile -- steel known as martensite.
The cooling curve of an eutectoid steel is a very well-known topic to material researchers, and it depicts the microstructure formations given multiple different cooling curves.
This project aims to calculate the cooling profile of any point within a given prismatic steel part after it undergoes a tempering process. To solve this problem, we will enforce the heat transfer governing equation on the part, discretizing the its volume with a technique known as the finite volumes method.
As the cooling process is time dependent, we will use three methods of time discretization: implicit, explicit and Crank-Nicolson. We will define the discretized heat transfer equations with a variable to switch between time discretization modes, and see how it affects our results. We will solve this equation using the Gauss-Seidel iterative method, which is fairly rudimentary but yields acceptable results with little investment.
Assumptions
Let's get on it! First, let us start with a few assumptions:
- The piece is a 3-D rectangular prismatic part with known dimensions
- The thermal conductivity of the material is known and depends on its temperature
- The material‚ heat capacity is known and also depends on temperature
- The cooling fluid thermal diffusivity is known and depends on its temperature
A quick note on the notation I will be using when defining the governing equations per finite volume.
- When a variable is sub-indexed with i,j,k I will be referring to the state of the variable in the finite volume located at (i,j,k).
- When a variable is super-indexed with a vector, it will refer to the flux of said variable in the direction of the vector.
Mathematical model
The equation governing heat transfer within the part can be defined as:
This equation is time dependent. For any given time frame n, we can approximate the equation above as:
Where is the constant I mentioned earlier to switch between the 3 temporal discretization modes, is the specific heat of the material, is the heat flux, is the material density and is the temperature of the material.
We can break up the heat flux as the flux in each direction :
Where is the thermal conductivity , is the surface area and d is the distance between two finite element volumes.
Let us define a compact form for terms of the equation above.
So, for any non-limit point within the material we end up with:
Finally,
On the next post, I will detail the specific equations for the prism's surface, along with any applicable boundary conditions. Then, we will be set to model this in C++ :)