Python library for modeling carbon redistribution by numerically solving Fick's laws of diffusion using the Finite Differences Method algorithm. The model supports fixed and mobile fcc/bcc interfaces.
Different boundary conditions can be set depending on the taste of the user. The mixed-mode model is particularly useful for simulating scenarios where interface migration is not fully controlled by carbon diffusion.
Examples of use are simulation of kinetics of carbon redistribution during heat treatments, such as carburizing and the Quenching and Partitioning process.
Please refer to the following publications for detailed description of application and examples of utilization:
cpartition runs in python >= 3.5 using the following non-standard python libraries:
- numpy
- scipy
- matplotlib
- pandas
- periodictable
First clone cpartition repository:
git clone https://github.com/arthursn/cpartition
Then install cpartition by running setup.py:
python3 setup.py install
Use the --user
option to install cpartition in the user folder:
python3 setup.py install --user
Please notice that setuptools
must be installed beforehand.
If cpartition is installed using setup.py
, all dependencies should be automatically solved. Otherwise, the required libraries can be installed from the Python Package Index using pip:
pip3 install numpy scipy matplotlib pandas periodictable