Skip to content

Commit

Permalink
✨ Add conversion constants for a.u. to GPa
Browse files Browse the repository at this point in the history
  • Loading branch information
Minotakm committed May 8, 2024
1 parent b8c2593 commit cf00438
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit cf00438

Please sign in to comment.