|
[Sponsors] |
July 13, 2009, 15:36 |
Update nodes with a ON_DEMAND UDF
|
#1 |
Member
Join Date: Jun 2009
Posts: 31
Rep Power: 17 |
Hi,
I'm calculating the displacement of the nodes by comparing two grids at different times, so the way it does it, is that it goes through the faces of a thread, and then on each face goes through all the nodes. However, as some faces "share" nodes, I end up calculating the displacement for one node several times. I tried to use something I found in the GRID_MOTION macro: f_node_loop (f1, t1, n1) { node1 = F_NODE(f1, t1, n1); if (NODE_POS_NEED_UPDATE (node1)) { NODE_POS_UPDATED (node1); ...... However when I use this the UDF never goes inside the IF, so I get no information from the nodes. Does anyone know how to implement this function on a ON_DEMAND macro? I appreciate any comments about it! |
|
Tags |
grid motion, need update, node, on demand, update |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Interpolation (Number of mapped nodes) | Sam | CFX | 3 | January 6, 2008 20:51 |
Number of nodes on block. | Felix | CFX | 0 | October 24, 2007 23:26 |
Removing free nodes with TGrid | Jack | FLUENT | 0 | March 30, 2006 04:58 |
meshing F1 front wing | Steve | FLUENT | 0 | April 17, 2003 13:37 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |