CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF For inlet Velo BC, trouble in soln calculation

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2020, 02:16
Default UDF For inlet Velo BC, trouble in soln calculation
New Member
Join Date: May 2020
Posts: 2
Rep Power: 0
Siddharth17 is on a distinguished road
So i wrote the following snippet in order to obtain a power law velocity profile for my inlet BC.The z is the z co-ordinate and while i was able to interpret and hook the udf. as soon as start calculating the velocity, the continuity and all 3 velocities remain zero in residuals and only k & w are iterating.
My main aim is to do for transient k-w sst simulations but I also switched to steady just to check but it didnt work. Pls enlighten me as I am new to this UDF.
Another i would want to know is how to plot velocity vs z-coordinate while calculating solution
pls see the attachments

#include "udf.h"

real coord[ND_ND]; /* this will hold the position vector */
real z;
face_t f;

begin_f_loop(f,thread) /* loops over all faces in the thread passed
in the DEFINE macro argument */
F_PROFILE(f,thread,index)= 80.6715 * pow(z/323, 0.3584);
Siddharth17 is offline   Reply With Quote

Old   October 5, 2020, 03:11
Senior Member
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
best regards

press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   March 24, 2022, 08:08
Post Need help with UDF!
New Member
Join Date: Mar 2022
Posts: 1
Rep Power: 0
somanna is on a distinguished road
F_PROFILE(f,thread,index)= 80.6715 * pow(z/323, 0.3584)

From where did you get this? is there a standard expression? and what does the values stand for??
somanna is offline   Reply With Quote


fluent, fluent - udf - parallel, inlet bc, report definition, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How can I stop the calculation in UDF Seyoung Oh Fluent UDF and Scheme Programming 1 September 24, 2013 07:44
Calculation of face vaules with udf rom FLUENT 0 November 3, 2005 02:04
UDF for drag calculation Luca FLUENT 0 January 26, 2005 03:54
If it's right to use this UDF in DPM calculation? welch FLUENT 0 May 8, 2004 05:49
udf for Cd calculation Micaela Demichela FLUENT 2 November 15, 2001 23:40

All times are GMT -4. The time now is 01:55.