|
[Sponsors] |
February 14, 2012, 13:06 |
NODE_POS_NEED_UPDATE not working
|
#1 |
Member
Vitaly
Join Date: Jan 2012
Posts: 32
Rep Power: 14 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is the subsetMotionSolver working in parallel? | Arnoldinho | OpenFOAM Running, Solving & CFD | 7 | April 27, 2016 05:38 |
DPM parallel is not working but serial is working | johnwinter | FLUENT | 1 | March 27, 2012 03:01 |
Working Principle of Micro-Oven | aero | Siemens | 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 |