Hi all,
I've some issues with the IfPos function. I'm calculating the hydrodynamic pressure with Reynolds equation and want to use the simple Sommerfeld treatment to consider cavitation. I want to use the IfPos function to determine whether the pressure entries are positive or negative, so I need a coefficient function that contains 1 or 0.
cav_i = IfPos(p_rey_i,1,0)
However, the coefficient function that is output also contains other values, including values greater than 1 and even negative values. Shouldn't the function only output the two values specified?
Thank you in advance,
Jakob