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

Rotational invariance is not supported in python API #34

Open
wenhaomao opened this issue Jul 28, 2020 · 4 comments
Open

Rotational invariance is not supported in python API #34

wenhaomao opened this issue Jul 28, 2020 · 4 comments

Comments

@wenhaomao
Copy link

I notice that new version 1.1.0 of alamode can support applying rotational symmetry to force constant. However, in python API , say ALM, this function is not implimented. The responsible module is ALM.set_constraint(). Could you give me some advice to modify the code?

@wenhaomao
Copy link
Author

The force constant file format of alamode-1.1.0 is fc.fcs. Can I use the ALM (python API) to convert the fc.fcs generated by alamode ?

@ttadano
Copy link
Owner

ttadano commented Jul 28, 2020

The application of rotational invariance is supported in alamode only when the constraint is imposed numerically (see the description of ICONST tag in alamode documentation). When the constraint is imposed algebraically, alamode only supports the translational invariance currently. Since ALM python API uses the algebraic version, it is not easy to support the rotational invariance in python API because I will need to modify the C++ part extensively.

If you think the rotational invariance is necessary for your system, I will add its support to my to-do list.

Can I use the ALM (python API) to convert the fc.fcs generated by alamode ?

This is not supported. Please perform the optimization again with the same displacement-force datasets and cutoff radii by using API.

@wenhaomao
Copy link
Author

@ttadano Thank you very much. For my recent research, yes, the rotational invariance of force constant is necessery, since I only concern the behavior of phonon dispersion relation in the long wave limit. The rotational invariance support in python API will be useful. For now, parsing the fc.fcs may be a quicker way for me.

@wenhaomao
Copy link
Author

@ttadano @atztogo I am appreciating your effort on developing usefull package! I'm back and report my method to obtain fc.hdf5, which can be used by phonopy or phono3py. Add "HESSIAN = 1" in '&general' of alamode input. After running alm, the *.hessian is created. I can easily create fc.hdf5 from hessian file by a python script.
create-fc2-hdf5-from-hessian.py.txt

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