|
[Sponsors] |
August 19, 2010, 07:43 |
where is the mistake?
|
#1 |
New Member
Join Date: Aug 2010
Posts: 2
Rep Power: 0 |
Hello,
I want to have a static pressure profile at the outlet for a 2D calculation. For the boundary "outlet" there is y=const. when I use the following UDF, I do get a parabolic profile. But the problem is, at starting point (x=0) and end point, I don't have p=0. so that is not the exact curve I am expecting. I always check through "xy plot" afte initializing over inlet. So, does anybody know where the problem is? #include "udf.h" DEFINE_PROFILE(pressure_profile,t,i) { real x[ND_ND]; real a; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); a = x[0]; F_PROFILE(f,t,i) = 2.435e5 - (a-0.025)*(a-0.025)/(0.025*0.025)*2.435e5; } end_f_loop(f,t) } Last edited by mehendis; August 19, 2010 at 08:05. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A huge mistake that could ruin my project: wrong turbulence specification | Cheeko | FLUENT | 1 | June 12, 2010 08:02 |
they edited the mistake | Glares | CFX | 0 | October 12, 2008 12:11 |
Mistake in PISO loop for interFoam solver | kumar2 | OpenFOAM Running, Solving & CFD | 3 | June 30, 2006 19:26 |
HELP: udf compiling mistake | Siyu | FLUENT | 2 | June 26, 2006 07:58 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |