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

How to change cutoff and displacement when using NEP potential to calculate phonon dispersion? #4

Closed
BianTieyuan opened this issue Jun 6, 2024 · 3 comments

Comments

@BianTieyuan
Copy link

Hi,

I noticed that in GPUMD tutorial. The cutoff and displacement can be changed in compute_phonon keyword of run.in. However I did not see how to change this in mdapy phonon calculation tutorial (https://mdapy.readthedocs.io/en/latest/gettingstarted/calculate_phonon.html)? Is there any method to revise the paramters in phonon calculations?

Tieyuan

@mushroomfire
Copy link
Owner

Hi @BianTieyuan

The cutoff distance in mdapy refers to the intrinsic distance in the NEP potential, as defined by the user, which is utilized to calculate the force constants. I believe there is no need for modification here. In terms of displacements, the current implementation employs the default value suggested by Phonopy, which is 0.01 angstroms, to generate displaced structures. It would be straightforward to enhance the interface to allow users to modify this value. I plan to implement this feature in the next version.

Yongchao

@BianTieyuan
Copy link
Author

Thanks for your reply @mushroomfire! I'm looking forward for your implement. It seems that cutoff setting in NEP phonon calculation still have some misunderstanding between several developers.

@mushroomfire
Copy link
Owner

Hi @BianTieyuan , I have implemented the displacement and cutoff_radius parameter in Phonon class. Try the newest version of mdapy. Note that the mdapy calculates the force constant using the whole supercell, the cutoff_radius will set the force constant outer than it to zero. Hence if you want to test the effects of the cutoff distance, you can first use a big supercell, and then modify the cutoff_radius to check the effects.

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

2 participants