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 |
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.
|
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
|
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. |
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. |