|
[Sponsors] |
January 21, 2008, 11:19 |
Set velocity in BC
|
#1 |
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 |
|
January 21, 2008, 12:02 |
Re: Set velocity in BC
|
#2 |
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.
|
|
January 22, 2008, 07:50 |
Re: Set velocity in BC
|
#3 |
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
|
|
January 22, 2008, 08:40 |
Re: Set velocity in BC
|
#4 |
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. |
|
January 24, 2008, 07:52 |
Re: Set velocity in BC
|
#5 |
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
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |