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

Problems with defining the area for velocity inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2017, 07:58
Default Problems with defining the area for velocity inlet
  #1
New Member
 
Join Date: Jul 2017
Posts: 1
Rep Power: 0
Eunikki is on a distinguished road
Hello everyone,
I'm trying to create a velocity profile for a cylinder's wall that is treated as velocity inlet. What I'd like to do is to restrict the area (by height) in order to make a profile that is better suited for my case. (3D simulation)


For instance this is the part that is used for axial velocity at the moment, but it doesn't differ from the normal velocity profile without the UDF:

DEFINE_PROFILE(vA_liq,thread,i)
{
face_t f;
float x[ND_ND];
float zpos;

begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
zpos=x[2];
if (zpos<=-0.66316 && zpos>=-1.65) // GIVE THE EXACT Z-AXIAL IN m
F_PROFILE(f,thread,i)=-1.15;
else
F_PROFILE(f,thread,i) = 0;
}
end_f_loop(f,thread)

How can I get it to restrict the area used for velocity inlet by setting the restraint on z-axis values?

Thank you in advance.

Last edited by Eunikki; August 17, 2017 at 04:08.
Eunikki is offline   Reply With Quote

Reply


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
problems when using sonicFoam with subsonic inlet BC JasonWang3 OpenFOAM Pre-Processing 2 June 22, 2015 05:55
[swak4Foam] GroovyBC problem in the defining inlet velocity iampolaris OpenFOAM Community Contributions 7 October 18, 2014 10:25
Inlet and outlet definition problems ethanmcmillan FLUENT 0 April 9, 2012 20:32
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


All times are GMT -4. The time now is 12:18.