Giter Site home page Giter Site logo

rickfu415 / heatconduction Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 9.0 124 KB

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

License: MIT License

Python 11.29% Jupyter Notebook 88.71%
heat-transfer numerical-methods finite-difference-method newtons-method analytic-solutions plot boundary-conditions

heatconduction's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.