|
[Sponsors] |
September 5, 2007, 17:51 |
Issue with NODE_POS_NEED_UPDATE (v)
|
#1 |
Guest
Posts: n/a
|
Hi Everybody
In the following simple code, the program does not go through the "if" ( nothing is being written in the file) which is quite surprising for me since the same piece of code works well when I use that in a deforming mesh function. It seems NODE_POS_UPDATED(v); does not work correctly. Thanks for sharing your ideas. Parsa ------------------------------------ #include "udf.h" DEFINE_EXECUTE_AT_END(sort) { Domain *ddx=Get_Domain(1); Thread *tf=Lookup_Thread(ddx,10); face_t f; Node *v; int n; FILE *fp; fp=fopen("checkdata.dat","a"); begin_f_loop(f,tf) { f_node_loop(f,tf,n) { v = F_NODE(f,tf,n); if (NODE_POS_NEED_UPDATE(v)) { NODE_POS_UPDATED(v); fprintf(fp,"%12.4e \n",NODE_X(v)); } } } end_f_loop(f,tf); fclose(fp); } ---------------------------------------------------------- |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue installation OpenFOAM - libopen-rte.so.0 | Voyage_gui | OpenFOAM | 1 | August 12, 2011 03:46 |
Meshing related issue in Flow EFD | appu | FloEFD, FloWorks & FloTHERM | 1 | May 22, 2011 08:27 |
[snappyHexMesh] snappyHexMesh Issue | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 3 | March 15, 2011 13:49 |
Simple Frustrating Meshing Issue in Gambit (w/pics) | Dylan | ANSYS Meshing & Geometry | 6 | March 23, 2009 16:14 |
STAR-CD Dynamics issue 16 | CD adapco Group Marketing | Siemens | 0 | November 30, 2001 10:25 |