CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF for inlet mass flow rate

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

LinkBack Thread Tools Display Modes
Old   September 18, 2010, 12:33
Exclamation UDF for inlet mass flow rate
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
New Member
Join Date: Oct 2010
Posts: 1
Rep Power: 0
amir_yousefi is on a distinguished road
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"
real x[ND_ND]; /* this will hold the position vector */
real xcor,ycor;
face_t f;

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

amir_yousefi is offline   Reply With Quote


mass flow rate

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 to measure Mass Flow Rate a.lynchy Fluent UDF and Scheme Programming 22 September 26, 2017 12:50
mass flow rate not conserved in turbomachine, interface defined wrong? wildli FLUENT 2 July 8, 2015 11:38
Mass Flow Rate student87 CFX 4 January 2, 2010 05: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 01:36

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