Giter VIP home page Giter VIP logo

Comments (11)

richardotis avatar richardotis commented on May 27, 2024

Hi Eli, what is the value of Trange?

from pycalphad.

broshe avatar broshe commented on May 27, 2024

Sorry,
Trange=2000 (K)

On Wed, Sep 9, 2015 at 11:01 PM, Richard Otis [email protected]
wrote:

Hi Eli, what is the value of Trange?


Reply to this email directly or view it on GitHub
https://github.com/richardotis/pycalphad/issues/21#issuecomment-139029940
.

from pycalphad.

richardotis avatar richardotis commented on May 27, 2024

Okay, I can reproduce your value. Can you tell me what Thermo-Calc's value for MU(Fe) is?

from pycalphad.

broshe avatar broshe commented on May 27, 2024

POLY_3:s-c t=2000 x(fe)=.2 p=1e5 n=1
POLY_3:ch_st ph *=sus
POLY_3:ch_st ph liquid=ent 0
POLY_3:l-c
T=2000, X(FE)=0.2, P=1E5, N=1
DEGREES OF FREEDOM 0
POLY_3:c-e
Using global minimization procedure
Calculated 137 grid points in 0 s
Found the set of lowest grid points in 0 s
Calculated POLY solution 0 s, total time 0 s
POLY_3:show mu(fe)

  • MU(FE)=-184306.01*
    POLY_3:show mu(al)
    MU(AL)=-133815.12

On Wed, Sep 9, 2015 at 11:03 PM, Richard Otis [email protected]
wrote:

Okay, I can reproduce your value. Can you tell me what Thermo-Calc's value
for MU(Fe) is?


Reply to this email directly or view it on GitHub
https://github.com/richardotis/pycalphad/issues/21#issuecomment-139030555
.

from pycalphad.

richardotis avatar richardotis commented on May 27, 2024

You appear to be correct. I've also checked the energy surface and the error becomes self-evident. I'll investigate this further.
image

from pycalphad.

richardotis avatar richardotis commented on May 27, 2024

The overall molar Gibbs energy I compute at 2000 K and X(Fe) = 0.2 is -144066.749. Does Thermo-Calc get close to that value? I'm trying to figure out if this issue is just a display error or if there's a more serious bug in the equilibrium engine.

from pycalphad.

broshe avatar broshe commented on May 27, 2024

Thermo-calc gives:
GM=-143913.3

On Wed, Sep 9, 2015 at 11:23 PM, Richard Otis [email protected]
wrote:

The overall molar energy I compute at 2000 K and X(Fe) = 0.2 is
-144066.749. Does Thermo-Calc get close to that value? I'm trying to
figure out if this issue is just a display error or if there's a more
serious bug in the equilibrium engine.


Reply to this email directly or view it on GitHub
https://github.com/richardotis/pycalphad/issues/21#issuecomment-139035636
.

from pycalphad.

richardotis avatar richardotis commented on May 27, 2024

As you suggested this looks like an error with sorting component names. If you change your condition to X(AL)=0.8, which should be equivalent, the chemical potentials are now the same as Thermo-Calc and the reported energy is -143913.2912436. What appears to be happening is pycalphad is flipping the component names around, so the equilibrium it's reporting is for X(FE)=0.8. The result is correct, just for the wrong conditions. I will write a fix and test and ping you when the bugfix release is pushed out.

from pycalphad.

broshe avatar broshe commented on May 27, 2024

Thanks Richard,
I tried the calculation with x(Al)=0.8 instead of x(Fe)=.2. This gives the
correct results.
Eli

On Wed, Sep 9, 2015 at 11:42 PM, Richard Otis [email protected]
wrote:

As you suggested this looks like an error with sorting component names. If
you change your condition to X(AL)=0.8, which should be equivalent, the
chemical potentials are now the same as Thermo-Calc and the reported energy
is -143913.2912436. What appears to be happening is pycalphad is flipping
the component names around, so the equilibrium it's reporting is for
X(FE)=0.8. The result is correct, just for the wrong conditions. I will
write a fix and test and ping you when the bugfix release is pushed out.


Reply to this email directly or view it on GitHub
https://github.com/richardotis/pycalphad/issues/21#issuecomment-139039722
.

from pycalphad.

richardotis avatar richardotis commented on May 27, 2024

@broshe pycalphad 0.2.1 has been released, which includes a fix for this issue. pip install -U pycalphad to update. Please let me know if this resolves your issue. (Make sure the value of pycalphad.__version__ when you print it is 0.2.1, after the update.)

By the way, these are exactly the kinds of bugs I'm looking to find, so please keep on reporting and I'll fix them as quickly as I can.

from pycalphad.

broshe avatar broshe commented on May 27, 2024

Hi Richard,
I tried to install the new pycalphad
by using
pip install -U pycalphad
or
pip3 install -U pycalphad

In both cases the installation failed.
The log file is attached.
What can be done?

Thanks,
Eli

On Thu, Sep 10, 2015 at 9:55 PM, Richard Otis [email protected]
wrote:

@broshe https://github.com/broshe pycalphad 0.2.1 has been released,
which includes a fix for this issue. pip install -U pycalphad to update.
Please let me know if this resolves your issue. (Make sure the value of
pycalphad.version when you print it is 0.2.1, after the update.)

By the way, these are exactly the kinds of bugs I'm looking to find, so
please keep on reporting and I'll fix them as quickly as I can.


Reply to this email directly or view it on GitHub
https://github.com/richardotis/pycalphad/issues/21#issuecomment-139344180
.

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.