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

Add functionality for generating quick first shell EXAFS models #514

Open
maurov opened this issue Apr 26, 2024 · 2 comments
Open

Add functionality for generating quick first shell EXAFS models #514

maurov opened this issue Apr 26, 2024 · 2 comments

Comments

@maurov
Copy link
Member

maurov commented Apr 26, 2024

As discussed at the latest developers meeting, it would nice to have a function that generates a simple cluster of atoms and runs a FEFF calculation on it. Something like:

first_shell_model(absorbing_atom, scattering_atom, distance_in_ang, coordination=1):

Such function can then be wrapped in a Jupyter notebook and in the Larix GUI. Furthermore, a database of standard configurations should be built out of it.

@Ameyanagi
Copy link
Contributor

I was wondering what would be a good API to deal with elements with multiple sites.
For example, Co3O4, has tetrahedral sites and octahedral sites for the Co, which makes the api a little harder.

@maurov
Copy link
Member Author

maurov commented Apr 26, 2024

I was wondering what would be a good API to deal with elements with multiple sites. For example, Co3O4, has tetrahedral sites and octahedral sites for the Co, which makes the api a little harder.

For this case, I would simply do:

 # build the cluster and generate feff.inp
co3o4_td = first_shell_model('Co', 'O', 1.943, coordination=4, run=False)
co3o4_oh = first_shell_model('Co', 'O', 1.912, coordination=6, run=False)
# run FEFF
co3o4_td.run()
co3o4_oh.run()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants