CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

3D parabolic equation for fluid flow

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 22, 2007, 01:51
Default 3D parabolic equation for fluid flow
  #1
Nelly
Guest
 
Posts: n/a
Hi, I am doing a fluid flow stimulation through a tube 15mm wide. The flow is laminar with a parabolic velocity profile. The maximum velocity is 0.1374m. I need to write a udf for the above 3D parabolic velocity profile. Was wondering is the below codes are correct as fluent do not seem to be able to interprete it. Not sure if the equations are correct. Thanks in advance if anyone could help..

#include "udf.h"

DEFINE_PROFILE(inlet_y_velocity,thread,position) {

real y[ND_ND];

real x,z;

face_t f;

begin_f_loop(f,thread)

{

F_CENTROID(y,f,thread);

x=y[0];

z=y[2];

F_PROFILE(f,thread,position)=.1374*(x*x+z*z)/(.0075*.0075)*.1374*2;

}

end_f_loop(f,thread);

}
  Reply With Quote

Old   January 22, 2007, 03:24
Default Re: 3D parabolic equation for fluid flow
  #2
Sing
Guest
 
Posts: n/a
What's your error when interpreting the udf?
  Reply With Quote

Old   January 22, 2007, 06:19
Default Re: 3D parabolic equation for fluid flow
  #3
Nelly
Guest
 
Posts: n/a
Error: /scratch_o2k/public/bel/ss1.c: line 2: syntax error
  Reply With Quote

Old   January 22, 2007, 15:03
Default Re: 3D parabolic equation for fluid flow
  #4
Sujith
Guest
 
Posts: n/a
If you are getting this error in linux this may be due to a stray ^m character, by the editor in windows. run the command : dos2unix <filename.c> /* this will clean the file for linux*/ and then interpret in Fluent.
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boundary condition for non newtonian flow (need to solve a differential equation) liguifan OpenFOAM 5 September 15, 2011 07:48
What the differences flow equation of Fluent 6.3 and Fluent 12.1 opehterinar81 FLUENT 0 August 19, 2011 11:55
conservation equation for multiphase flow alan81 Main CFD Forum 0 July 5, 2011 14:17
Flow meter Design CD adapco Group Marketing CD-adapco 3 June 21, 2011 08:33
Multicomponent flow equation (species) CFX 10 AdidaKK CFX 0 November 17, 2009 00:17


All times are GMT -4. The time now is 19:28.