/usr/include/BALL/PYTHON/pyConstant.h is in libball1.4-dev 1.4.3~beta1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: pyConstant.h,v 1.12 2005/12/23 17:01:57 amoll Exp $
//
#ifndef BALL_PYTHON_PYCONSTANT_H
#define BALL_PYTHON_PYCONSTANT_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
namespace BALL
{
/** Python constants namespace wrapper.
This class is a wrapper for the constants namespace.
\ingroup PythonExtensions
*/
class Constant
{
public:
// PI
static double PI;
/// Euler's number - base of the natural logarithm
static double E;
/** Internal theshold for equality comparisons.
Default value is 1e-6.
*/
static double EPSILON;
/** Elementary charge.
In units of C (\f$1.60217738 \cdot 10^{-19} C\f$).
*/
static double ELEMENTARY_CHARGE; // C
/// Elementary charge (alias)
static double e0;
/** Electron mass.
In units of kg (\f$9.1093897 \cdot 10^{-31}\f$ kg).
*/
static double ELECTRON_MASS ; // kg
/** Proton mass.
In units of kg (\f$1.6726230 \cdot 10^{-27}\f$ kg).
*/
static double PROTON_MASS ; // kg
/** Neutron mass.
In units of kg (\f$1.6749286 \cdot 10^{-27}\f$ kg).
*/
static double NEUTRON_MASS ; // kg
/** Avogadro constant.
In units of \f$mol^{-1}\f$ (\f$6.0221367 \cdot 10^{23} mol^{-1}\f$).
*/
static double AVOGADRO;
/** Avogadro constant (alias)
*/
static double NA;
/** Avogadro constant (alias)
*/
static double MOL;
/** Boltzmann constant.
In units of J/K (\f$1.380657 \cdot 10^{-23}\f$ J/K).
*/
static double BOLTZMANN;
/** Boltzmann constant (alias)
*/
static double k;
/** Planck constant.
In units of Js (\f$6.6260754 \cdot 10^{-34}\f$ Js).
*/
static double PLANCK;
/** Planck constant (alias)
*/
static double h;
/** Gas constant (= NA * k)
*/
static double GAS_CONSTANT;
/** Gas constant (alias)
*/
static double R;
/** Faraday constant (= NA * e0)
*/
static double FARADAY;
/** Faraday constant (alias)
*/
static double F;
/** Bohr radius.
In units m (\f$5.29177249 \cdot 10^{-11}\f$ m).
*/
static double BOHR_RADIUS;
/** Bohr radius (alias)
*/
static double a0;
// the following values from:
// P.W.Atkins: Physical Chemistry, 5th ed., Oxford University Press, 1995
/** Vacuum permittivity.
In units of $C^2J^{-1}m^{-1}$ ($8.85419 \cdot 10^{-12} C^2J^{-1}m^{-1}$).
*/
static double VACUUM_PERMITTIVITY;
/** Vacuum permeability.
In units of \f$Js^2C^{-2}m^{-1}\f$ (\f$4\pi \cdot 10^{-7} Js^2C^{-2}m^{-1}\f$).
*/
static double VACUUM_PERMEABILITY;
/** Speed of light.
In units of m/s (\f$2.99792458 \cdot 10^8 ms^{-1}\f$).
*/
static double SPEED_OF_LIGHT;
/** Speed of Light (alias)
*/
static double c;
/** Gravitational constant.
In units of \f$Nm^2kg^{-2}\f$ (\f$6.67259 \cdot 10^{-11} Nm^2kg^{-2}\f$).
*/
static double GRAVITATIONAL_CONSTANT;
/** Fine structure constant.
Without unit (\f$7.29735 \cdot 10^{-3}\f$).
*/
static double FINE_STRUCTURE_CONSTANT;
/** Degree per rad.
57.2957795130823209
*/
static double DEG_PER_RAD;
/** Rad per degree.
0.0174532925199432957
*/
static double RAD_PER_DEG;
/** mm per inch.
25.4
*/
static double MM_PER_INCH ;
/** m per foot.
3.048
*/
static double M_PER_FOOT ;
/** Joules per calorie.
4.184
*/
static double JOULE_PER_CAL;
/** Calories per Joule.
1/JOULE_PER_CAL
*/
static double CAL_PER_JOULE;
};
} // namespace BALL
#endif // BALL_PYTHON_PYCONSTANT_H
|