CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   How to get the Global Node Number by UDF : Fluent (http://www.cfd-online.com/Forums/fluent/46265-how-get-global-node-number-udf-fluent.html)

Yusuke October 8, 2007 17:37

How to get the Global Node Number by UDF : Fluent
 
I'm trying to get the global node number by Fluent UDF. I included following lines in my UDF code.

/*------------*/ face_t f; Node *v; Thread *tf int n;

begin_f_loop(f,tf){ f_node_loop(f,tf,n){

v=F_NODE(f,tf,n); } }end_f_loop(f,tf) /*------------*/

But, I don't know which value is global node number. Maybe, v or *v or n is global number, but the value is bigger than the number of nodes. Please give me help.

bcrbuaa October 23, 2015 10:55

Hi,

Based on the C programming language, *v is the global number of the node.
The variable v is a pointer, which stores the address of the memory of the certain global number.


All times are GMT -4. The time now is 04:10.