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

Asking help about some statements in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2009, 08:26
Question Asking help about some statements in UDF
  #1
New Member
 
Artin Haroutunian
Join Date: Oct 2009
Posts: 3
Rep Power: 16
artin haroutunian is on a distinguished road
Hi there, I'm a graduate mechanical engineering student and i need to use UDF to do a project. I have come across some statements whose functions are not clear for me. I'll be so thankful if someone explains their function to me. Here is the beginning part of the source code:
DEFINE_ADJUST(psi_adjust, domain)
{
/* Check the number of user defined-scalars */
if (n_uds < N_REQUIRED_UDS)
Internal_Error("wrong number of user defined scalars allocated");
/* Fill a user defined scalar with the axial momentum source term */
Thread_loop_c (t, domain)
{
if (NULL != THREAD_STORAGE(t,SV_UDS_I(RHO)))
{
begin_c_loop (c,t)
{
.... (and it goes on)
I want to know 1)what does the second "if" statement do and what's "RHO"? 2)Is the statement "n_uds<N_REQUIRED_UDS" something known for fluent? Because they (n_uds and N_REQUIRED_UDS) were not declared anywhere in the source file!!!
Thanks a lot
artin haroutunian is offline   Reply With Quote

Reply


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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 13:31.