CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Accessing node values using a UDF (

Nico December 17, 2007 12:48

Accessing node values using a UDF

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 December 17, 2007 12:59

Re: Accessing node values using a UDF *NM*

Raj December 20, 2007 03:50

Re: Accessing node values using a UDF

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

All times are GMT -4. The time now is 07:39.