Next Article in Journal
Development of Mathematical Model for Coupled Dynamics of Small-Scale Ocean Current Turbine and Generator to Optimize Hydrokinetic Energy Harvesting Applications
Previous Article in Journal
Using an Airport Pavement Management System to Optimize the Influence of Maintenance Alternatives on Operating Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of a Sustainable Universal Python Code for Accurate 2D Heat Transfer Conduction Simulations in Educational Environment

1
College of Engineering, Science and Environment, University of Newcastle, Callaghan, NSW 2308, Australia
2
Engineering Cluster, Singapore Institute of Technology, Singapore 138683, Singapore
3
Engineering Product Development, Science, Mathematics and Technology, Singapore University of Technology and Design, Singapore 487372, Singapore
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2024, 14(16), 7159; https://doi.org/10.3390/app14167159
Submission received: 12 June 2024 / Revised: 26 July 2024 / Accepted: 8 August 2024 / Published: 15 August 2024
(This article belongs to the Section Mechanical Engineering)

Abstract

Simulation software like ANSYS, COMSOL, and SimScale excel at modeling heat transfer phenomena, but their extensive functionalities necessitate a deep understanding, making them less suitable and too expensive for use in educational settings below the post-secondary level in Singapore, where the current curriculum does not demand such advanced capabilities. To provide a more accessible and cost-effective solution, this work introduces a novel universal Python code designed to simplify the understanding of 2D steady-state heat transfer on irregular shapes, utilizing only Microsoft Excel and Python. The developed code employs the Gauss–Seidel iteration method within a full multigrid framework, applying the relevant nodal finite-difference equations based on the node type within a 2D irregular shape delineated by a 65 × 65 mesh in Excel. The generated contour plots from these simulations are meticulously compared with those produced by ANSYS to validate accuracy. The comparison reveals that the results from the Python code closely align with those from ANSYS, showing only minor differences. Consequently, the Python code emerges as a viable and simplified alternative for conducting 2D steady-state heat transfer simulations, making it a valuable tool for educational purposes, bridging the gap between complex simulation software and the educational needs of students in Singapore.
Keywords: 2D heat transfer; modelling; simulation; irregular shapes; Gauss–Seidel iteration; full multigrid; Python 2D heat transfer; modelling; simulation; irregular shapes; Gauss–Seidel iteration; full multigrid; Python

Share and Cite

MDPI and ACS Style

Kok, C.L.; Ho, C.K.; Taufik, A.S.B.M.; Koh, Y.Y.; Teo, T.H. Development of a Sustainable Universal Python Code for Accurate 2D Heat Transfer Conduction Simulations in Educational Environment. Appl. Sci. 2024, 14, 7159. https://doi.org/10.3390/app14167159

AMA Style

Kok CL, Ho CK, Taufik ASBM, Koh YY, Teo TH. Development of a Sustainable Universal Python Code for Accurate 2D Heat Transfer Conduction Simulations in Educational Environment. Applied Sciences. 2024; 14(16):7159. https://doi.org/10.3390/app14167159

Chicago/Turabian Style

Kok, Chiang Liang, Chee Kit Ho, Abbas Syihan Bin Muhammad Taufik, Yit Yan Koh, and Tee Hui Teo. 2024. "Development of a Sustainable Universal Python Code for Accurate 2D Heat Transfer Conduction Simulations in Educational Environment" Applied Sciences 14, no. 16: 7159. https://doi.org/10.3390/app14167159

APA Style

Kok, C. L., Ho, C. K., Taufik, A. S. B. M., Koh, Y. Y., & Teo, T. H. (2024). Development of a Sustainable Universal Python Code for Accurate 2D Heat Transfer Conduction Simulations in Educational Environment. Applied Sciences, 14(16), 7159. https://doi.org/10.3390/app14167159

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop