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

Set velocity in BC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2008, 11:19
Default Set velocity in BC
  #1
Xavi
Guest
 
Posts: n/a
Hi! I have a 2D model and I would like to fix the components of velocity in one of the edges as follows: Vy=0 Vx= not fixed (is computed by FLUENT).

Does anyone know what kind of BC should I use? Many thanks Xavi

  Reply With Quote

Old   January 21, 2008, 12:02
Default Re: Set velocity in BC
  #2
Leverkin
Guest
 
Posts: n/a
You can write a simple UDF tha access the edge you want and set the Vy = 0. There is an access macro command that allows you to do that: C_U(c,t) and C_V(c,t). You can try that.
  Reply With Quote

Old   January 22, 2008, 07:50
Default Re: Set velocity in BC
  #3
Xavi
Guest
 
Posts: n/a
Thanks! I am trying to find out more info about UDFs, What does the c mean? is it a constant?. Do you know exactly what should the text of the UDF be? thanks
  Reply With Quote

Old   January 22, 2008, 08:40
Default Re: Set velocity in BC
  #4
Leverkin
Guest
 
Posts: n/a
"c" stands for cell, "f" for face and "t" for thread.

It will look like that

include "udf.h"

DEFINE_PROFILE(velocity,t,i) {

real r; cell_t c;

begin_c_loop(c,t)

{

C_V(c,t) = 0 }

end_c_loop(c,t)

}

try this. It will probably works.

  Reply With Quote

Old   January 24, 2008, 07:52
Default Re: Set velocity in BC
  #5
Xavi
Guest
 
Posts: n/a
Mnay thanks! I found out an easier way to do that: impose the boundary condition: "symmetry" and then the Vy=0 and Vx is computed. Cheers, xavi
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Results of CFX Simulations Sof_70_Usthb CFX 3 July 9, 2011 07:15
can i set the velocity and pressure at the inlet at the same time by UDF minyang.cau FLUENT 0 July 15, 2009 00:14
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Velocity in Porous medium : HELP! HELP! HELP! Kali Sanjay Phoenics 0 November 6, 2006 07:10
How to set transient ang velocity? edi ghirardi FLUENT 0 April 12, 2005 10:34


All times are GMT -4. The time now is 03:24.