Giter VIP home page Giter VIP logo

pycalphad-v.0.10.3-examples's Introduction

pycalphad-v.0.10.3-examples

  • Note: If part of the figure is missing, please use "Configure subplots".

Installation (ubuntu 22.04 LTS or WSL2 (win))

  1. sudo apt update
  2. sudo apt -y install python3-pip
  3. pip3 install -U pip setuptools
  4. pip3 install -U pycalphad==0.10.3

Examples (official)

  1. git clone https://github.com/pycalphad/pycalphad.git
  2. cd pycalphad
  3. cd examples

Examples (python3)

  1. git clone https://github.com/by-student-2017/pycalphad-v.0.10.3-examples.git
  2. cd pycalphad-v.0.10.3-examples

Example: Al-Mg (Binary phase diagram)

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Al-Mg
  3. python3 binary-AlMg.py

Example: Nb-Re (Gibbs energy surface [J/mol])

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Nb-Re
  3. python3 binary-NbRe-gibbs_free_energy.py

Example: Al-Cu-Y (Phase diagram and Mixing enthalpy [J/mol])

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Al-Cu-Y
  3. python3 ternary-AlCuY.py
  4. python3 ternary-AlCuY-enthalpy.py

Example: Cr-Fe-Mo (easier user input)

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Cr-Fe-Mo
  3. python3 ternary-CrFeMo.py
  • It would be good to compare the results with OpenCALPHAD.

Example: Cr-Fe-Ni (easier user input)

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Cr-Fe-Ni
  3. python3 ternary-CrFeNi.py
  • It would be good to compare the results with OpenCALPHAD.
  • CoCrFeNiV.TDB-R3.txt: A thermodynamic description of the Co-Cr-Fe-Ni-V system for high-entropy alloy (HEA) design

Example: Mo-Ni-Re (easier user input)

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Mo-Ni-Re
  3. (You can get mmc1.TDB from TDBDB (https://avdwgroup.engin.brown.edu/)
  4. mv mmc1.TDB Cri_2015.TDB
  5. python3 ternary-MoNiRe.py
  • An example of changing the order of element descriptions.

Example: B-Fe-Nd (easier user input + output png)

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd B-Fe-Nd
  3. (You can get bfend_hal.tdb from CPDDB (Multicomponent Systems))
  4. python3 ternary-BFeNd.py
  • An example of changing the order of element descriptions.

Example: Al-Cr-Ni (easier user input + output png (not show graph))

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Al-Cr-Ni
  3. (You can get alcrni_dup.tdb from CPDDB (Multicomponent Systems))
  4. python3 ternary-AlCrNi.py
  • An example of changing the order of element descriptions.

Example: V-Li (V=Vacancy) (LiCoO2-CoO2 Pseudo-binary phase diagram)

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd LiCoO2-CoO2
  3. python3 binary-LiCoO.py

Example: Cs-Li-fix-Cl_test

  1. cd ~/pycalphad-v.0.10.3-examples
  2. cd Cs-Li-fix-Cl_test
  3. python3 phase-diagram.py

TDB files

Widom Alloy Database

CAMP databases (CAMP Homepage)

2NN MEAM Interatomc Potential

  1. Elements : Mo Ni Re
  2. (click) Search
  3. Use interactive 3D: [(check)]
  4. (click) Preview(experimental!)
  5. (Compare graphe and pycalphad results)

Learn more

Note

mv mmc1.TDB Qiu_2015.TDB
sudo apt -y install nkf
nkf -w Qiu_2015.TDB > Qiu_2015_en.TDB
python3 ternary-AlMgZn.py
# need "nkf" for "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 193546: invalid start byte"
  • Al-Mg-Zn (almgzn_hay.tdb from CPDDB at 15:00 Dec/08/2023): read error
Line 170: "3000 Unary5.0 N !" => "3000 N  Unary5 !"
Line 205: Remove "6000 N 2019Hay", i.d., => "CONSTITUENT ALMG_G  :MG : AL,MG,ZN : AL,MG,ZN : !"
  • Fe-Nb-Ni_test folder (Enriched_dataseTDB_V2.txt)
Line 79: => "$ FUNCTION GNIBCC  298.15 +8715.084-3.556*T+GHSERNI#; 6000 N !"
Line 175: => "+GHSERCO#; 1768 Y"
Line 985: => "+2*GHSERWW#+4*GHSERFE#;   6.00000E+03   N REF:12 !"
Line 1183: => "+12*GHSERCR#;   6000   N REF:211 !"
  • Fe-Nb-Ni_test folder (CORRECTdatabase.txt)
Line 96: => "$ FUNCTION GCOBCC 298.14 +2938-.7138*T+GHSERCO#; 6000 N !"
Line 100: => "$ FUNCTION GNIBCC  298.15 +8715.084-3.556*T+GHSERNI#; 6000 N !"
Line 1061: => "+2*GHSERWW#+4*GHSERFE#;   6.00000E+03   N REF:12 !"
Line 1310: => "+12*GHSERCR#;   6000   N REF:211 !"
Line 1358-1373: Write "$" at the beginning of the line.
  • conds: 0 => 1e-4 for ZeroDivisionError: float division (Sometimes the problem can be solved by changing the temperature to be calculated.)
  • Regarding "C_S", I looked at the Thermo-Calc manual but couldn't understand it well. I would like to request that readers provide information to correct this issue. Currently, the "C_S" part in the test folder has been deleted with a comment. It would be fine if it had the same state diagram as the paper, but please be careful when handling it.
  • Folders related to hydrogen storage material: Mg-Mn-Ni, H-La-Ni, H-Nd-Ni
  • The test folder is a check to see if a ternary phase diagram can be drawn (including simple TDB file modifications). Normally, I would like to check whether the figure matches the figure in the paper, but since research funding in Japan is extremely uneven (therefore, the paper must be ordered based on copyright law), it is not easy to check. Another reason is that I don't have any achievements, so it's not easy to apply for research funding.

Acknowledgment

  • This project (modified version) is/was partially supported by the following :
  • meguREnergy Co., Ltd.
  • ATSUMITEC Co., Ltd.
  • Without the support of "meguREnergy Co., Ltd." and "ATSUMITEC Co., Ltd.", I would not have been able to develop the examples to the level shown on this github. I would like to express my sincere gratitude.
  • I received permission from Dr. T. Abe of NIMS to post the revised version of TDB. I would like to express my gratitude to you. (11/Dec/2023 12.04)

PC specs used for test

  • OS: Microsoft Windows 11 Home 64 bit
  • BIOS: 1.14.0
  • CPU: 12th Gen Intel(R) Core(TM) i7-12700
  • Base Board:0R6PCT (A01)
  • Memory:32 GB
  • GPU: NVIDIA GeForce RTX3070
  • WSL2: VERSION="22.04.1 LTS (Jammy Jellyfish)"
  • Python 3.10.12

pycalphad-v.0.10.3-examples's People

Contributors

by-student-2017 avatar

Stargazers

Srikanth Divi avatar

Watchers

 avatar

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.