Package uk.ac.starlink.util
Class PhysicalConstants
java.lang.Object
uk.ac.starlink.util.PhysicalConstants
Class of physical and astronomical constants. Please add more and check
accuracy.
- Version:
- $Id$
- Author:
- Peter W. Draper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Standard acceleration of gravity on Earth m.s^-2static final double
1 Astronomical unit - mstatic final double
Boltzmann constant - J.K^-1static final double
Electron mass - Kgstatic final double
Electron volt - Jstatic final double
Fine structure constant - unitlessstatic final double
Gravitational constant - N.m^2.Kg^-2static final double
1 Jansky - W.m^-2.Hz^-1static final double
Solar Luminosity - Wstatic final double
Mass of the Earth - Kgstatic final double
Mass of Jupiter - Kgstatic final double
Mass of Sun - Kgstatic final double
1 Parsec - mstatic final double
Planck constant - J.sstatic final double
Planck constant/2*PI - J.sstatic final double
Planck constant - eV.sstatic final double
Planck constant/2*PI - eV.sstatic final double
Planck length - mstatic final double
Planck mass - Kgstatic final double
Planck temperature - Kstatic final double
Proton mass - Kgstatic final double
Radius of Sun - mstatic final double
Rydberg constant - m^-1static final double
Solar constant - kW.m^-1static final double
Speed of light in a vacuum - m.s^-1static final double
Stefan-Boltzmann constant - W.m^-2.K^-4static final double
Wavelength of H-alpha - Angstromsstatic final double
Wien displacement law constant - m.K -
Method Summary
-
Field Details
-
SPEED_OF_LIGHT
public static final double SPEED_OF_LIGHTSpeed of light in a vacuum - m.s^-1- See Also:
-
PLANCK
public static final double PLANCKPlanck constant - J.s- See Also:
-
PLANCK_BAR
public static final double PLANCK_BARPlanck constant/2*PI - J.s- See Also:
-
PLANCK_EVS
public static final double PLANCK_EVSPlanck constant - eV.s- See Also:
-
PLANCK_EVS_BAR
public static final double PLANCK_EVS_BARPlanck constant/2*PI - eV.s- See Also:
-
PLANCK_LENGTH
public static final double PLANCK_LENGTHPlanck length - m- See Also:
-
PLANCK_MASS
public static final double PLANCK_MASSPlanck mass - Kg- See Also:
-
PLANCK_TEMP
public static final double PLANCK_TEMPPlanck temperature - K- See Also:
-
BOLTZMANN
public static final double BOLTZMANNBoltzmann constant - J.K^-1- See Also:
-
GRAVITATION
public static final double GRAVITATIONGravitational constant - N.m^2.Kg^-2- See Also:
-
ACCEL_GRAV
public static final double ACCEL_GRAVStandard acceleration of gravity on Earth m.s^-2- See Also:
-
ELECTRON_MASS
public static final double ELECTRON_MASSElectron mass - Kg- See Also:
-
PROTON_MASS
public static final double PROTON_MASSProton mass - Kg- See Also:
-
FINE_STRUCTURE
public static final double FINE_STRUCTUREFine structure constant - unitless- See Also:
-
ELECTRON_VOLT
public static final double ELECTRON_VOLTElectron volt - J- See Also:
-
STEFAN_BOLTZMANN
public static final double STEFAN_BOLTZMANNStefan-Boltzmann constant - W.m^-2.K^-4- See Also:
-
RYDBERG
public static final double RYDBERGRydberg constant - m^-1- See Also:
-
WIEN_DISPLACEMENT
public static final double WIEN_DISPLACEMENTWien displacement law constant - m.K- See Also:
-
WAVE_HALPHA
public static final double WAVE_HALPHAWavelength of H-alpha - Angstroms- See Also:
-
AU
public static final double AU1 Astronomical unit - m- See Also:
-
PARSEC
public static final double PARSEC1 Parsec - m- See Also:
-
MASS_OF_SUN
public static final double MASS_OF_SUNMass of Sun - Kg- See Also:
-
RADIUS_OF_SUN
public static final double RADIUS_OF_SUNRadius of Sun - m- See Also:
-
LUMINOSITY_OF_SUN
public static final double LUMINOSITY_OF_SUNSolar Luminosity - W- See Also:
-
MASS_OF_EARTH
public static final double MASS_OF_EARTHMass of the Earth - Kg- See Also:
-
MASS_OF_JUPITER
public static final double MASS_OF_JUPITERMass of Jupiter - Kg- See Also:
-
SOLAR_CONSTANT
public static final double SOLAR_CONSTANTSolar constant - kW.m^-1- See Also:
-
JANSKY
public static final double JANSKY1 Jansky - W.m^-2.Hz^-1- See Also:
-
-
Method Details
-
getInstance
Get instance of class for aliasing. That is could use:PhysicalConstants PC = PhysicalConstants.getInstance(); System.out.println( "Speed of light = " + PC.SPEED_OF_LIGHT );
to cut down on verbage.
-