|
[Sponsors] |
September 18, 2010, 13:33 |
UDF for inlet mass flow rate
|
#1 |
New Member
Rahul Suresh
Join Date: Sep 2010
Location: West Lafayette
Posts: 2
Rep Power: 0 |
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.
|
|
October 16, 2010, 18:06 |
|
#2 |
New Member
Amir
Join Date: Oct 2010
Posts: 1
Rep Power: 0 |
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 |
|
Tags |
mass flow rate |
|
|
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 13:19 |
UDF to measure Mass Flow Rate | a.lynchy | Fluent UDF and Scheme Programming | 31 | October 4, 2018 15:10 |
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 06:37 |
How to define mass flow rate using UDF? | SAMUEL | FLUENT | 3 | December 25, 2004 01:36 |