CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

How to get the Global Node Number by UDF : Fluent

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2007, 17:37
Default How to get the Global Node Number by UDF : Fluent
Posts: n/a
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.
  Reply With Quote

Old   October 23, 2015, 10:55
New Member
Join Date: Sep 2015
Posts: 1
Rep Power: 0
bcrbuaa is on a distinguished road

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.
bcrbuaa is offline   Reply With Quote


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
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 03:07

All times are GMT -4. The time now is 09:42.