|
[Sponsors] |
October 14, 2009, 08:26 |
Asking help about some statements in UDF
|
#1 |
New Member
Artin Haroutunian
Join Date: Oct 2009
Posts: 3
Rep Power: 16 |
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 |
|
|
|
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 |