|
[Sponsors] |
July 29, 2013, 13:36 |
impose same velocity at inlet
|
#1 | |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13 |
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 : include "udf.h" Quote:
|
||
July 29, 2013, 15:14 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Apparently, you are using the absolute value of the x-coordinate for each of the 3 inlets. If they dont have identical position, the velocity will be different.
I already tried to point this out in your last thread concerning this topic Additionally, "real x[ND_ND]=3;" is some kind of strange. You initialize the value 3 to the variable x here, which makes no sense as it is overwritten anyway. Use "real x[ND_ND];" instead. |
|
July 30, 2013, 04:02 |
|
#3 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13 |
Thanks Alex for your replay,
I confirme that the inlets are diffrents coordinate of X, so how can i specify this difference in UDF please |
|
July 30, 2013, 04:12 |
|
#4 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Write 3 similar UDFs and shift the coordinate to match the "local" coordinate system of each inlet.
Change the variable "offset" so that r actually becomes the distance (I suppose distance from the wall?) in each inlet. Code:
r = x[0]-offset; |
|
July 30, 2013, 04:26 |
|
#5 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13 |
Thank you very much Alex that's what I did , I needed your confirmation! its OK
but in the results of simulation I feel that the velocity is not properly difffuse ? (i use RSM model) do you have an idea ? |
|
July 30, 2013, 05:07 |
|
#6 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
I dont know what you mean by "the velocity is not properly diffuse".
|
|
July 30, 2013, 05:53 |
|
#7 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13 |
It's okay, it was just a display problem
Thank you Alex for your answers and help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation of radial gas turbine, Inlet velocity components | dmaz | CFX | 17 | May 19, 2019 10:45 |
Reduced domain/ Pressure inlet to velocity inlet | victoryv | FLUENT | 1 | June 29, 2013 15:45 |
User Defined Profiles, Swirl, Velocity Inlet | saurus | FLUENT | 0 | January 26, 2011 16:35 |
UDF problem : inlet velocity in cyl. coord. system | Jongdae Kim | FLUENT | 0 | June 15, 2004 12:21 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |