CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Multiphase udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2012, 15:52
Smile Multiphase udf
  #1
New Member
 
Join Date: Dec 2009
Posts: 10
Rep Power: 16
ak2009 is on a distinguished road
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 5, 2012 at 23:40.
ak2009 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
UDF for coal combustion in multiphase flow niisha24 Fluent UDF and Scheme Programming 13 September 19, 2022 04:01
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 1 January 4, 2017 07:11
UDF problem in multiphase abolfazl364 Fluent UDF and Scheme Programming 0 February 6, 2012 11:20
Multiphase Mass transfer UDF issue therandomestname FLUENT 0 April 21, 2011 14:51
UDF for multiphase flow ROOZBEH FLUENT 3 April 7, 2004 17:54


All times are GMT -4. The time now is 02:56.