|
[Sponsors] |
July 18, 2017, 22:47 |
Udf for evaporation and condensation model
|
#1 |
New Member
Ajaysinh Solanki
Join Date: Jul 2017
Posts: 3
Rep Power: 9 |
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) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How accurate can CFX model condensation? | JuPa | CFX | 7 | January 20, 2019 18:17 |
udf for condensation model in FLUENT | pushpak | Fluent UDF and Scheme Programming | 0 | November 9, 2013 02:12 |
Simulating condensation using evaporation-condensation model | athonyburk | FLUENT | 2 | May 17, 2013 16:17 |
Water vapour condensation in CFX-5.7.1 | hdj | CFX | 1 | November 27, 2005 08:15 |
Using UDF in VOF model for Condensation | Crystal | FLUENT | 6 | September 26, 2004 19:08 |