Skip to content
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

Stress units for force field training #177

Open
GurjotDhaliwal opened this issue Jan 14, 2025 · 0 comments
Open

Stress units for force field training #177

GurjotDhaliwal opened this issue Jan 14, 2025 · 0 comments

Comments

@GurjotDhaliwal
Copy link

Hi,

I am using ALIGNN for a DFT dataset and need to include stress term in the training. I am using ase to read VASP OUTCAR and converting the stress into GPa using the formula below.
int_stress = traj[0].get_stress(voigt=False)*(-160.21766208)

I am hoping this should convert the DFT stress values to be aligned with as expected by ALIGN model. Can you please confirm if that's the case or I should use different formula to pull the stress values from the VASP.

As a reference I am also attaching code snippet from AlignAtomwiseCalculator.

stress = ( -1 * 160.21766208 * ( torch.matmul(r.T, pair_forces) # / (2 * g.edata["V"]) / (2 * g.ndata["V"][0]) ) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant