CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ANSYS

transorm UDF from 2D to 3D

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 10, 2010, 13:33
Question transorm UDF from 2D to 3D
  #1
New Member
 
Join Date: Feb 2010
Posts: 7
Rep Power: 7
aounallah is on a distinguished road
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
aounallah is offline   Reply With Quote

Reply

Tags
udf

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
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


All times are GMT -4. The time now is 04:44.