This repository contains Python code for simulating heat conduction in a hollow cylinder with various boundary conditions and heat generation. The temperature distribution is calculated and visualized based on the governing heat conduction equations.
This project investigates the thermal behavior of a hollow cylinder, characterized by
its inner radius
- Models heat conduction through a hollow cylinder with internal fluid flow.
- Calculates temperature distributions with and without heat generation.
- Visualizes temperature profiles using Python's
matplotliblibrary.
The temperature distribution in a hollow cylinder with no heat generation is given by:
Where:
-
$T_i$ and$T_o$ are the temperatures at the inner and outer surfaces of the cylinder, respectively. -
$R_i$ and$R_o$ are the inner and outer radii of the cylinder, respectively. -
$T(r)$ is the temperature at a radius$r$ within the hollow cylinder.
When there is uniform heat generation
Where:
-
$Q_g$ is the rate of heat generation per unit volume. -
$k$ is the thermal conductivity of the material. -
$T(r)$ is the temperature at a radius$r$ within the hollow cylinder.
-
Clone the repository:
git clone https://github.com/iammohith/Heat-Conduction-in-a-Hollow-Cylinder.git
-
Install dependencies: Ensure you have Python installed, and then install the required packages:
pip install numpy matplotlib
-
Run the simulations: The Python scripts simulate different cases of heat conduction through the hollow cylinder. To run a script, execute:
python script_name.py
-
Modify Parameters: You can change parameters such as
$T_i$ ,$T_o$ ,$R_i$ ,$R_o$ ,$Q_g$ , and$k$ in the scripts to explore different thermal scenarios.
The temperature distributions are plotted using matplotlib. Each script generates a plot showing the temperature profile across the hollow cylinder. Here's an example of a typical temperature distribution graph:
- X-axis: Distance from the inner radius to the outer radius.
- Y-axis: Temperature at that radius.
-
Heat and Mass Transfer: Fundamentals & Applications
Afshin J. Ghajar and Yunus A Çengel -
Heat and Mass Transfer
R.K. Rajput -
Python Documentation
Official Python documentation for libraries likenumpyandmatplotlib:
Python Documentation
This project is open source and available under the MIT License.