There are different ways how to select a pseudo potential for a VASP calculation in pyiron. In the following the different ways are briefly introduced.
Select a pseudo potential for all atoms of a specific element:
from pyiron_atomistics import Project
Al_sv_GW = pr.create_element(
new_element_name="Al_sv_GW",
parent_element="Al",
potential_file="Al_sv_GW",
)
Al_GW = pr.create_element(
new_element_name="Al_GW",
parent_element="Al",
potential_file="Al_GW",
)
pr = Project("test")
job = pr.create.job.Vasp("vasp")
structure = pr.create.structure.ase.bulk("Al", cubic=True)
structure[:] = Al_GW
structure[0] = Al_sv_GW
job.structure = structure
job.server.run_mode.manual = True
job.run()
for l in job["POTCAR"]:
if "PAW_PBE" in l:
print(l)
There is currently a bug in this second method of setting the pseudo potentials in the way that when the structure[:] = Al_GW line is not executed and there is no default potential set for all elements of a given species, then the line which should only overwrite the potential of the first element structure[0] = Al_sv_GW accidentally overwrites the potential for all elements.
Furthermore, setting the absolute path also does not work with the creation of new elements at the moment.
There are different ways how to select a pseudo potential for a VASP calculation in pyiron. In the following the different ways are briefly introduced.
Select a pseudo potential for all atoms of a specific element:
Use the internal pseudo potentials:
Use your own pseudo potential based on the absolute path:
Select a pseudo potential for specific elements
https://pyiron.readthedocs.io/en/latest/source/faq.html#how-to-use-a-custom-pseudo-potential-in-vasp
There is currently a bug in this second method of setting the pseudo potentials in the way that when the
structure[:] = Al_GW
line is not executed and there is no default potential set for all elements of a given species, then the line which should only overwrite the potential of the first elementstructure[0] = Al_sv_GW
accidentally overwrites the potential for all elements.Furthermore, setting the absolute path also does not work with the creation of new elements at the moment.