CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

where is the mistake?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2010, 06:43
Default where is the mistake?
  #1
New Member
 
Join Date: Aug 2010
Posts: 2
Rep Power: 0
mehendis is on a distinguished road
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 07:05.
mehendis is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 07:02
they edited the mistake Glares CFX 0 October 12, 2008 11:11
Mistake in PISO loop for interFoam solver kumar2 OpenFOAM Running, Solving & CFD 3 June 30, 2006 18:26
HELP: udf compiling mistake Siyu FLUENT 2 June 26, 2006 06:58
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 05:25.