|
[Sponsors] |
September 3, 2010, 11:19 |
Help please UDF flow direction
|
#1 |
New Member
Valentin
Join Date: May 2010
Posts: 12
Rep Power: 16 |
Hello
I have a problem, I wrote an UDF file in order to create a pressure gradient on an inlet. Eveything works, except that the direction of my flow is wrong. In fact, the flow goes to the "+y" axis, but I want it to go to the "-y" axis ( I want to change the sign). Here is my UDF: #include "udf.h" DEFINE_PROFILE(pressure_profile,t,i) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); y = x[1]; F_PROFILE(f,t,i) = -12750*y + 115100; } end_f_loop(f,t) } Anyone have a solution? I can't change anything on the inlet y-component of flow direction (normal, i select 'UDF pressure_profile') under boundaries conditions.. Thank you (excuse my english is poor, I'm french) |
|
September 3, 2010, 14:21 |
|
#2 |
New Member
Valentin
Join Date: May 2010
Posts: 12
Rep Power: 16 |
Up please!!!!
I just need this to finish my diploma thesis!!! |
|
September 4, 2010, 06:30 |
|
#3 |
New Member
Valentin
Join Date: May 2010
Posts: 12
Rep Power: 16 |
Anybody?
I'm sure the solution is not difficult but I don't find it. |
|
Tags |
udf flow direction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Flow meter Design | CD adapco Group Marketing | Siemens | 3 | June 21, 2011 09:33 |
specifying the flow direction in periodic boundary | joanna | FLUENT | 2 | February 27, 2006 22:09 |
Can 'shock waves' occur in viscous fluid flows? | diaw | Main CFD Forum | 104 | February 16, 2006 06:44 |
UDF for pulsing flow. | J. Keays | FLUENT | 0 | February 1, 2001 11:19 |
component flow direction fieldnames for boundary profiles required. | Ricky Wong | FLUENT | 1 | May 12, 2000 11:36 |