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 inlet mass flow rate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2010, 12:33
Exclamation UDF for inlet mass flow rate
  #1
New Member
 
Rahul Suresh
Join Date: Sep 2010
Location: West Lafayette
Posts: 2
Rep Power: 0
rahulsuresh89 is on a distinguished road
I need help to write a UDF to vary the inlet mass flow rate (step input)..I need a step input..Is it possible? I just know the macros to be used is DEFINE_PROFILE for the boundary conditions. Please help me out with the UDF code.
rahulsuresh89 is offline   Reply With Quote

Old   October 16, 2010, 17:06
Wink
  #2
New Member
 
Amir
Join Date: Oct 2010
Posts: 1
Rep Power: 0
amir_yousefi is on a distinguished road
Hi
You can see the examples of FLUENT 6.3 UDF manual about DEFINE_PROFILE. It's easy. for example, below is a code that define parabolic profile for inlet.

#include "udf.h"
DEFINE_PROFILE(Re270_art_profile,t,i)
{
real x[ND_ND]; /* this will hold the position vector */
real xcor,ycor;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);

xcor=x[1];
ycor = x[2];
F_PROFILE(f,t,i) = 0.13883*(1 - ((xcor)*(xcor)+(ycor)*(ycor))/(0.004*0.004));
}
end_f_loop(f,t)
}

Best
amir_yousefi is offline   Reply With Quote

Reply

Tags
mass flow rate


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
mass flow rate not conserved in turbomachine, interface defined wrong? wildli FLUENT 3 September 15, 2022 12:19
UDF to measure Mass Flow Rate a.lynchy Fluent UDF and Scheme Programming 31 October 4, 2018 14:10
Mass Flow Rate student87 CFX 4 January 2, 2010 04:45
mass flow rate entering and exiting a cell samir bensaid FLUENT 0 July 4, 2007 05:37
How to define mass flow rate using UDF? SAMUEL FLUENT 3 December 25, 2004 00:36


All times are GMT -4. The time now is 03:28.