-
Is it possible to run a POSCAR file through MACE to get the relaxed geometry of the structure and its energy? Is there any example of MACE relaxing a POSCAR, or could someone explain how to do it? Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
You can use ASE (https://wiki.fysik.dtu.dk/ase/index.html) to load the POSCAR and perform the relaxation. Use of the MACE ASE calculator is described here: https://mace-docs.readthedocs.io/en/latest/guide/ase.html. |
Beta Was this translation helpful? Give feedback.
-
you need to convert your poscar to extended xyz using ASE. (ASE can read poscars and export extended xyz). When you say "run in it through mace", it's not really clear what you mean. mace is an ml force field architecture, in order to relax anything, one needs a trained ml model. there are models that are applicable to all materials (the mp0 series of models), but whether that pre-trained model is sufficient for your purposes (in terms of accuracy) depends on the application. normally one would fine-tune the model to get more accuracy. |
Beta Was this translation helpful? Give feedback.
-
you need to convert your poscar to extended xyz using ASE. (ASE can read poscars and export extended xyz). When you say "run in it through mace", it's not really clear what you mean. mace is an ml force field architecture, in order to relax anything, one needs a trained ml model. there are models that are applicable to all materials (the mp0 series of models), but whether that pre-trained model is sufficient for your purposes (in terms of accuracy) depends on the application. normally one would fine-tune the model to get more accuracy. |
Beta Was this translation helpful? Give feedback.
-
you need to convert your poscar to extended xyz using ASE.
ASE (`ase.io.read`) can read POSCARs directly, as long as their filename is "POSCAR" or ends has the suffix ".vasp" or ".poscar" (case insensitive, I believe)
|
Beta Was this translation helpful? Give feedback.
this is an ASE question. a get_potential_energy() call is exactly that - just gives you a potential energy. browse the ASE documentation on relaxations please. (I recommend PreconLBFGS)