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

Added the the Hartree and Bohr value in SI, and defined the atomic units to GPa conversion. #76

Merged
merged 5 commits into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/qe_tools/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
timeau_to_sec=2.418884326155573e-17,
invcm_to_THz=0.0299792458,

## Values taken from https://gitlab.com/QEF/q-e/-/blob/develop/Modules/constants.f90
ha_si=4.3597447222071e-18, # J
bohr_si=0.529177210903e-10, # m
# From the definition of Quantum ESPRESSO, conversion from atomic mass
# units to Rydberg units:
# REAL(DP), PARAMETER :: AMU_SI = 1.660538782E-27_DP ! Kg
Expand All @@ -34,3 +37,4 @@

DEFAULT.hartree_to_ev = DEFAULT.ry_to_ev * 2.
DEFAULT.bohr_si = DEFAULT.bohr_to_ang * DEFAULT.ang_to_m
DEFAULT.au_gpa = DEFAULT.ha_si / (DEFAULT.bohr_si**3.) / 1.0e9
Loading