CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Set velocity in BC (https://www.cfd-online.com/Forums/fluent/47089-set-velocity-bc.html)

Xavi January 21, 2008 10:19

Set velocity in BC
 
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


Leverkin January 21, 2008 11:02

Re: Set velocity in BC
 
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.

Xavi January 22, 2008 06:50

Re: Set velocity in BC
 
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

Leverkin January 22, 2008 07:40

Re: Set velocity in BC
 
"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.


Xavi January 24, 2008 06:52

Re: Set velocity in BC
 
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


All times are GMT -4. The time now is 02:30.