# Set velocity in BC

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

 January 21, 2008, 11:19 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

 January 21, 2008, 12:02 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.

 January 22, 2008, 07:50 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

 January 22, 2008, 08:40 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.

 January 24, 2008, 07:52 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Sof_70_Usthb CFX 3 July 9, 2011 06:15 minyang.cau FLUENT 0 July 14, 2009 23:14 allenzhao OpenFOAM Installation 127 January 30, 2009 20:08 Kali Sanjay Phoenics 0 November 6, 2006 07:10 edi ghirardi FLUENT 0 April 12, 2005 09:34

All times are GMT -4. The time now is 15:28.