1-D Heat diffusion in a rod
Simple FEM code to solve heat transfer in 1D. Easy to read and can be translated directly to formulas in books.
Problem: Transient heat conduction in a unit rod.
Solution compared to an exact solution by Carslaw and Jaeger (1959).
Warning: Has "clear all" (at top of script)
References:
W. Lewis et al. (1996): The Finite Element Method in Heat Transfer Analysis, John Wiley and Sons, West Sussex England
Strang G. and Fix G. (2008): An analysis of the Finite Element Method,Second Edition, Wellesley-Cambridge Press, Wellesley USA
Carslaw H.S. and Jaeger J.C. (1959): Conduction of heat in solids, Oxford at the Clarendon Press, Second Edition
Cite As
Martin (2024). 1-D Heat diffusion in a rod (https://www.mathworks.com/matlabcentral/fileexchange/47781-1-d-heat-diffusion-in-a-rod), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.