CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Condensation of water if humidity > 100% via UDF (http://www.cfd-online.com/Forums/fluent-udf/81882-condensation-water-if-humidity-100-via-udf.html)

Wikie November 9, 2010 17:41

Condensation of water if humidity > 100% via UDF
 
2 Attachment(s)
Hi,

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.

cheers wikie

DEFINE_SOURCE(m_source, c, t, dS, eqn)
{
real source=0;

if (C_YI(c,t,'h2o') > massfraction_h2o,sat)
{
source=-massflow_humidair(massfraction_h2o,sat-C_YI(c,t,'h2o')
}

return source;
}


All times are GMT -4. The time now is 17:29.