xdesign.constants

Constants in cgs units.

xdesign.constants.AVOGADRO_NUMBER

Avagadro constant [1/mol]

Type

float

xdesign.constants.BOLTZMANN_CONSTANT

Boltzmann constant [erg/k]

Type

float

xdesign.constants.CLASSICAL_ELECTRON_RADIUS

Classical electron radius [cm]

Type

float

xdesign.constants.ELECTRONIC_CHARGE

Electronic charge [esu]

Type

float

xdesign.constants.ELECTRON_VOLT

Electron volt (keV) [erg]

Type

float

xdesign.constants.ELECTRON_MASS

Electron mass [g]

Type

float

xdesign.constants.FINE_STRUCTURE_CONSTANT

Fine structure constant

Type

float

xdesign.constants.PLANCK_CONSTANT

Reduced planck’s constant [keV*s]

Type

float

xdesign.constants.PROTON_MASS

Proton mass [g]

Type

float

xdesign.constants.SPEED_OF_LIGHT

Speed of light in vacuum [cm/s]

Type

float

xdesign.constants.THOMPSON_CROSS_SECTION

Thomson cross section [cm^2]

Type

float

xdesign.constants.PI

Ratio of a circle’s circumference to its diameter

Type

float

xdesign.constants.wavelength(energy)[source]

Return wavelength [cm] of light given energy [keV].