CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   retrieving node coordinates (http://www.cfd-online.com/Forums/fluent/38914-retrieving-node-coordinates.html)

Bryan December 12, 2005 23:17

retrieving node coordinates
 
I want to retrieve the x and y coordinates for all my nodes in my model so that I can manipulate them later for a dymanic mesh function. My loop to collect them and store them in UDM looks like this:

thread_loop_c(tf, domain)

{

begin_c_loop(c,tf)

{

c_node_loop(c,tf,n)

{

w = C_NODE(c,tf,n);

C_UDMI(c,tf,0) = NODE_X (w);

C_UDMI(c,tf,1) = NODE_Y (w);

}

}

end_c_loop(c,tf);

}

problem is that since it loops over all the cells, i have many repeated values for the nodes where they overlap and share corners with other cells. Is there a way that I can avoid getting these repeated node values? I am new at this so any help would be appreciated.

Bryan


All times are GMT -4. The time now is 08:22.