CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF for defining a velocity gradient

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

LinkBack Thread Tools Display Modes
Old   November 22, 2013, 12:58
Default UDF for defining a velocity gradient
New Member
Join Date: May 2009
Location: UK
Posts: 25
Rep Power: 10
mozkan26 is on a distinguished road
Dear friends,

I`m trying to simulate an axisymmetric swirl flow in Fluent with a very simple geometry, attached image shows my geometry and boundary conditions.

At the inlet boundary, radial and swirl velocity components are zero and axial velocity gradient is zero.

Gauge pressure is zero at the outlet and there is a wall with a constant rotational speed.

My UDF file for axial velocity gradient is below but I`m not sure if this is correct because I have difficulties with converging and continuity does not satisfy.

#include "udf.h"

real xf[ND_ND], xc[ND_ND];
face_t f;
cell_t c0;

Many thanks in advance.

Attached Images
File Type: jpg axisymmetric swirl.jpg (21.4 KB, 24 views)
mozkan26 is offline   Reply With Quote


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
3D velocity inlet UDF zumaqiong Fluent UDF and Scheme Programming 2 October 24, 2016 04:44
specified shear at wall - temperature gradient - UDF - access violation error senD Fluent UDF and Scheme Programming 9 September 18, 2014 07:29
Velocity gradient in previous timestep mateus FLUENT 1 December 13, 2012 14:07
3D UDF Paraboilc Velocity Profile with max velocity johnGo Fluent UDF and Scheme Programming 1 January 4, 2011 22:45
why boudary slip velocity is so larte using udf cxzhao FLUENT 0 July 4, 2005 00:06

All times are GMT -4. The time now is 22:46.