|
[Sponsors] |
July 18, 2016, 22:27 |
UDF for 3D parabolic Inlet Profile
|
#1 |
New Member
Sineth
Join Date: May 2016
Location: Dundee, UK
Posts: 6
Rep Power: 10 |
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 |
|
July 18, 2016, 22:36 |
|
#2 |
New Member
Sineth
Join Date: May 2016
Location: Dundee, UK
Posts: 6
Rep Power: 10 |
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.
|
|
October 2, 2018, 09:57 |
|
#3 |
New Member
ismail demirkıran
Join Date: Jul 2017
Posts: 4
Rep Power: 9 |
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. |
|
Tags |
3d flow, parabolic inlet, poiseuille flow, udf |
|
|
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 |