|
[Sponsors] |
June 5, 2012, 16:52 |
Multiphase udf
|
#1 |
New Member
Join Date: Dec 2009
Posts: 10
Rep Power: 16 |
Hi ....
I am writing udf to calculate phase flow at outlet. Working with multiphase flows ... I wrote some udf for single phase. However not able to convert it to multiphase... Giving below the udf for single phase flow... #include "udf.h" DEFINE_EXECUTE_AT_END (calculate_water_flow_rate) { Domain *d; real total_flow_rate=0; face_t f; d = Get_Domain(2); Thread *thread; thread_loop_f(thread,d) { begin_f_loop(f,thread) { total_flow_rate += F_FLUX(f,thread); } end_f_loop(f,thread) } printf("flow rate of water at outlet: %g/n", total_flow_rate); fflush(stdout); } can anybody provide me a example of multiphase udf.... any inputs would certainly do.... Last edited by ak2009; June 6, 2012 at 00:40. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for coal combustion in multiphase flow | niisha24 | Fluent UDF and Scheme Programming | 13 | September 19, 2022 05:01 |
How to access only one phase in multiphase model by UDF | wersoe | Fluent UDF and Scheme Programming | 1 | January 4, 2017 08:11 |
UDF problem in multiphase | abolfazl364 | Fluent UDF and Scheme Programming | 0 | February 6, 2012 12:20 |
Multiphase Mass transfer UDF issue | therandomestname | FLUENT | 0 | April 21, 2011 15:51 |
UDF for multiphase flow | ROOZBEH | FLUENT | 3 | April 7, 2004 18:54 |