Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

Constant Class Reference
[Python extensions]

Python constants namespace wrapper. More...

#include <pyConstant.h>

List of all members.

Static Public Attributes

double PI
double E
 Euler's number - base of the natural logarithm.
double EPSILON
 Internal theshold for equality comparisons.
double ELEMENTARY_CHARGE
 Elementary charge.
double e0
 Elementary charge (alias).
double ELECTRON_MASS
 Electron mass.
double PROTON_MASS
 Proton mass.
double NEUTRON_MASS
 Neutron mass.
double AVOGADRO
 Avogadro constant.
double NA
 Avogadro constant (alias).
double MOL
 Avogadro constant (alias).
double BOLTZMANN
 Boltzmann constant.
double k
 Boltzmann constant (alias).
double PLANCK
 Planck constant.
double h
 Planck constant (alias).
double GAS_CONSTANT
 Gas constant (= NA * k).
double R
 Gas constant (alias).
double FARADAY
 Faraday constant (= NA * e0).
double F
 Faraday constant (alias).
double BOHR_RADIUS
 Bohr radius.
double a0
 Bohr radius (alias).
double VACUUM_PERMITTIVITY
 Vacuum permittivity.
double VACUUM_PERMEABILITY
 Vacuum permeability.
double SPEED_OF_LIGHT
 Speed of light.
double c
 Speed of Light (alias).
double GRAVITATIONAL_CONSTANT
 Gravitational constant.
double FINE_STRUCTURE_CONSTANT
 Fine structure constant.
double DEG_PER_RAD
 Degree per rad.
double RAD_PER_DEG
 Rad per degree.
double MM_PER_INCH
 mm per inch.
double M_PER_FOOT
 m per foot.
double JOULE_PER_CAL
 Joules per calorie.
double CAL_PER_JOULE
 Calories per Joule.


Detailed Description

Python constants namespace wrapper.

This class is a wrapper for the constants namespace.


Member Data Documentation

double Constant::AVOGADRO [static]
 

Avogadro constant.

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

double Constant::BOHR_RADIUS [static]
 

Bohr radius.

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

double Constant::BOLTZMANN [static]
 

Boltzmann constant.

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

double Constant::CAL_PER_JOULE [static]
 

Calories per Joule.

1/JOULE_PER_CAL

double Constant::DEG_PER_RAD [static]
 

Degree per rad.

57.2957795130823209

double Constant::ELECTRON_MASS [static]
 

Electron mass.

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

double Constant::ELEMENTARY_CHARGE [static]
 

Elementary charge.

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

double Constant::EPSILON [static]
 

Internal theshold for equality comparisons.

Default value is 1e-6.

double Constant::FINE_STRUCTURE_CONSTANT [static]
 

Fine structure constant.

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

double Constant::GRAVITATIONAL_CONSTANT [static]
 

Gravitational constant.

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

double Constant::JOULE_PER_CAL [static]
 

Joules per calorie.

4.184

double Constant::M_PER_FOOT [static]
 

m per foot.

3.048

double Constant::MM_PER_INCH [static]
 

mm per inch.

25.4

double Constant::NEUTRON_MASS [static]
 

Neutron mass.

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

double Constant::PLANCK [static]
 

Planck constant.

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

double Constant::PROTON_MASS [static]
 

Proton mass.

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

double Constant::RAD_PER_DEG [static]
 

Rad per degree.

0.0174532925199432957

double Constant::SPEED_OF_LIGHT [static]
 

Speed of light.

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

double Constant::VACUUM_PERMEABILITY [static]
 

Vacuum permeability.

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

double Constant::VACUUM_PERMITTIVITY [static]
 

Vacuum permittivity.

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