Problem Statement[edit | edit source]
There is a cylinder with an initial Temperature of 600C suspended in cold water with the temperature of 300C. Using Finite Element Method, Simulate the transient behaviour of this cylinder for a 10-minute time span.
Solution[edit | edit source]
I treated the cylinder as a grid. There are 9 different cells. I derived the heat equation for each of them and interpreted them into MATLAB language. Then, Using a for loop, a matrix representing cells' temperatures is produced for each time step.
Visualization[edit | edit source]
- Collect all the matrices (one for every time step) in a cell data structure.
- Use Heat Map to plot the cylinder where the color of each cell represents its temperature.
- Output a Time laps using writeVideo function.
Video[edit | edit source]
Code[edit | edit source]
The full code for this project is available at my GitHub.