-
Dear Yu Xie, I've been using flare otf training with sgp. I noticed one problem during this process. My structure was relaxed with VASP before being used for otf training, I used VASP setup ISIF=3 which means the unit cell length and angles are also relaxed. The final unit cell is described in 9 parameters. The same structure in LAMMPS will describe the unit cell in 6 parameters, which means there is a coordinate transformation between the VASP & LAMMPS structure. I checked your source code about how you defined the "flare_atom" object and how you used the "get_forces" method from ASE to extract the forces information from both VASP & LAMMPS results. My question: Is the difference in the coordinate system considered? It seems to me that this coordinate difference will cause forces direction difference because it's rotated. When otf training is trying to minimize the "forces mae", does it consider this rotation? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The stress tensor is 3x3 but only has 6 degrees of freedom xx, yy, zz, xy, xz, yz. For example, for a given ase atoms you can choose There might be a wrapping by lammps when you input your vasp structure. But it does not matter since it is not a global "rotation" but just shifting the periodic boundary, so the forces on each atom won't change. Also the otf training is not trying to minimize the force MAE, the active learning is not training a neural network and minimizing the loss function. It just tries to detect and collect uncertain configurations |
Beta Was this translation helpful? Give feedback.
Thank you for the explanation. We don't do a global rotation within the flare code, so if you have two cells where one is rotated and the other is not, then you will get mismatched forces. I think for now the best way is to alway preprocessing your vasp relaxed structure to align the x-axis, before you start training and also the testing.