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

ERROR: pair_mace does not support vflag_atom when run lammps-mace #756

Open
liubaoshuai1402 opened this issue Dec 18, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@liubaoshuai1402
Copy link

liubaoshuai1402 commented Dec 18, 2024

Dear developers,

I want to calculate the thermal conductivity of my bulk phase by MACE potential using the Green-Kubo (GK) formula in LAMMPS.

But lammps report an error: pair_mace does not support vflag_atom when i use cpu-calculation.
lammps report an error: mace/kokkos eflag_atom and/or vflag_atom not implemented. (src/KOKKOS/pair_mace_kokkos.cpp:82 when i use gpu-calculation.

I am not a lammps expert, but if vflag_atom and eflag_atom are frequently used in lammps, why mace don't support them in lammps. Is it a technical problem? Do you plan to add this support in the future?

Is there any alternatives to calculate the thermal conductivity by MD methods using MACE potential?
If you need my input file of lammps, i will supply.

vflag_atom will be set in lammps when calculating per-atom stress which is need by the Green-Kubo (GK) formula

@ilyes319
Copy link
Contributor

I guess vflag_atom means atomic virials? This not computed right now in MACE. I think there is a PR here: you could give it a try:#528

@liubaoshuai1402
Copy link
Author

liubaoshuai1402 commented Dec 19, 2024

I guess vflag_atom means atomic virials? This not computed right now in MACE. I think there is a PR here: you could give it a try:#528

I have tried the custom MACE, but one thing I want to consult with you.
Since Iammps uses MACE potential to calculate atomic virials, should I consider virials in my training set, or just energy and forces is enough?
If virials are needed and the weight of forces an energy is respectively 10 and 1, how much the weight of virial should be set?

@gabor1
Copy link
Collaborator

gabor1 commented Dec 19, 2024

If you have virials (stresses) in your training set, it's always good to include them

@ilyes319 ilyes319 added the enhancement New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants