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

Accessing node values using a UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2007, 11:48
Default Accessing node values using a UDF
  #1
Nico
Guest
 
Posts: n/a
Hi!

I am trying to write a UDF in order to create a file with the node loads. I know that in post processing it is possible to obtain a file with, for example, the pressure at the nodes of a solid boundary, and that FLUENT calculates node values as the average of neighboring cell data. My problem is that i need to obtain node values using a UDF. My question is, what's the best way for accessing node values? In particular, i need to access nodes belonging to a solid boundary.

Thank you very much in advance!!

Nico
  Reply With Quote

Old   December 17, 2007, 11:59
Default Re: Accessing node values using a UDF *NM*
  #2
Nico
Guest
 
Posts: n/a
  Reply With Quote

Old   December 20, 2007, 02:50
Default Re: Accessing node values using a UDF
  #3
Raj
Guest
 
Posts: n/a
Nico,

There is a macro in fluent C_node_loop(..) which loops over the nodes in the selcted thread.Within this loop u can insert a message or printf statement to print it for you. You can use this macro in DEFINE_ON_DEMAND function.

Hope this helps
  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
UDF Global Node Number ? C. H. FLUENT 1 November 24, 2006 10:02
How to obtain node values in UDF? Maciej FLUENT 0 October 23, 2006 08:10
node based or cell centered Ts values acboge FLUENT 0 February 6, 2004 06:41
printing values from udf!!! Shekhar FLUENT 2 January 13, 2004 11:49
Help: how to get node values with UDF? Dazhi Guo FLUENT 0 February 4, 2001 00:59


All times are GMT -4. The time now is 18:03.