-
Notifications
You must be signed in to change notification settings - Fork 103
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
Move elastic workflow to common and build force-field elastic workflow #581
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #581 +/- ##
==========================================
- Coverage 75.49% 75.41% -0.08%
==========================================
Files 80 83 +3
Lines 6728 6793 +65
Branches 992 1001 +9
==========================================
+ Hits 5079 5123 +44
- Misses 1343 1360 +17
- Partials 306 310 +4
|
I have a first version of the elasticworkflow for forcefields as well. I had to adapt the forcefield schema (voigt vs matrix output). Is there any benchmark of CHGNet for elastic tensors already that I could use to compare the outputs to? (@janosh ?) At the moment, the output looks very off to me. (Could be still a bug related to the units in here). |
Sorry to say there's neither an elasticity benchmark yet nor would I be very surprised if the predictions are off by a lot. There's some good news though. Following the fix in CederGroupHub/chgnet#79, @BowenD-UCB has trained a CHGNet that no longer exhibits the bulk modulus issue described in https://matsci.org/t/51421. The new checkpoint will be part of the upcoming |
Thanks! I just currently get a bulk modulus of k_vrh=1326.28 GPa for Si. Looks very off to me. I will try with Aluminiumm now. At least, I have something to compare to. |
@utf tests seem to pass. The only thing that I am still worried about are the results for CHGNet that are very off (potentially, however, it's just CHGNet itself.) |
With a good GAP potential from an old paper, I still don't get very good results. I fear there might be still something wrong. |
Found the error. Stresses are simply not in the correct unit (kbar). They were in (eV/Angstrom^3)*10 😅. With the GAP potential from https://journals.aps.org/prx/pdf/10.1103/PhysRevX.8.041048, I computed a bulk modulus of around 88 GPa. In the paper, they have computed one of ~88.6 GPa (DFT, with GAP they say they have 0÷ rel error). I think this is fine now. |
@janosh Could you check the tests, please? I think they have started to randomly fail since you merged your lastest changes. |
@utf ready to be reviewed whenever you have time. |
Tests are hopefully finally all passing. The forcefields don't produce very consistent results ... |
Thanks @JaGeo! This is a great feature to have. |
Thank you, @utf ! |
@JaGeo how inconsistent are we talking? |
I cannot use an absolute tol of 1e-3. Switched to 1e-1 for the bulk moduli. I haven't tested systematically, however. Depending on the Python version, the results were always a bit different. I hope this partially answers your question, @matthewkuner |
Summary
I have moved the elastic workflow to common using similar design strategies as discussed in #562
Tests are running through.
In the next step, I will work on a elastic workflow for the force fields and tests. I think this shouldn't be too much work but might need some testing with regard to plausible elastic constants ;).