-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbd3890
commit b5915a5
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
import numpy as np | ||
from scipy import constants | ||
|
||
DIELECTRIC = 1389.35455846 | ||
SQRT_PI = np.sqrt(np.pi) | ||
|
||
SQRT_PI = np.sqrt(np.pi) | ||
|
||
J2EV = constants.physical_constants["joule-electron volt relationship"][0] | ||
# from kJ/mol to eV/particle | ||
ENERGY_COEFF = J2EV * constants.kilo / constants.Avogadro | ||
|
||
# vacuum electric permittivity in eV^-1 * angstrom^-1 | ||
EPSILON = constants.epsilon_0 / constants.elementary_charge * constants.angstrom | ||
# DIELECTRIC = 1389.35455846 | ||
DIELECTRIC = 1 / (4 * np.pi * EPSILON) / ENERGY_COEFF |