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

Units of positions and energy #167

Closed
njzjz opened this issue Sep 17, 2024 · 2 comments · Fixed by #168
Closed

Units of positions and energy #167

njzjz opened this issue Sep 17, 2024 · 2 comments · Fixed by #168

Comments

@njzjz
Copy link

njzjz commented Sep 17, 2024

Hi, I am wondering what the units of positions and energy are. I don't find such information either in README or in the documentation.

@marvinfriede
Copy link
Member

Everything is in atomic units. I will add this information to the docs. Thanks for the hint.

In case you are working with coordinate files, there are also reader functions. See this example from the repo or these examples.

@marvinfriede
Copy link
Member

If you need to convert units, we have some basic tools in the tad_mctc dependency. You can use it like this:

from tad_mctc import units

onebohr = 1
print(f"{onebohr} bohr is equal to {onebohr*units.AU2AA} Angstrom.")

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

Successfully merging a pull request may close this issue.

2 participants