gov.nist.microanalysis.EPQLibrary
Class FromSI

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

public final class FromSI
extends java.lang.Object

A class made up of static methods for converting from other units to standard SI units

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
          kg -> AMU
static double ANGSTROM
          m -> angstrom
static double CM
          m -> cm
static double EV
          Joules -> EV
static double GRAM
          kg -> g
static double KEV
          Joules -> KEV
static double MICROMETER
          m -> micrometers
static double TORR
          pascal -> Torr
 
Constructor Summary
FromSI()
           
 
Method Summary
static double AMU(double kg)
          AMU - Converts a mass in kilograms into AMU.
static double angstrom(double a)
          angstrom - Converts from meters to angstroms.
static double centigrade(double c)
          centigrade - Converts from kelvin to centigrade
static double cm(double x)
          cm - Converts from meters to cm
static double cmSqrPerg(double x)
          cmSqrPerg - Converts mass absorption coefficients from SI.
static double dyne(double f)
          dyne - Converts a force in Newtons into Dynes.
static double eV(double e)
          eV - Converts an energy in Joules into eV.
static double fahrenheit(double k)
          fahrenheit - Converts from fahrenheit to kelvin
static double gPerCC(double d)
          gPerCC - Converts kg per cubic meter into grams per cubic centimeter.
static double keV(double e)
          keV - Converts an energy in Joules into keV.
static double micrometer(double x)
          cm - Converts from meters to micrometers
static double sqrAngstrom(double a2)
          sqrAngstrom - Converts from square meters to square angstroms.
static double Torr(double pascal)
          Torr - Converts from pascal (Pa) to Torr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEV

public static final double KEV
Joules -> KEV

See Also:
Constant Field Values

EV

public static final double EV
Joules -> EV

See Also:
Constant Field Values

GRAM

public static final double GRAM
kg -> g

See Also:
Constant Field Values

CM

public static final double CM
m -> cm

See Also:
Constant Field Values

MICROMETER

public static final double MICROMETER
m -> micrometers

See Also:
Constant Field Values

AMU

public static final double AMU
kg -> AMU

See Also:
Constant Field Values

ANGSTROM

public static final double ANGSTROM
m -> angstrom

See Also:
Constant Field Values

TORR

public static final double TORR
pascal -> Torr

See Also:
Constant Field Values
Constructor Detail

FromSI

public FromSI()
Method Detail

Torr

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

Parameters:
pascal -
Returns:
The equivalent pressure in Torr

keV

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

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

eV

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

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

AMU

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

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

dyne

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

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

gPerCC

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

Parameters:
d - double
Returns:
double

angstrom

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

Parameters:
a - double
Returns:
double

sqrAngstrom

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

Parameters:
a2 - double
Returns:
double

cmSqrPerg

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

Parameters:
x - double
Returns:
double

cm

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

Parameters:
x -
Returns:
double

micrometer

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

Parameters:
x -
Returns:
double

centigrade

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

Parameters:
c -
Returns:
The equivalent temperature in kelvin

fahrenheit

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

Parameters:
k -
Returns:
The equivalent temperature in kelvin