The thermal conductivity (TC) is split into three parts: ideal gas TC lamda_0, residual TC lambda_r and critical TC enhancement lambda_c. Sometimes the residual TC is again split into two parts. This allows to develop functions for each contribution seperately. The sum of ideal gas TC and residual TC is called background TC. Ideal gas TC depends on Temperature only and can be modelled by a quadratic function. Residual TC is also modeled by a polynominal. At the critical point TC becomes infinite; TC is enhanced for a large region around the critical point. The critical enhancement can be described by various alternative approaches. Here, the simplified approach as suggested by Olchowy and Sengers is implemented. 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 thermalConductivity_background input ThermodynamicState state; output ThermalConductivity lambda_b; end thermalConductivity_background;