|
[Sponsors] |
July 29, 2013, 11:43 |
same velocity in inlets
|
#1 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 12 |
I want to impose by UDF a same velocity profile in 3 inlets, but i don't get same velocity in the 3 inlets apparently i impose my profile in function of the distance r!!
how can i impose my velocity profile in the "surface" of inlet to get samevelocity please?? my udf is : HTML Code:
#include "udf.h" DEFINE_PROFILE(w_velocity_inlet,t,i) { real x[ND_ND]=3; /* this will hold the position vector */ real r; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); r = x[0]; F_PROFILE(f,t,i) = -((0.0431*pow(r,3))-(0.3857*pow(r,2))+(0.3129*r)+8.8045); } end_f_loop(f,t) |
|
July 29, 2013, 15:58 |
|
#2 |
Senior Member
|
Dear Rayan,
Your profile is a function of x-coordinate, so you will get different results if the elements of these inlets have different x positions! Did you expect something else?! Bests,
__________________
Amir |
|
July 29, 2013, 17:14 |
|
#3 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 12 |
Tank you Amir for your replay,
My 3 inlets are aligned in the XY plane, so the Inlet 1 ranges between x = [1, 4.5], inlet 2 is between x = [5, 7.5] and the inlet 3 is between x = [5, 7.5], so I can't get to impose my velocity profile in each inlet! Do you have an idea please? |
|
July 30, 2013, 03:41 |
|
#4 | |
Senior Member
|
Quote:
There are lots of options. You can either use if-clauses to switch between different thread IDs or simply use 3 UDFs. Bests,
__________________
Amir |
||
July 30, 2013, 03:46 |
|
#5 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 12 |
Thanks for your response
|
|
November 19, 2013, 06:41 |
Udf
|
#6 |
Member
muhamed
Join Date: Jun 2013
Posts: 66
Rep Power: 12 |
Hello Amir,
Could you please help me? I have a problem writing a UDF for my 2D-geometry. I hope you have time to contact me at my E.mail address: mas20001920@yahoo.com Best regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WSS and normal velocity gradient for the slanted pipe | wanna88 | FLUENT | 2 | October 1, 2012 22:34 |
Problem with time average tangential velocity in swirl flow. | lakhi | FLUENT | 5 | July 18, 2012 16:28 |
how to compute relative velocity from absolute? | spk | Main CFD Forum | 3 | July 9, 2010 08:42 |
Is it possible to have multiple velocity inlets in your model | boundarylayer | FLUENT | 0 | June 5, 2010 02:29 |
Multiple Inlets | Charlie V | FLUENT | 0 | May 28, 2001 02:29 |