You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently trying to use activity data for Fe-C. Lobo1976 measured the activity of C in alpha-iron relative to Graphite as the standard state, but get erroneous results. (Lobo, Joseph A., and Gordon H. Geiger. "Thermodynamics and solubility of carbon in ferrite and ferritic Fe-Mo alloys." Metallurgical Transactions A 7.8 (1976): 1347-1357.)
I have added the input file below. With this input file, we get chemical potential difference: [nan] (verbosity 3 output).
Is the input file correct or are we missing something?
I have had a look at the value of ref_result within the activity_error.py and this does give only nan results for the specified reference state. Graphite only has C as a component. An equilibrium calculation of Graphite specifying x.V('C') gives an error as Number of dependent components different from one. Can this cause an error here as well?
Used versions: espei: 0.8.6 and pycalphad 0.9.2.
I have added a zip-file with the TDB file and espei input files which reproduces this behaviour.
I suspect it's from doing this calculation at the edge of composition space, where there's no mass of Fe and the Fe chemical potentials become undefined. There are some rudimentary cases where pycalphad can nudge you off the edge of composition space, but that won't help here because there's no Fe present in any of the phases in the chosen reference state (just graphite).
There's undocumented support in other places in the codebase for defining the reference state per element as something like the following, but it's not supported for activity data yet.
I will try to add support for using these kind of reference states for activity data, such that the equivalent equilibrium calculation for the reference state would be:
Hi,
We are currently trying to use activity data for Fe-C. Lobo1976 measured the activity of C in alpha-iron relative to Graphite as the standard state, but get erroneous results. (Lobo, Joseph A., and Gordon H. Geiger. "Thermodynamics and solubility of carbon in ferrite and ferritic Fe-Mo alloys." Metallurgical Transactions A 7.8 (1976): 1347-1357.)
I have added the input file below. With this input file, we get
chemical potential difference: [nan]
(verbosity 3 output).Is the input file correct or are we missing something?
I have had a look at the value of
ref_result
within theactivity_error.py
and this does give onlynan
results for the specified reference state. Graphite only has C as a component. An equilibrium calculation of Graphite specifyingx.V('C')
gives an error asNumber of dependent components different from one
. Can this cause an error here as well?Used versions: espei: 0.8.6 and pycalphad 0.9.2.
I have added a zip-file with the TDB file and espei input files which reproduces this behaviour.
Thank you for your help,
Tobias
minimal_example.zip
The text was updated successfully, but these errors were encountered: