CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Condensation of water if humidity > 100% via UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2010, 16:41
Default Condensation of water if humidity > 100% via UDF
  #1
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16
Wikie is on a distinguished road
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;
}
Attached Images
File Type: jpg humidity distribution.jpg (41.8 KB, 42 views)
File Type: jpg temperatur distribution.jpg (42.5 KB, 26 views)
Wikie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Water Evaporation and condensation modeling Linjie FLUENT 3 February 6, 2012 13:08
Condensation of water if humidity > 100% Wikie FLUENT 4 November 11, 2010 13:57
Water Evaporation and condensation modeling Linjie CFX 6 May 24, 2007 14:55
Water vapour condensation in CFX-5.7.1 hdj CFX 1 November 27, 2005 07:15
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 07:10


All times are GMT -4. The time now is 10:18.