This model is identical to the RefProp VS1 or VS2 model. The viscosity is split into three contributions: zero density (dilute gas) viscosity eta_0, initial density contribution eta_1 and residual contribution eta_r. This allows to develop functions for each contribution seperately. The so called background viscosity is the sum of initial and residual viscosity. At the critical point and a small region around the critical point, the viscosity is enhanced. As this critical enhancement is small, it is neglected here. Special thanks go to Eric W. Lemmon for answering all my emails and programming a special version of RefProp that outputs also intermediate values.
function dynamicViscosity input ThermodynamicState state; output DynamicViscosity eta; end dynamicViscosity;