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

NODE_POS_NEED_UPDATE not working

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 14, 2012, 13:06
Default NODE_POS_NEED_UPDATE not working
  #1
Member
 
Vitaly
Join Date: Jan 2012
Posts: 32
Rep Power: 5
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

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


All times are GMT -4. The time now is 04:51.