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

Update nodes with a ON_DEMAND UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 13, 2009, 14:36
Default Update nodes with a ON_DEMAND UDF
  #1
Member
 
Join Date: Jun 2009
Posts: 31
Rep Power: 7
mrestrepo30 is on a distinguished road
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!
mrestrepo30 is offline   Reply With Quote

Reply

Tags
grid motion, need update, node, on demand, update

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 22:26
Removing free nodes with TGrid Jack FLUENT 0 March 30, 2006 03:58
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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