ViscTD: Dynamic Viscosity, Function of Temperature and Density

View source: R/fooTransp.R

ViscTDR Documentation

Dynamic Viscosity, Function of Temperature and Density

Description

The function ViscTD(Temp,D,digits=9) computes the Dynamic Viscosity [ Pa s ] for given Temp [K] and D [kg/m3], returning the computed viscosity and an error message, if an error occur. errorCodes

Usage

ViscTD(Temp, D, digits = 9)

Arguments

Temp

Temperature [ K ]

D

Density [ kg m-3 ]

digits

Digits of results (optional)

Details

This function calls a Fortran DLL that solves the equations developed by the International Association for the Properties of Water and Steam, valid from the triple point to the pressure of 1000 MPa and temperature of 1173.15K. http://www.iapws.org/relguide/viscosity.html

Value

The Dynamic viscosity: [ Pa s ] and an Error Message (if an error occur)

Examples

Temp <- 500.
D <- 838.025
Vis <- ViscTD(Temp,D)
Vis


IAPWS95 documentation built on Sept. 11, 2023, 5:11 p.m.