Hemoglobin-Oxygen dissociation relation based on OSA (Oxygen Status Algorithm) by Siggaard Andersen.
Hydrogen Ion, Carbon Dioxide, and Oxygen in the Blood (siggaard-andersen.dk)
function hemoglobinDissociationCurve input Real pH "acidity"; input Real pO2 "oxygen partial pressure"; input Real pCO2(min = Modelica.Constants.small) "carbon dioxide partial pressure"; input Real pCO "carbon monoxide partial pressure"; input Real T "temperature"; input Real tHb "total hemoglobin"; input Real cDPG "diphosphoglicerate"; input Real FMetHb "methemoglobin fraction"; input Real FHbF "foethel hemoglobin fraction"; output Real sO2CO "oxygen and carbon monoxide saturation"; end hemoglobinDissociationCurve;