Comments (11)
Hi Eli, what is the value of Trange
?
from pycalphad.
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.
Okay, I can reproduce your value. Can you tell me what Thermo-Calc's value for MU(Fe) is?
from pycalphad.
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.
You appear to be correct. I've also checked the energy surface and the error becomes self-evident. I'll investigate this further.
from pycalphad.
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.
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.
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.
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.
@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.
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)
- Duplicate Species name error when parsing FactSage DAT into Database HOT 4
- Solver: convergence failure in Cr-Ti-V HOT 5
- Incomplete phase diagram HOT 4
- Cannot zoom in - ternary phase diagram HOT 4
- Pseudo binary phase diagram HOT 1
- bug in core/halton.py HOT 3
- Equilibrium not correctly reached for some temperatures
- Bug with custom model calculating entropy HOT 7
- Database: parsing integer literals with leading zeros
- Issue with importing TDB file from TDBDB HOT 3
- Calculation assigns wrong colors to phases in the legend. Sorting does not help. HOT 3
- open MatCalc open database HOT 1
- Error in equilibrium with pycalphad 0.10.2 HOT 4
- Scheil solidification result problem: fraction liquid is always 1 HOT 4
- Local Equilibrium Failiure in Pycalphad 0.10.2
- Pycalphad equilibrium convergence (no phases are seen)
- Unexpected output for calculations on Python 3.11 HOT 1
- Charged phases that cannot charge balance raise errors HOT 3
- About phase diagrams in multicomponent systems
- Database: Issue importing tdb. file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycalphad.