|
[Sponsors] |
January 22, 2007, 01:51 |
3D parabolic equation for fluid flow
|
#1 |
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, 03:24 |
Re: 3D parabolic equation for fluid flow
|
#2 |
Guest
Posts: n/a
|
What's your error when interpreting the udf?
|
|
January 22, 2007, 06:19 |
Re: 3D parabolic equation for fluid flow
|
#3 |
Guest
Posts: n/a
|
Error: /scratch_o2k/public/bel/ss1.c: line 2: syntax error
|
|
January 22, 2007, 15:03 |
Re: 3D parabolic equation for fluid flow
|
#4 |
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.
|
|
|
|
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 08:48 |
What the differences flow equation of Fluent 6.3 and Fluent 12.1 | opehterinar81 | FLUENT | 0 | August 19, 2011 12:55 |
conservation equation for multiphase flow | alan81 | Main CFD Forum | 0 | July 5, 2011 15:17 |
Flow meter Design | CD adapco Group Marketing | Siemens | 3 | June 21, 2011 09:33 |
Multicomponent flow equation (species) CFX 10 | AdidaKK | CFX | 0 | November 17, 2009 00:17 |