Michael Thomas Flanagan's Java Scientific Library

Water Class:     Some Physical Properties of Water

     

Last update: 6 May 2004
Main Page of Michael Thomas Flanagan's Java Library

This class contains the methods for returning the following physical properties of water: import directive: import flanagan.physprop.Water;

SUMMARY OF METHODS

Density public static double density(double temperature)
Viscosity public static double viscosity(double temperature)
Electrical Permittivity public static double elecPerm(double temperature)
Refractive Index public static double refractIndex(double wavelength, double temperature)
Molecular Weight public static final double MOLWEIGHT



METHODS

DENSITY
public static double density(double temperature)
Usage:                      double dens = Water.density(temperature);
Returns the density (kg per cubic metre) of water at the given temperature (Celsius). The method uses a natural cubic spline interpolation on data taken from the CRC Handbook of Chemistry and Physics (56th edition). The temperature range is 0 to 100 degrees Celsius.

VISCOSITY
public static double viscosity(double temperature)
Usage:                      double visc = Water.viscosity(temperature);
Returns the viscosity (Pa s) of water at the given temperature (Celsius). The method uses a natural cubic spline interpolation on data taken from the CRC Handbook of Chemistry and Physics (56th edition). The temperature range is 0 to 100 degrees Celsius.

STATIC RELATIVE ELECTRICAL PERMITTIVITY
public static double elecPerm(double temperature)
Usage:                      double er = Water.elecPerm(temperature);
Returns the static relative electrical permittivity of water at the given temperature (Celsius). The method uses the empirical relationship given in the CRC Handbook of Chemistry and Physics (56th edition):
        ε = 78.54(1.0-4.579x10-3T + 1.19x10-5T2 - 2.8x10-8T3)
where ε is the relative electrical permittivity and T is the temperature - 25. The temperature range is 0 to 100 degrees Celsius.

REFRACTIVE INDEX
public static double refractIndex(double wavelength, double temperature)
Usage:                      double refind = Water.refractIndex(wavelength, temperature);
Returns the refractive index of water at the given wavelength (metre) and given temperature (Celsius). The method uses a natural bicubic spline interpolation on data, taken from the CRC Handbook of Chemistry and Physics (56th edition). The temperature range is 0 to 100 degrees Celsius. The wavelength range is 404.6 nm to 706.52 nm. This method calls the corresponding method in the RefrIndex Class.

MOLECULAR WEIGHT
public static double MOLWEIGHT = 18.02;
Usage:                      double mw = Water.MOLWEIGHT;



OTHER CLASSES USED BY THIS CLASS

This class uses the following classes in this library:


This page was prepared by Dr Michael Thomas Flanagan