|
[Sponsors] |
June 29, 2016, 16:12 |
Parabolic velocity profile in 3d with UDF
|
#1 |
New Member
Join Date: Apr 2016
Posts: 5
Rep Power: 10 |
Hi,
I am trying to get parabolic velocity at circular inlet of the pipe(figures and UDF code attached). Ideally velocity contour at inlet should show maximum velocity at center then decreasing towards outer side. But i am getting that in only one plane. Any suggestions to solve that? In attachments, image1 is vel contour at inlet, images 2 and 3 are the same at planes perpendicular to each other and in the pipe along its length. Thanks in advance. |
|
August 21, 2016, 19:35 |
|
#2 | |
New Member
|
Quote:
#include "udf.h" #include "math.h" DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; /* this will hold the position vector */ real y; real z; real a; face_t f; begin_f_loop(f, thread) /*loops over all faces in the thread passed in the DEFINE macro argument*/ { F_CENTROID(x,f,thread); y =x[1]; z =x[1]; a = pow((pow(y,2)+pow(z,2)),0.5); F_PROFILE(f, thread, index) = 2*0.00000491976*(1- (a*a/(0.10214*0.10214))); } end_f_loop(f, thread) } *****Axis is on the X direction |
||
Tags |
fluent - udf, velocity profile, workbench 16 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for 3d inlet parabolic velocity profile ? | shahzeb irfan | Fluent UDF and Scheme Programming | 10 | March 28, 2016 16:00 |
unable to get parabolic velocity profile with pimplefoam | houkensjtu | OpenFOAM | 4 | October 8, 2012 05:41 |
Parabolic Inlet velocity UDF parse error | Musa | Fluent UDF and Scheme Programming | 1 | August 29, 2012 02:37 |
UDF problem : inlet velocity in cyl. coord. system | Jongdae Kim | FLUENT | 0 | June 15, 2004 12:21 |
UDF component in Cyliderical Velocity? | Hongchan Kim | FLUENT | 3 | April 24, 2001 13:20 |