|
[Sponsors] |
March 10, 2010, 13:33 |
transorm UDF from 2D to 3D
|
#1 |
New Member
Join Date: Feb 2010
Posts: 7
Rep Power: 16 |
Hi guys
I want to simulates a 3D channel flow and I need to enter an experimental velocity profile at the inlet, so I have already done it well in 2D with an UDF that generate the velocity inlet this is program #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f,thread); { F_CENTROID(x,f,thread); y =x[1]; if (y <= 0.025) F_PROFILE(f,thread,position) = 50.*pow((y/0.025),(1./7.)); else F_PROFILE(f,thread,position) = 50.; } end_f_loop(f, thread) } I will be very greatfull if some one can gives me help to transform this 2D program to 3D with the same trend Thanks in advance |
|
Tags |
udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |