gov.nist.microanalysis.EPQLibrary
Class ToSI

java.lang.Object
  extended by gov.nist.microanalysis.EPQLibrary.ToSI

public final class ToSI
extends java.lang.Object

A handful of static methods for converting conventional units into SI.

Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain

Company: National Institute of Standards and Technology

Version:
1.0
Author:
Nicholas W. M. Ritchie

Field Summary
static double AMU
          AMU -> kg
static double ANGSTROM
          angstrom -> m
static double BARN
          barn -> m^2
static double CM
          cm -> m
static double EV
          eV -> Joules
static double GRAM
          g -> kg
static double KEV
          keV -> Joules
static double MEV
          MeV -> Joules
static double MICROMETER
          micrometer -> m
static double TORR
          Torr -> Pascal
 
Constructor Summary
ToSI()
           
 
Method Summary
static double AMU(double amu)
          AMU - Converts a mass in AMU into kilograms.
static double angstrom(double a)
          angstrom - Converts from angstroms to meters.
static double barn(double a2)
          barn - Converts from barns to square meters
static double centigrade(double k)
          centigrade - Converts from centigrade to kelvin
static double cm(double x)
          cm - Converts from cm to meters
static double cmSqrPerg(double x)
          cmSqrPerg - Converts mass absorption coefficients to SI.
static double dyne(double f)
          dyne - Converts a force in Dynes into Newtons.
static double eV(double e)
          eV - Converts an energy in eV into Joules.
static double fahrenheit(double f)
          fahrenheit - Converts from fahrenheit to kelvin
static double g(double x)
          g - Converts from grams to kilograms
static double gPerCC(double d)
          gPerCC - Converts grams per cubic centimeter into kg per cubic meter.
static double inverse_gPerCC(double d)
          inverse_gPerCC - Converts from inverse(grams per cubic centimeter) into inverse(kg per cubic meter).
static double keV(double e)
          keV - Converts an energy in keV into Joules.
static double MeV(double e)
          MeV - Converts an energy in MeV into Joules.
static double micrometer(double m)
           
static double percm(double d)
          percm - Converts from 1/cm to 1/meter.
static double sqrAngstrom(double a2)
          sqrAngstrom - Converts from square angstroms to square meters.
static double Torr(double torr)
          Torr - Converts from Torr to pascal (Pa)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEV

public static final double MEV
MeV -> Joules

See Also:
Constant Field Values

KEV

public static final double KEV
keV -> Joules

See Also:
Constant Field Values

EV

public static final double EV
eV -> Joules

See Also:
Constant Field Values

GRAM

public static final double GRAM
g -> kg

See Also:
Constant Field Values

CM

public static final double CM
cm -> m

See Also:
Constant Field Values

MICROMETER

public static final double MICROMETER
micrometer -> m

See Also:
Constant Field Values

AMU

public static final double AMU
AMU -> kg

See Also:
Constant Field Values

ANGSTROM

public static final double ANGSTROM
angstrom -> m

See Also:
Constant Field Values

BARN

public static final double BARN
barn -> m^2

See Also:
Constant Field Values

TORR

public static final double TORR
Torr -> Pascal

See Also:
Constant Field Values
Constructor Detail

ToSI

public ToSI()
Method Detail

Torr

public static double Torr(double torr)
Torr - Converts from Torr to pascal (Pa)

Parameters:
torr -
Returns:
The equivalent pressure in pascal

MeV

public static double MeV(double e)
MeV - Converts an energy in MeV into Joules.

Parameters:
e - double - The energy in MeV
Returns:
double

keV

public static double keV(double e)
keV - Converts an energy in keV into Joules.

Parameters:
e - double - The energy in keV
Returns:
double

eV

public static double eV(double e)
eV - Converts an energy in eV into Joules.

Parameters:
e - double - The energy in eV
Returns:
double - The energy in Joules

AMU

public static double AMU(double amu)
AMU - Converts a mass in AMU into kilograms.

Parameters:
amu - double - The mass in AMU
Returns:
double - The mass in kg

dyne

public static double dyne(double f)
dyne - Converts a force in Dynes into Newtons.

Parameters:
f - double - The force in Dynes
Returns:
double - The force in Newtons.

gPerCC

public static double gPerCC(double d)
gPerCC - Converts grams per cubic centimeter into kg per cubic meter.

Parameters:
d - double
Returns:
double

inverse_gPerCC

public static double inverse_gPerCC(double d)
inverse_gPerCC - Converts from inverse(grams per cubic centimeter) into inverse(kg per cubic meter).

Parameters:
d - double
Returns:
double

percm

public static double percm(double d)
percm - Converts from 1/cm to 1/meter.

Parameters:
d - double
Returns:
double

angstrom

public static double angstrom(double a)
angstrom - Converts from angstroms to meters.

Parameters:
a - double
Returns:
double

micrometer

public static double micrometer(double m)

sqrAngstrom

public static double sqrAngstrom(double a2)
sqrAngstrom - Converts from square angstroms to square meters.

Parameters:
a2 - double
Returns:
double

barn

public static double barn(double a2)
barn - Converts from barns to square meters

Parameters:
a2 - double
Returns:
double

cmSqrPerg

public static double cmSqrPerg(double x)
cmSqrPerg - Converts mass absorption coefficients to SI.

Parameters:
x - double
Returns:
double

cm

public static double cm(double x)
cm - Converts from cm to meters

Parameters:
x -
Returns:
double

g

public static double g(double x)
g - Converts from grams to kilograms

Parameters:
x -
Returns:
double

centigrade

public static double centigrade(double k)
centigrade - Converts from centigrade to kelvin

Parameters:
k -
Returns:
The equivalent temperature in centigrade

fahrenheit

public static double fahrenheit(double f)
fahrenheit - Converts from fahrenheit to kelvin

Parameters:
f -
Returns:
The equivalent temperature in fahrenheit