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

UDF wall velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2004, 08:10
Default UDF wall velocity
  #1
Avesta
Guest
 
Posts: n/a
hello is it possible to define velocity of fluid near wall(slip flow):U=B*(dU/dx or dy)^n and write udf for this boundary condition? if n=0.9 & B=0.02, is this udf is correct?

#include "udf.h"

DEFINE_PROFILE(slip, c, t) {

cell_t c;

Thread *t; double m =C_DWDX(c, t);

C_W(c, t)=0.02* pow ( m, 0.9); }

Yours faithfully Arash Avesta
  Reply With Quote

Old   May 20, 2004, 10:15
Default Re: UDF wall velocity
  #2
Andrew Garrard
Guest
 
Posts: n/a
Your value for slip should be possible to define using a UDF and if you want to define velocity at the wall you can hook it in at the wall boundary condition panel under the moving wall tab. I would use a Define Profile macro, however, you need the arguments (name, t, i). where name is the name that appears in the Fluent GUI, t is the thread (in this case wall that you apply the UDF to) and i is the this you are going to alter(presumably x, y, or z velocity at the wall)

Therefor you will not beed to define t with the Thread *t; line that you have. You will also need a face loop and an F_PROFILE(f, t, i) = line. If you don't understand these terms it is probably best you consult the fluent 6/6.1 UDF manual.
  Reply With Quote

Old   May 21, 2004, 06:09
Default ?UDF wall velocity
  #3
Avesta
Guest
 
Posts: n/a
hello thank you is it possible to define velocity of fluid near wall(slip flow):U=B*(dU/dx or dy)^n and write udf for this boundary condition? if n=0.9 & B=0.02, is this udf is correct?

#include "udf.h"

DEFINE_PROFILE(slip, thread, nw) { cell_t c; Thread *t; int i;

face_t f;

begin_f_loop (f,thread)

double m =C_DWDY(c, t);

{

F_PROFILE(f,thread,nw) = 0.02* pow ( m, 0.9);

} end_f_loop (f,thread) } please if it is not correct,write it for me correctly

Yours faithfully Arash Avesta

  Reply With Quote

Old   May 21, 2004, 06:51
Default Re: ?UDF wall velocity
  #4
Andrew Garrard
Guest
 
Posts: n/a
I haven't used the C_DWDY(c, t) macro befor, so I can't offer you any help with this. However, I know what you do not need to define you thread again with the Thread *t and you don't use variable i, so you wont need this. Your f_loop should be held within {} brackets. Here is what I would do: #include "udf.h"

DEFINE_PROFILE(slip, thread, nw)

{

face_t f;

begin_f_loop (f, thread)

{

cell_t c;

double m =C_DWDY(c, t);

F_PROFILE(f, thread, nw) = 0.02* pow (m, 0.9);

} end_f_loop (f,thread)

}

The last remaining problem with this code is the fact you have not defined c. What cell are you refering to in the C_DWDY(c, t) line. If it is the one next to the boundary face then there are macros for getting this cell avabliable, the information is in the UDF manual.

Happy coding
  Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Velocity at wall in an internal flow rsmartins CFX 3 July 16, 2011 06:58
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29
why boudary slip velocity is so larte using udf cxzhao FLUENT 0 July 4, 2005 00:06
wall conduction, UDF sudh FLUENT 0 June 28, 2004 08:09
udf: dimensionless wall coordinate Chris FLUENT 0 June 22, 2004 06:10


All times are GMT -4. The time now is 07:40.