|
[Sponsors] |
September 8, 2004, 14:13 |
UDF for VOF model
|
#1 |
Guest
Posts: n/a
|
I am trying to use the VOF model to study the rise of bubbles in water. I am writing a UDF to give me the location of the bubble centroid after each time step (using DEFINE_EXECUTE_AT_END). I am trying to use the looping macros to loop over all the cells of the secondary phase (air). Unfortunately the udf gives me the centroid of the entire domain rather than the centroid of the bubble.
My first question (may be a bit silly) is 1. what is the difference between phase domain and phase thread? 2. I tried using the sub_domain_loop and the mp_thread_loop_c with the begin_c_loop_all but I get the same answer. How do I loop over cells of the secondary phase only? Thanks for your help! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing UDF for Eulerian model | golriz | Fluent UDF and Scheme Programming | 7 | November 3, 2011 06:30 |
UDF for Heat Exchanger model | francois louw | FLUENT | 2 | July 16, 2010 03:21 |
Modifying Pressure swirl atomizer model by UDF | jeff_F | FLUENT | 0 | May 22, 2010 10:22 |
UDF: how to know domain number in the model? | mssound | FLUENT | 0 | May 17, 2010 16:00 |
The problem of UDF in Non premixed combustion model | zhangyuan | Main CFD Forum | 0 | May 25, 2009 10:41 |