-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module with physical constants, mk_input return reference_parameters
- Loading branch information
1 parent
6293496
commit fdac38e
Showing
5 changed files
with
49 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
""" | ||
Some physical constants | ||
""" | ||
module constants | ||
|
||
export epsilon0, mu0 | ||
export electron_mass | ||
export proton_charge, proton_mass | ||
export deuteron_mass | ||
export amu | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?ep0 | ||
const epsilon0 = 8.8541878128e-12 # F m^-1 | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?mu0 | ||
const mu0 = 1.25663706212e-6 # N A^-2 | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?me | ||
const electron_mass = 9.109383701e-31 # kg | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?e | ||
const proton_charge = 1.602176634e-19 # C | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?mp | ||
const proton_mass = 1.67262192369e-27 # kg | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?md | ||
const deuteron_mass = 3.3435837724e-27 | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?ukg | ||
const amu = 1.66053906660e-27 | ||
|
||
end |
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
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