|
[Sponsors] |
November 11, 2020, 17:13 |
udf parabolic velocity profile inlet
|
#1 |
New Member
Join Date: Sep 2020
Posts: 8
Rep Power: 6 |
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 |
|
Tags |
fluent - udf, laminar, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OLAFLOW] The OLAFLOW Thread | Phicau | OpenFOAM Community Contributions | 459 | September 12, 2024 12:47 |
(ask) how to create UDF for inlet velocity profile | sincity | Fluent UDF and Scheme Programming | 83 | May 16, 2022 14:04 |
codeDict Error Parabolic Power Law Inlet Velocity Profile | Sindibad | OpenFOAM Running, Solving & CFD | 0 | January 1, 2017 20:53 |
UDF parbolic inlet velocity profile for 3D channel flow. | srv537 | FLUENT | 0 | August 6, 2016 03:21 |
UDF problem : inlet velocity in cyl. coord. system | Jongdae Kim | FLUENT | 0 | June 15, 2004 12:21 |