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

udf parabolic velocity profile inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2020, 16:13
Default udf parabolic velocity profile inlet
  #1
New Member
 
Join Date: Sep 2020
Posts: 8
Rep Power: 5
Luigi* is on a distinguished road
Hi,
I am trying to write a UDF to give a parabolic velocity profile at the inlet of my domain. I find the following UDF in the fluent's guide:


#include "udf.h"

DEFINE_PROFILE(Inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y, h;
face_t f;

h = 0.00015; /* inlet height in m */

begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
y = 2.*(x[1]-0.5*h)/h; /* non-dimensional y coordinate */
F_PROFILE(f, thread, position) = 0.22*(1.0-y*y);
}
end_f_loop(f, thread)
}


I change the value of h with my height of the inlet, but the problem is that my inlet's coordinate along Y axis starts from (x,y) = (0,700um) to (x,y) = (0,850um) , height of inlet = 150 um. How should I modify my UDF in order to apply it to my problem?

Immagine 2020-11-11 220248.png
Luigi* is offline   Reply With Quote

Reply

Tags
fluent - udf, laminar, 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
[OLAFLOW] The OLAFLOW Thread Phicau OpenFOAM Community Contributions 458 July 10, 2024 02:57
(ask) how to create UDF for inlet velocity profile sincity Fluent UDF and Scheme Programming 83 May 16, 2022 13:04
codeDict Error Parabolic Power Law Inlet Velocity Profile Sindibad OpenFOAM Running, Solving & CFD 0 January 1, 2017 19:53
UDF parbolic inlet velocity profile for 3D channel flow. srv537 FLUENT 0 August 6, 2016 02:21
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 11:21


All times are GMT -4. The time now is 21:49.