Giter Site home page Giter Site logo

diffusion-in-python-with-pydiffusion-library's Introduction

1D-Diffusion-in-Python-with-pydiffusion-library

Simple script for multi-step simulation of a carburizing process

This script is a simple way to simulate a multi-step carburizing process. The pydiffusion library is used, a modified version of sph_sim is included. Carburizing is a well-known and well established industrial process. Performed all over the world for applications like gears and shafts, some variations exist. All of these have in common, that elemental carbon is diffused into the part at rather high temperatures. The standard methods of the pydiffusion library cannot do that, so we applied a slight modification to the sph_sim method. With a simple modification, just one line, we can turn it into a function, that can simulate the carbon source at the surface. This source potential can easily made time dependent etc. In the included example, the first carburizing step is followed by a diffusion step with the standard method sph_sim. A second carburizing and diffusion step follow. In principle, this setup can be used for any diffusing species, steps can be added/removed to your liking. The diffusion coefficient in the example is a f(T). It thus follows, that possibilities with this script are nearly limitless.

Output of first plot:

Carburizing+Diffusion_steps1

Output of second plot:

Carburizing+Diffusion_steps2

[email protected]

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.