BALL::Constant Class Reference
[Python extensions]

#include <BALL/PYTHON/pyConstant.h>

List of all members.


Static Public Attributes

static double PI
static double E
 

Euler's number - base of the natural logarithm.


static double EPSILON
static double ELEMENTARY_CHARGE
static double e0
 

Elementary charge (alias).


static double ELECTRON_MASS
static double PROTON_MASS
static double NEUTRON_MASS
static double AVOGADRO
static double NA
static double MOL
static double BOLTZMANN
static double k
static double PLANCK
static double h
static double GAS_CONSTANT
static double R
static double FARADAY
static double F
static double BOHR_RADIUS
static double a0
static double VACUUM_PERMITTIVITY
static double VACUUM_PERMEABILITY
static double SPEED_OF_LIGHT
static double c
static double GRAVITATIONAL_CONSTANT
static double FINE_STRUCTURE_CONSTANT
static double DEG_PER_RAD
static double RAD_PER_DEG
static double MM_PER_INCH
static double M_PER_FOOT
static double JOULE_PER_CAL
static double CAL_PER_JOULE

Detailed Description

Python constants namespace wrapper. This class is a wrapper for the constants namespace.


Member Data Documentation

Bohr radius (alias)

Avogadro constant. In units of $mol^{-1}$ ($6.0221367 \cdot 10^{23} mol^{-1}$).

Bohr radius. In units m ($5.29177249 \cdot 10^{-11}$ m).

Boltzmann constant. In units of J/K ($1.380657 \cdot 10^{-23}$ J/K).

Speed of Light (alias)

Calories per Joule. 1/JOULE_PER_CAL

Degree per rad. 57.2957795130823209

Euler's number - base of the natural logarithm.

Elementary charge (alias).

Electron mass. In units of kg ($9.1093897 \cdot 10^{-31}$ kg).

Elementary charge. In units of C ($1.60217738 \cdot 10^{-19} C$).

Internal theshold for equality comparisons. Default value is 1e-6.

Faraday constant (alias)

Faraday constant (= NA * e0)

Fine structure constant. Without unit ($7.29735 \cdot 10^{-3}$).

Gas constant (= NA * k)

Gravitational constant. In units of $Nm^2kg^{-2}$ ($6.67259 \cdot 10^{-11} Nm^2kg^{-2}$).

Planck constant (alias)

Joules per calorie. 4.184

Boltzmann constant (alias)

m per foot. 3.048

mm per inch. 25.4

Avogadro constant (alias)

Avogadro constant (alias)

Neutron mass. In units of kg ($1.6749286 \cdot 10^{-27}$ kg).

Planck constant. In units of Js ($6.6260754 \cdot 10^{-34}$ Js).

Proton mass. In units of kg ($1.6726230 \cdot 10^{-27}$ kg).

Gas constant (alias)

Rad per degree. 0.0174532925199432957

Speed of light. In units of m/s ($2.99792458 \cdot 10^8 ms^{-1}$).

Vacuum permeability. In units of $Js^2C^{-2}m^{-1}$ ($4\pi \cdot 10^{-7} Js^2C^{-2}m^{-1}$).

Vacuum permittivity. In units of $C^2J^{-1}m^{-1}$ ($8.85419 10^{-12} C^2J^{-1}m^{-1}$).