Giter Club home page Giter Club logo

openiec's Introduction

OpenIEC: An open-source code for interfacial energy calculation in alloys

openiec


Developed by Shenglan Yang, Jing Zhong, Lijun Zhang at Central South University in China.

News: OpenIEC 1.0 was released on Jan. 27, 2019.

Notes: If you use OpenIEC in your research or publish, please cite or acknowledge the following work :

Shenglan Yang, Jing Zhong, Jiong Wang, Lijun Zhang*, George Kaptay, OpenIEC: an open-source code for interfacial energy calculation in alloys. Journal of Materials Science 54.14(2019): 10297–10311.

OpenIEC is an open-source code for interfacial energy calculation in alloys and was developed by following interfacial energy calculation models on coherent and solid/liquid interfaces developed by George Kaptay (Acta Mater., 60 (2012) 6804-6813 & J. Mater. Sci., 53 (2018) 3767-3784).

For assistance and/or collaboration opportunities, please contact the author by mailing [email protected] or using the issue tracker on GitHub.

Framework of OpenIEC code

framework

The coupling with the CALculation of PHAse Diagram (CALPHAD) thermodynamic and molar volume databases was facilitated in OpenIEC, where the Pycalphad is integrated for providing the necessary thermodynamic information. With OpenIEC, the temperature- and composition-dependent interfacial energies in alloys with any arbitrary number of components can be conveniently evaluated.

OpenIEC is licensed under the MIT License. See LICENSE.txt for details.

Prerequisite and Installation

To install OpenIEC, one should go to the source directory and run:

python setup.py install

Qucikstart

Calculation of the coherent interfacial energy

  • Ni-Al system
  • Coherent interfacial energy between FCC_A1 and GAMMA_PRIME
  • Temperature: 800 K
  • Composition: Ni-20at.%Al
  • TDB file: NiAlHuang1999.tdb

Write a script to use OpenIEC as following,

from pycalphad import Database
from openiec.calculate.calcsigma import SigmaCoherent

# Render thermodynamic database.
db = Database("NiAlHuang1999.tdb")
# Molar volumes of pure components to construct corresponding molar volume database.
purevms = [[
        "6.718*10.0**(-6.0) + (2.936*10.0**(-5)*10.0**(-6.0))*T**(1.355*10.0**(-6.0))", 
        "10.269*10.0**(-6.0) + (3.860*10.0**(-5)*10.0**(-6.0))*T**(1.491*10.0**(-6.0))"
    ],]*2
# Call the module for calculating coherent interfacial energies.
sigma = SigmaCoherent(
    T = 800.0, 
    x0 = [0.2,], 
    db = db, 
    comps = ["NI", "AL", "VA"], 
    phasenames = ["FCC_A1", "GAMMA_PRIME"], 
    purevms = purevms
)
# Print the calculated interfacial energy.
print(sigma.Interfacial_Energy.values)

# Result is printed as following
'''
Output: 0.027399568639258774
'''

For details of this example, you can see the coherent interfacial energy of the binary Ni-Al alloy.

Calculation of the solid/liquid interfacial energy

  • Ni-Al system
  • Solid/liquid interfacial energy between FCC_A1 and Liquid
  • Temperature: 916 K
  • Composition: Al-1at.%Ni
  • TDB file: AlNiAnsara1997.TDB

Write a script to use OpenIEC as following,

from pycalphad import Database
from openiec.calculate.calcsigma import SigmaSolLiq

# Render thermodynamic database.
db = Database("AlNiAnsara1997.TDB")
# Molar volumes of pure components to construct corresponding molar volume database.
purevms = [[
        "10.269*10.0**(-6.0) + (3.860*10.0**(-5)*10.0**(-6.0))*T**(1.491*10.0**(-6.0))", 
        "6.718*10.0**(-6.0) + (2.936*10.0**(-5)*10.0**(-6.0))*T**(1.355*10.0**(-6.0))"
    ],]*2
# Call the module for calculating solid/liquid interfacial energies.
sigma = SigmaSolLiq(
    T = 916.0, 
    x0 = [0.01,], 
    db = db, 
    comps = ["AL", "NI"], 
    phasenames = ["FCC_A1", "LIQUID"] , 
    purevms = purevms
) 
# Print the calculated interfacial energy.
print(sigma.Interfacial_Energy.values) 

# The result is printed as following
'''
Output: 0.16942787117258445
'''

For details of this example, you can see the solid/liquid interfacial energy of the binary Al-Ni alloy.

More Examples

Notes: If you run examples in OpenIEC, please enter the demo file in the source directory and run it with Python.

python ter_solliq_AlAgCu.py

If you have any questions for the molar volume, you can see the documentation on Molar Volume.

Documentation

Representative results

  • Calculated interfacial energies of coherent γ/γ' interface in the Ni-Al system using OpenIEC, compared with the literature data.

NiAl-coherent


  • Model-predicted interfacial energies of the coherent γ/γ' interface in the Ni-Al-Cr system at 873 K, 1073K and 1273 K.

NiAlCr-coherent


  • Model-predicted interfacial energy cube of coherent γ/γ' interface in the Ni-Al-Cr-Re system at 1273 K.

NiAlCrRe-coherent

  • Evaluated solid/liquid interfacial energies between Al-rich fcc solid solution and liquid phase in Al-Cu, Al-Ni, Al-Ag, Al-Ti, Al-Mg, Al-Si, Al-Ag-Cu and Al-Cu-Si alloys at eutectic compositions and eutectic temperatures using OpenIEC, compared with the literature data.

Al-alloys-solidliquid

openiec's People

Contributors

yangshenglan avatar zhongjingjogy 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.