CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   (ask) how to create UDF for inlet velocity profile (

pakk June 8, 2018 12:17

I use TextPad or Vim.

elvirekatramiz August 8, 2019 05:40

negatif values
I have a question concerning the velocity profile.
I did the UDF function and compiled it in ANSYS fluent, however I need to assign it to a BC of inlet velocity? if so, it only gives positive values of the velocity... how can the velocity change from + to - on a boundary and thus change the direction of the velocity vectors?
should I change the type of boundary conditions?

Thank You !!

AlexanderZ August 8, 2019 08:49

if we speak about inlet boundary condition ->
positive velocity means flow inside domain
negative velocity means flow onside domain through inlet

best regards

alireza_T May 16, 2022 14:04

How can set velocity component in UDF
hello everybody, I need a UDF for the set velocity component.
for example. I want to set y velocity or anything else. so how can write it?

for example on the fluent, you can set ...

how can write it on the UDF, now?

All times are GMT -4. The time now is 15:37.