Learn R Programming

rpmodel (version 1.2.0)

viscosity_h2o: Viscosity of water

Description

Calculates the viscosity of water as a function of temperature and atmospheric pressure.

Usage

viscosity_h2o(tc, p)

Value

numeric, viscosity of water (mu), Pa s

Arguments

tc

numeric, air temperature (tc), degrees C

p

numeric, atmospheric pressure (p), Pa

References

Huber, M. L., R. A. Perkins, A. Laesecke, D. G. Friend, J. V. Sengers, M. J. Assael, ..., K. Miyagawa (2009) New international formulation for the viscosity of H2O, J. Phys. Chem. Ref. Data, Vol. 38(2), pp. 101-125.

Examples

Run this code
print("Density of water at 20 degrees C and standard atmospheric pressure:")
print(density_h2o(20, 101325))

Run the code above in your browser using DataLab