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

Udf for evaporation and condensation model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2017, 21:47
Default Udf for evaporation and condensation model
  #1
New Member
 
Ajaysinh Solanki
Join Date: Jul 2017
Posts: 3
Rep Power: 8
solanki004 is on a distinguished road
Hi

I am working on evaporation and condensation simulation problem. I want FLUENT to calculate cell density in vapor region using Lookup_Thread macro. I took vapor zone ID from cell-zone condition. But FLUENT is not calculating vapor cell density by cell thread of vapor zone. Can anyone help me?

UDF

#include "udf.h"
#define IDv 25
#define R 8314

DEFINE_ON_DEMAND(Calculation)
{
Domain *d;
cell_t c;
Thread *tc;
tc = Lookup_Thread(d,IDv);
real sum=0,pressure;

thread_loop_c(c,d)
{
begin_c_loop(c, tc) /* loops over cells in a cell thread */
{
sum=sum+C_R(c,tc);
}
end_c_loop(c, tc)
}
solanki004 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
How accurate can CFX model condensation? JuPa CFX 7 January 20, 2019 17:17
udf for condensation model in FLUENT pushpak Fluent UDF and Scheme Programming 0 November 9, 2013 01:12
Simulating condensation using evaporation-condensation model athonyburk FLUENT 2 May 17, 2013 15:17
Water vapour condensation in CFX-5.7.1 hdj CFX 1 November 27, 2005 07:15
Using UDF in VOF model for Condensation Crystal FLUENT 6 September 26, 2004 18:08


All times are GMT -4. The time now is 11:14.