Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
mmtk
Commits
7208b4a1
Commit
7208b4a1
authored
Feb 06, 2019
by
Remi Perenon
Browse files
Updating units and huge mistake on coulomb units (MMTK commits 513b27c and a5fb7cd)
parent
255b8a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
MMTK/Units.py
View file @
7208b4a1
...
...
@@ -117,7 +117,7 @@ invcm = c/cm
# Avogadro number
Nav
=
6.0221
367
e23
Nav
=
6.0221
4129
e23
# Mass units
# internal unit: amu (= g/mol)
...
...
@@ -149,7 +149,7 @@ dyn = 1.e-5*N
# internal unit: charge in e
e
=
1.
C
=
6.24150
636309
e18
*
e
# Coulomb (SI)
C
=
6.24150
934326018
e18
*
e
# Coulomb (SI)
A
=
C
/
s
# Ampere (SI)
D
=
1.e-15
*
C
/
c
# Debye
V
=
J
/
C
# Volt
...
...
@@ -172,12 +172,12 @@ atm = 101325*Pa # atmosphere
# Constants
h
=
6.626
176
e-34
*
J
*
s
h
=
6.626
06957
e-34
*
J
*
s
hbar
=
h
/
(
2.
*
numpy
.
pi
)
k_B
=
1.3806
513
e-23
*
J
/
K
k_B
=
1.3806
488
e-23
*
J
/
K
eps0
=
1.
/
(
4.e-7
*
numpy
.
pi
)
*
A
**
2
*
m
/
J
/
c
**
2
me
=
0.51099
906
*
mega
*
eV
/
c
**
2
me
=
0.51099
8928
*
mega
*
eV
/
c
**
2
electrostatic_energy
=
1
/
(
4.
*
numpy
.
pi
*
eps0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment