Giter VIP home page Giter VIP logo

Comments (2)

richardotis avatar richardotis commented on June 24, 2024

The Matcalc open databases do not work directly in pycalphad without modification. We have pre-modified copies available in this workshop repository: https://github.com/materialsgenomefoundation/2023-workshop-material/tree/03be5e6300feffc9350ad5094b7e9485b26f1c42/pycalphad/databases

I do notice that there are new versions available on the Matcalc website. We haven't modified the new versions yet.

from pycalphad.

Tibaum31 avatar Tibaum31 commented on June 24, 2024

Thank you very much for the fast response!
I tried the database "mc_al_v2.032.pycalphad.tdb" in the following code, using Jupyter notebook:

%matplotlib inline
from pycalphad import Database, ternplot
from pycalphad import variables as v
tdb = Database('mc_al_v2.032.pycalphad.tdb')
comps = ['AL', 'TI', 'CU', 'VA']
phases = list(tdb.phases.keys())
conds = {v.T: 1073, v.P:101325, v.X('AL'): (0,1,0.015), v.X('TI'): (0,1,0.015)}
%time ternplot(tdb, comps, phases, conds, x=v.X('AL'), y=v.X('TI'))

,but now the following Value error occurs:

ValueError: Number of interstitial sublattices for the disordered phase (1) and the ordered phase (5) do not match. Got substitutional sublattice indices of [].

Is this a known error or can you maybe help me with that?
Thank you!

from pycalphad.

Related Issues (20)

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.