CFD Online URL
[Sponsors]
Home > Forums > Main CFD Forum

Multiphase udf

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 5, 2012, 16:52
Smile Multiphase udf
  #1
New Member
 
Join Date: Dec 2009
Posts: 10
Rep Power: 7
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 6, 2012 at 00:40.
ak2009 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 9 September 3, 2014 03:08
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
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 0 September 23, 2009 08:57
UDF for multiphase flow ROOZBEH FLUENT 3 April 7, 2004 18:54


All times are GMT -4. The time now is 12:38.