|
[Sponsors] |
February 25, 2010, 12:51 |
Help me with my udf plzzzz
|
#1 |
New Member
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 16 |
can any 1 pls help me with my udf .
Im running simulation with a cylinder ,sphere inside it for Non Newtonian fluid. I recently started working with fluent ,hope u could lead ur helping hand Dimensions of cylinder L=20cms D=4cms d(sphere)=2cms Parabolic Velocity equation be V=Vmax(1-r/R)^(n+1/n) my code: #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; real y,r,R; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); r = pow(x,2)+pow(y,2); // Vmax=4.1,R=o.o4// F_PROFILE(f, thread, position) = Vmax *pow(1-r/R,(n+1)/n); } end_f_loop(f, thread) } Please tell the changes i have to make ,thank u |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |