This project implements the Finite Difference Method (FDM) to numerically solve a steady-state heat conduction problem in a specified domain. The simulation calculates temperature distribution within a square channel subjected to different boundary conditions, using Python.
heattransfer.py: The main Python script for performing the heat transfer simulation.heat transfer.pdf: Contains the project report and detailed documentation of the problem setup, methodology, and results.
To run this project, follow these steps:
- Python 3.x installed on your machine.
- Python libraries: numpy and matplotlib. Install them using:
pip install numpy matplotlib
- Open Command Prompt and navigate to the project directory.
- Run the script by typing:
python heattransfer.py
- Follow the on-screen prompts to input the values of
delta xandT insidewhen asked by the script.
delta x: The grid spacing in the x-direction. Valid inputs are0.005or0.01.T inside: The internal surface temperature. Valid inputs are500,600, or700degrees Kelvin.
- Temperature distribution across the mesh.
- Heat loss calculations and comparisons using different boundary conditions.
- Visualizations of the temperature field in 3D.
Contributions to this project are welcome. Please feel free to fork the repository, make changes, and submit pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.