KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > physics > PhysicalConstants


1 package JSci.physics;
2
3 import JSci.maths.NumericalConstants;
4
5 /**
6 * A collection of fundamental physical constants.
7 * All values expressed in SI units.
8 * (Source: CODATA Bulletin No. 63 Nov 1986)
9 * @version 1.0
10 * @author Mark Hale
11 */

12 public interface PhysicalConstants extends NumericalConstants {
13         /**
14         * Planck's constant.
15         */

16         double PLANCK=6.6260755E-34;
17         /**
18         * Planck's constant divided by 2*Pi (defined).
19         */

20         double H_BAR=PLANCK/TWO_PI;
21         /**
22         * Speed of light in vacuo (exact).
23         */

24         double SPEED_OF_LIGHT=299792458.0;
25         /**
26         * Permeability constant (exact).
27         */

28         double PERMEABILITY=Math.PI*4E-7;
29         /**
30         * Permittivity constant (defined).
31         */

32         double PERMITTIVITY=1.0/(PERMEABILITY*SPEED_OF_LIGHT*SPEED_OF_LIGHT);
33         /**
34         * Gravitational constant.
35         */

36         double GRAVITATION=6.67259E-11;
37         /**
38         * Elementary charge.
39         */

40         double CHARGE=1.60217733E-19;
41         /**
42         * Electron rest mass.
43         */

44         double ELECTRON_MASS=9.1093897E-31;
45         /**
46         * Proton rest mass.
47         */

48         double PROTON_MASS=1.6726231E-27;
49         /**
50         * Neutron rest mass.
51         */

52         double NEUTRON_MASS=1.6749286E-27;
53         /**
54         * Avogadro's constant.
55         */

56         double AVOGADRO=6.0221367E+23;
57         /**
58         * Molar gas constant.
59         */

60         double MOLAR_GAS=8.314510;
61         /**
62         * Boltzmann's constant (defined).
63         */

64         double BOLTZMANN=MOLAR_GAS/AVOGADRO;
65         /**
66         * Stefan-Boltzmann constant.
67         */

68         double STEFAN_BOLTZMANN=5.67051E-8;
69         /**
70         * Rydberg constant (defined).
71         */

72         double RYDBERG=(SPEED_OF_LIGHT*PERMEABILITY)*(SPEED_OF_LIGHT*PERMEABILITY)*SPEED_OF_LIGHT*ELECTRON_MASS*CHARGE*(CHARGE/PLANCK)*(CHARGE/PLANCK)*(CHARGE/PLANCK)/8.0;
73         /**
74         * Fine structure constant (defined).
75         */

76         double FINE_STRUCTURE=PERMEABILITY*SPEED_OF_LIGHT*CHARGE/PLANCK*CHARGE/2.0;
77         /**
78         * Faraday constant.
79         */

80         double FARADAY=96485.309;
81         /**
82         * Magnetic flux quantum (defined).
83         */

84         double FLUX_QUANTUM=PLANCK/(2.0*CHARGE);
85         /**
86         * Bohr magneton (defined).
87         */

88         double BOHR_MAGNETON=CHARGE/ELECTRON_MASS*H_BAR/2.0;
89         /**
90         * Magnetic moment of electron.
91         */

92         double ELECTRON_MOMENT=9.2847701E-24;
93         /**
94         * Magnetic moment of proton.
95         */

96         double PROTON_MOMENT=1.41060761E-26;
97 }
98
99
Popular Tags