Condensation of water if humidity > 100% via UDF
I'm having a stream of humid air. It's entering an area with almost 100% humidity. While it's flowing trough this area the temperatur will be decreased. Due this it will reach the point where the humidity is >100%. For this case I wanna write a UDF, where the massfraction of water will be decreased, that the humidity will be 100% constant. You'll find the pictures of my problem for the temperatur and the humidity distribution attached.
Here is the UDF I'm planning to write, but I don't know if I can do it like this. I also don't know hoe to determine the massflow of humid air inside one single cell.
I'm looking forward for your suggestions.
DEFINE_SOURCE(m_source, c, t, dS, eqn)
if (C_YI(c,t,'h2o') > massfraction_h2o,sat)
|All times are GMT -4. The time now is 08:25.|