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

UDF For inlet Velo BC, trouble in soln calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2020, 03:16
Default UDF For inlet Velo BC, trouble in soln calculation
  #1
New Member
 
Siddharth
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"

DEFINE_PROFILE(x_velocity,thread,index)
{
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_CENTROID(coord,f,thread);
coord[2]=z;
F_PROFILE(f,thread,index)= 80.6715 * pow(z/323, 0.3584);
}
end_f_loop(f,thread)
}
Siddharth17 is offline   Reply With Quote

Old   October 5, 2020, 04:11
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
tobe
Code:
z=coord[2];
was
Code:
coord[2]=z;
__________________
best regards


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

Old   March 24, 2022, 09:08
Post Need help with UDF!
  #3
New Member
 
Soma
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

Reply

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


All times are GMT -4. The time now is 11:51.