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

NODE_POS_NEED_UPDATE not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2012, 12:06
Default NODE_POS_NEED_UPDATE not working
  #1
Member
 
Vitaly
Join Date: Jan 2012
Posts: 32
Rep Power: 14
Vitaly is on a distinguished road
Hello,

I am writing a simple UDF to loop over an inlet face and report the coordinates of the nodes. This is my code:

thread_loop_f(t,d)
{
begin_f_loop(f,t)
{
f_node_loop(f,t,node)
{
nd = F_NODE(f,t,node);


if (NODE_POS_NEED_UPDATE(nd))
{
NODE_POS_UPDATED(nd);

cord_x = NODE_X(nd);
cord_y = NODE_Y(nd);
cord_z = NODE_Z(nd);

fprintf(out,"%i %g %g %g\n",nd,cord_x,cord_y,cord_z);
}


}
}
end_f_loop(f,t)
}
fclose(out);

If I include the 'if' statement, my output file is blank.
Does anyone know if I am using the NODE_POS_NEED_UPDATE correctly?

Thanks,

Vitaly
Vitaly is offline   Reply With Quote

Reply


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
Is the subsetMotionSolver working in parallel? Arnoldinho OpenFOAM Running, Solving & CFD 7 April 27, 2016 04:38
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 02:01
Working Principle of Micro-Oven aero Siemens 2 January 31, 2007 05:00
Help required on working of Micro-oven aero CFX 4 January 19, 2007 08:21
Help required on working of Woven aero FLUENT 0 January 16, 2007 06:25


All times are GMT -4. The time now is 20:10.