-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
2 changed files
with
105 additions
and
14 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,43 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Constants in cgs units. | ||
AVOGADRO_NUMBER : float | ||
Avagadro constant [1/mol] | ||
BOLTZMANN_CONSTANT : float | ||
Boltzmann constant [erg/k] | ||
CLASSICAL_ELECTRON_RADIUS : float | ||
Classical electron radius [cm] | ||
ELECTRONIC_CHARGE : float | ||
Electronic charge [esu] | ||
ELECTRON_VOLT : float | ||
Electron volt (keV) [erg] | ||
ELECTRON_MASS : float | ||
Electron mass [g] | ||
FINE_STRUCTURE_CONSTANT : float | ||
Fine structure constant | ||
PLANCK_CONSTANT : float | ||
Reduced planck's constant [keV*s] | ||
PROTON_MASS : float | ||
Proton mass [g] | ||
SPEED_OF_LIGHT : float | ||
Speed of light in vacuum [cm/s] | ||
THOMPSON_CROSS_SECTION : float | ||
Thomson cross section [cm^2] | ||
PI : float | ||
Ratio of a circle's circumference to its diameter | ||
""" | ||
|
||
# Constants in cgs units. | ||
AVOGADRO_NUMBER = 6.02214129e+23 | ||
BOLTZMANN_CONSTANT = 1.3806488e-16 | ||
CLASSICAL_ELECTRON_RADIUS = 2.8179402894e-13 | ||
ELECTRONIC_CHARGE = 4.80320425e-10 | ||
ELECTRON_VOLT = 1.602176565e-9 | ||
ELECTRON_MASS = 9.10938188e-28 | ||
FINE_STRUCTURE_CONSTANT = 7.2973525698e-3 | ||
PLANCK_CONSTANT = 6.58211928e-19 | ||
PROTON_MASS = 1.67261777e-24 | ||
SPEED_OF_LIGHT = 299792458e+2 | ||
THOMPSON_CROSS_SECTION = 6.652458734e-25 | ||
PI = 3.14159265359 |
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
533068f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dgursoy Why define PI when it's already defined through numpy library?
533068f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by mistake
533068f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#14