Giter VIP home page Giter VIP logo

Comments (4)

richardotis avatar richardotis commented on June 24, 2024 1

As a workaround, you can try altering the sampling point density:
eq = equilibrium(dbf, ['FE','C','VA'], phases, {v.N:1, v.P:1e5, v.T:T, v.X('C'):0.0053}, verbose=True, calc_opts={'pdens': 500})

from pycalphad.

tobiasspt avatar tobiasspt commented on June 24, 2024 1

Hi @richardotis,

Thanks for having a look at this issue!
Yes sure, you can use the TDB in your test suite. (Just be aware that the current parameters are not the 'correct' ones to give the correct phase boundaries of the Fe-C system.)

Cheers,
Tobias

from pycalphad.

richardotis avatar richardotis commented on June 24, 2024

I'm able to reproduce this error, which is a bug. What's happening is that the minimizer is returning a non-physical solution of four stable phases, when only two are allowed by the Gibbs phase rule for the given conditions. (pycalphad will tolerate one extra stable phase (which is where the 3 comes from), to catch invariant reactions.)

The change in behavior is (probably) because of the bugfix in #428 which is causing the minimizer to return a different starting point than in 0.10.1. That fix has apparently uncovered another bug here. It should be impossible for the minimizer to return a solution that violates the Gibbs phase rule. I'm investigating it now.

from pycalphad.

richardotis avatar richardotis commented on June 24, 2024

@tobiasspt I've put together a solution to fix this issue in the minimizer. Is it alright to put the example TDB into the test suite so we can ensure this bug stays fixed?

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.