# 3D parabolic equation for fluid flow

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 January 22, 2007, 00:51 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); }

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

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

 January 22, 2007, 14:03 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 /* this will clean the file for linux*/ and then interpret in Fluent.

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post liguifan OpenFOAM 5 September 15, 2011 07:48 opehterinar81 FLUENT 0 August 19, 2011 11:55 alan81 Main CFD Forum 0 July 5, 2011 14:17 CD adapco Group Marketing Siemens 3 June 21, 2011 08:33 AdidaKK CFX 0 November 16, 2009 23:17

All times are GMT -4. The time now is 23:46.

 Contact Us - CFD Online - Privacy Statement - Top