This is Haertels omega correction function for the settling process.
function omega input Real z; input Real Xf; input Real hsc; input Real zm; input Real ISV; input Integer i; output Real omega; end omega;