-
Notifications
You must be signed in to change notification settings - Fork 114
FIX: Molar volume model fixes #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: Molar volume model fixes #501
Conversation
- MV is renamed VM to be consistent with other properties - Molar volume model parameters (V0, VA, VK, VC) are now set as attributes - Molar volume model parameters are now property normalized per mole of atoms
cc @mfrichtl as this might be relevant to you |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #501 +/- ##
========================================
Coverage 90.47% 90.47%
========================================
Files 50 50
Lines 7871 7871
========================================
Hits 7121 7121
Misses 750 750 ☔ View full report in Codecov by Sentry. |
@bocklund Glad to see improvements here since I'm definitely familiar enough with the nuts and bolts of pycalphad to get it right on my first try. Maybe I was just getting lucky with my testing that the site ratio normalization didn't impact me. Unfortunately I don't know more about how the other terms are defined, but I see now in one of my references that at least |
If you were looking at simple bcc/fcc/hcp phases, it's not too surprising to miss the normalization. I was able to at least confirm that V0 is per mole of formula (consistent with some refs I've seen with sigma phase molar volume modeling), and I don't have any databases for that have VA parameters for phases with more than 1 mole of formula units that I've found published, but I verified that Thermo-Calc treats VA parameters are per mole of atoms (which was surprising). My suspicion is VK/VC are the same, but I'm not sure |
@bocklund Yes, I was only looking at BCC and FCC phases while assuming interstitials as zero volume species, so I think the site normalization would not have affected my results. I should have thought about it though since that's how CALPHAD works. It is odd that VA parameters are given per mole of atoms. I really don't know about the other parameters either. All of my modeling to date has been at atmospheric pressure and my limited attempts to get that portion of the model working failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new test for the symbol replacement behavior would be nice, but I think it's alright to move forward regardless, especially as how properties work will change with the Workspace API PR.
V0
,VA
,VK
,VC
) as attributes ofModel
. Not sure aboutVK
andVC
parameter normalization, but for now I'm assuming they are the same normalizationVA
(parameters stored per mole of atoms, rather than the usual per mole of formula)VM
, rather thanMV
, which is more consistent with commercial software and handling molar quantitiesFUNCTION
TDB keywords (which become symbols) get set to zero when computing incalculate
orequilibrium