CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Accessing node values using a UDF (https://www.cfd-online.com/Forums/fluent/46853-accessing-node-values-using-udf.html)

Nico December 17, 2007 11:48

Accessing node values using a UDF
 
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

Nico December 17, 2007 11:59

Re: Accessing node values using a UDF *NM*
 

Raj December 20, 2007 02:50

Re: Accessing node values using a UDF
 
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


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