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

UDF for fuel injection

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2010, 16:49
Default UDF for fuel injection
  #1
New Member
 
alan
Join Date: Jun 2010
Posts: 2
Rep Power: 0
djokovic is on a distinguished road
Hi everyone,
Am new to Fluent and as well as to developing UDF's. Now am required to develop UDF for fuel injection at the inlet. Inlet has been selected as mass flow inlet in boundary types in Gambit. Once the fuel is injected, the inlet should be changed to a solid wall. Additionally, when the fuel is being injected only the fuel orifice is to be selected as mass flow inlet with the remaining part being a solid wall. And I need to develop a UDF for this condition. I've written a UDF and I need to know what needs to be changed and how far it is right.
'D' is the orifice dia and since am considering axisymmetric (with co-ordinates r,Z) its 'D/2'.

/* UDf for fuel injection at the inlet */
#include "udf.h"
DEFINE_PROFILE (mass_flow_rate, thread, position);
{
real r, D;
real x[ND_ND];
face_t f;
thread *t;
domain *d;
d=Get-domain(1);
if (r<D/2)
begin_f_loop(f, thread)
{
F_CENTROID (x, f, thread);
F_PROFILE (f, thread, position) = Rho*volume/time;
}
end_f_loop(f, thread);
else
F_PROFILE (f, thread, position) = 0;
}

Thank u, guys.
djokovic 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
DPM UDF Injection leads to 2 different particles sega Fluent UDF and Scheme Programming 4 December 28, 2017 23:57
UDF for particle injection in DPM model sohail FLUENT 0 July 22, 2008 11:12
MASS InJeCtion with UDF AdN FLUENT 1 May 4, 2006 05:41
DPM, UDF, Injection Type Zhang FLUENT 0 June 8, 2005 16:51
UDF DPM injection M.A. Rakib FLUENT 0 June 13, 2000 09:28


All times are GMT -4. The time now is 05:21.