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

How to achieve actual velocity profile at the inlet (y-axis direction)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2018, 23:33
Question How to achieve actual velocity profile at the inlet (y-axis direction)
  #1
New Member
 
hanis izzati
Join Date: Oct 2018
Posts: 6
Rep Power: 8
hanis_iz is on a distinguished road
Hello,
I'm using UDF in my simulation (3D case) to achieve actual velocity profile at the inlet (y-axis direction). The results of my simulation (velocity magnitude at the inlet) is as below:

normal08 lam1.jpg

The velocity magnitude that i'm supposed to get is:

inlet.PNG

The UDF file that I used is:
Quote:
#include "udf.h"
#define Q 3.3e-5 //unit m3/sec
#define Diameter 4.9e-3 //unit m
DEFINE_PROFILE(inlet_y_velocity,t,i)
{
real y[ND_ND];
real r,Area;
face_t f;
Area=(M_PI/4.0)*pow(Diameter,2);
begin_f_loop(f,t)
{
F_CENTROID(y,f,t);
r=sqrt(pow(y[0],2)+pow(y[1],2));
F_PROFILE(f,t,i)=(2.0*Q/Area)*(1-pow(2.0*r/Diameter,2));
}
end_f_loop(f,t)
}
I'm very glad if someone could help me with my problem.
Thank you in advance.
hanis_iz is offline   Reply With Quote

Old   November 19, 2018, 07:07
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Your inlet is in the XZ-plane, but your UDF is written for the XY-plane.
pakk 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
UDF - Inlet Velocity Profile (Ansys Fluent) vinayak4399 Fluent UDF and Scheme Programming 3 August 25, 2020 15:15
atmBoundaryLayerInletVelocity - Velocity Profile not continuous through domain sdfij6354 OpenFOAM Running, Solving & CFD 3 July 26, 2017 17:16
Unable to obtain the actual velocity profile of a sinusoidal udf Gourabc FLUENT 0 March 4, 2017 05:49
simpleFoam: Non-uniform mesh near inlet & outlet causes incorrect velocity profile? Zaphod'sSecondHead OpenFOAM Running, Solving & CFD 0 January 28, 2015 06:17
ask for help about velocity inlet profile yuhehuan FLUENT 5 November 19, 2012 13:59


All times are GMT -4. The time now is 17:26.