CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Update nodes with a ON_DEMAND UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2009, 16:36
Default Update nodes with a ON_DEMAND UDF
  #1
Member
 
Join Date: Jun 2009
Posts: 31
Rep Power: 17
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
nodes, on demand, update


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update nodes with a ON_DEMAND UDF mrestrepo30 FLUENT 0 July 13, 2009 15:36
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
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


All times are GMT -4. The time now is 15:00.