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

Condensation of water if humidity > 100% via UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 9, 2010, 17:41
Default Condensation of water if humidity > 100% via UDF
  #1
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 76
Rep Power: 7
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, 30 views)
File Type: jpg temperatur distribution.jpg (42.5 KB, 19 views)
Wikie is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:39.