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

UDF for 3D parabolic Inlet Profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2016, 22:27
Smile UDF for 3D parabolic Inlet Profile
  #1
New Member
 
Sineth
Join Date: May 2016
Location: Dundee, UK
Posts: 6
Rep Power: 10
Sicario is on a distinguished road
Hi Everyone,

I'm trying to create a fully developed inlet parabolic velocity profile, using Poiseuille flow equation v=vmax(1-(r/r)^2).

I have created the following UDF, but I'm not quite sure whether it is 100% as I'm quite new to this area. Especially, defining the time. Can someone please correct me if it is wrong or something is missing? It will be a massive help.

#include "udf.h"//file that contains definitions for define functions and fluent operations

DEFINE_PROFILE(inlet_para_velocity,th,i)
{
float x[ND_ND]; /* an array for the coordinates */
float xx, y, r;
face_t f; /* f is a face thread index */
r = 0.00314; /* inlet radius in m */
begin_f_loop(f,th)
{

double t = (CURRENT_TIME*2-floor(CURRENT_TIME*2))/2; //t is the local time within each period

F_CENTROID(x,f,th);
xx = x[0]; /* x coordinate */
y = x[1]; /* y coordinate */



F_PROFILE(f,th,i) = 0.254*(1.-(xx*xx+y*y)/(r*r));




}
end_f_loop(f,th)
}

Regards
Sicario is offline   Reply With Quote

Old   July 18, 2016, 22:36
Default
  #2
New Member
 
Sineth
Join Date: May 2016
Location: Dundee, UK
Posts: 6
Rep Power: 10
Sicario is on a distinguished road
Actually, I have attached the inlet contour after running the simulation for 0.5s and it is clearly not what I need, I need the maximum velocity at the centre. Hope someone can help.
Attached Images
File Type: jpg 2016-07-19.jpg (119.8 KB, 69 views)
Sicario is offline   Reply With Quote

Old   October 2, 2018, 09:57
Default
  #3
New Member
 
ismail demirkıran
Join Date: Jul 2017
Posts: 4
Rep Power: 9
mikethe is on a distinguished road
F_PROFILE(f,th,i) = 0.254*(1.-(sqrt(xx*xx+y*y))/(r*r));

I think 'sqrt' should be added due to obtain parabolic or pauiseille flow velocity inlet condition.
mikethe is offline   Reply With Quote

Reply

Tags
3d flow, parabolic inlet, poiseuille flow, udf


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 for a 3D inlet velocity profile with wave motion kailingkk Fluent UDF and Scheme Programming 9 May 26, 2021 08:33
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 05:58
UDF writing: parabolic profile Kwiaci Fluent UDF and Scheme Programming 11 June 5, 2012 11:13
Pulsatile profile at inlet Josyula Fluent UDF and Scheme Programming 4 May 6, 2012 11:09
How to define a parabolic velocity inlet of particles with UDF zumaqiong FLUENT 2 February 22, 2010 10:46


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