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 doubleStandard acceleration of gravity on Earth m.s^-2static final double1 Astronomical unit - mstatic final doubleBoltzmann constant - J.K^-1static final doubleElectron mass - Kgstatic final doubleElectron volt - Jstatic final doubleFine structure constant - unitlessstatic final doubleGravitational constant - N.m^2.Kg^-2static final double1 Jansky - W.m^-2.Hz^-1static final doubleSolar Luminosity - Wstatic final doubleMass of the Earth - Kgstatic final doubleMass of Jupiter - Kgstatic final doubleMass of Sun - Kgstatic final double1 Parsec - mstatic final doublePlanck constant - J.sstatic final doublePlanck constant/2*PI - J.sstatic final doublePlanck constant - eV.sstatic final doublePlanck constant/2*PI - eV.sstatic final doublePlanck length - mstatic final doublePlanck mass - Kgstatic final doublePlanck temperature - Kstatic final doubleProton mass - Kgstatic final doubleRadius of Sun - mstatic final doubleRydberg constant - m^-1static final doubleSolar constant - kW.m^-1static final doubleSpeed of light in a vacuum - m.s^-1static final doubleStefan-Boltzmann constant - W.m^-2.K^-4static final doubleWavelength of H-alpha - Angstromsstatic final doubleWien 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.
-