Stress Tensor Information in ChIMES

31 views
Skip to first unread message

Justin D'Souza

unread,
Nov 28, 2024, 2:07:35 AM11/28/24
to ChIMES
Hello,

I trained a ChIMES model using a force-only fit that works quite well for my purposes. I recently looked to improve the model by re-training it with stresses included in the fit. However, I noticed some inconsistencies between how the different ChIMES codes handle stress information. 

For starters, I noticed that the version of vasp2xyzf.py that I had reads stresses from OUTCAR incorrectly if a frame skip "skipth" is specified. The stresses that are printed for frame number "Nf"  actually correspond to frame "Nf-skipth". 

Also, the stresses are listed in OUTCAR (in kB) in the following order: XX, YY, ZZ, XY, YZ         ZX. But chimes_lsq  prints  (in b-labeled.txt) stresses in a different order: XX, YY, ZZ, XY, XZ, YZ. So the order of the last two components are switched. Finally, the chimes_lsq documentation  (https://chimes-lsq.readthedocs.io/en/latest/lsq_input_file.html#sec-input-files) states that the .xyzf file should contain stresses in the following order: XX, XY, XZ, YY, YZ, ZZ. 

I want to make sure that ChIMES really is reading and fitting the correct DFT stresses. What is the correct way to include stresses? Is this something that has been addressed in a more recent version of the code? 

Thank you!

Best,
Justin D'Souza

Pham, Huy

unread,
Jan 6, 2025, 5:49:55 PMJan 6
to Justin D'Souza, ChIMES

Hi Justin,

 

You have identify the problem: the python script (vasp2xyzf.py) exports the stress tensor components as XX, YY, ZZ, XY, YZ, XZ, while chimes_lsq reads as XX, YY, ZZ, XY, XZ, YZ.

The easiest solution to your problem is to modify vasp2xyz.py to export the stresses as XX, YY, ZZ, XY, XZ, YZ.

 

Let’s know if you have any questions.

 

Best,

 

Huy

 

----------------------------------------------------------

C. Huy Pham

Staff Scientist

Lawrence Livermore National Laboratory

Physical and Life Sciences Directorate

Materials Science Division, L-287

7000 East Ave, Livermore, CA 94550

Phone: (925) 422-7881

 

--
You received this message because you are subscribed to the Google Groups "ChIMES" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chimes_softwa...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chimes_software/b0bdbd0e-9b6e-48b3-93de-19408aa46d9en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages