SkillAgentSearch skills...

HeatConduction

A 1D heat conduction solver using Finite Difference Method and implicit backward Euler time scheme

Install / Use

/learn @rickfu415/HeatConduction

README

1D Heat Conduction Solver

A transient 1D heat conduction solver using Finite Difference Method and implicit backward Euler time scheme.

Updates (08-24-2019)

Added a Jupyter notebook as a demo case for the solver. Very straight forward and the results are beautifully plotted. Enjoy!

Features:

1. Fully modularized, easy to customize for your own problem.  
1. Only use the common packages, Numpy, Pandas and Matplotlib.  
2. Centered Differecing in space (second order accuracy), implicit backward Euler time scheme (First order accuracy).  
3. Using Newton's method to solve discretized equation system at each time step.  
4. Two types of boundary conditions, fixed temperature and fixed heat flux.  
5. Current version only support constant material properties, will be upgraded.  
6. Incoporate with postprocessing module and analytic solution comparison.   

How to run:

0. Clone the repository.  
1. In any Python IDE, open parameter.py, execute.  
2. To compare with analytic solution, open analyticSolution.py, execute.  

Reference:

  1. Numerical analysis.
  2. Modeling of One-Dimensional Ablation with Porous Flow using Finite Control Volume Procedure.

Citation:

If you are using the code for your research or study, please consider cite me :) I am a miserable PhD ......

  1. Thermomechanical Coupling for Charring Ablators.
  2. Thermal Expansion for Charring Ablative Materials.
View on GitHub
GitHub Stars20
CategoryDevelopment
Updated7h ago
Forks9

Languages

Jupyter Notebook

Security Score

95/100

Audited on Apr 5, 2026

No findings