CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Please help me ( udf for regulation the mass flow rate at the inlet )

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2015, 10:17
Default Please help me ( udf for regulation the mass flow rate at the inlet )
  #1
New Member
 
saad
Join Date: Apr 2015
Posts: 6
Rep Power: 0
swidi is on a distinguished road
Hello friends I really need your help

I am trying to control the injection of the mass flow rate at a velocity inlet using a UDF. In fact I want to have the same mass flow rate at the inlet and at the outlet-pressour. So I need to put a condition at my velocity-inlet like if the two mass flow rates are not equal it has to stop injecting ( water ) until they ll be equal
I begun by this UDF, it only needs the regulation part

#include "udf.h"
DEFINE_EXECUTE_AT_END(measure_mass_flow)
{
Domain *d;
real flow=0.;
face_t f;
Thread *t;
t= Lookup_Thread(d, 12);
d = Get_Domain(1);

thread_loop_f(t,d)
{
begin_f_loop(f,t)
{
flow+=F_FLUX(f,t);
}
end_f_loop(f,t)
}
printf("MASS Flow Rate: %g\n",flow);
flow=0.;
}
swidi 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
Species mass flow inlet lorenz FLUENT 3 March 15, 2012 08:26
UDF for inlet mass flow rate rahulsuresh89 Fluent UDF and Scheme Programming 1 October 16, 2010 18:06
mass flow rate inlet udf alikami Fluent UDF and Scheme Programming 3 June 4, 2010 14:47
Mass Flow Inlet Pravir Kumar Rai FLUENT 0 February 19, 2003 15:03
Mass Flow Inlet Pravir Kumar Rai FLUENT 0 February 17, 2003 20:23


All times are GMT -4. The time now is 07:13.