|
[Sponsors] |
June 3, 2015, 16:25 |
"Reverse engineering" UDF for Dynamic Mesh
|
#1 |
New Member
V.Leb
Join Date: Jun 2015
Posts: 8
Rep Power: 11 |
Hi all,
I am trying to use the output of a simulation using a dynamic mesh, which works fine in functional form. I save the output as float in columns of x y positions for each node. However, when I try to set the x-y values to the nodes, I get "negative volume" error. begin_f_loop (f, tf) { f_node_loop (f, tf, n) { node_p = F_NODE (f, tf, n); /* Update the current node only if it has not been */ /* previously visited: */ if (NODE_POS_NEED_UPDATE (node_p)) { /* Set flag to indicate that the current node's */ /* position has been updated, so that it will not be */ /* updated during a future pass through the loop: */ NODE_POS_UPDATED (node_p); fscanf(fp, "%f %f\n", &x, &y); NODE_X (node_p) = x; NODE_Y (node_p) = y; } } } end_f_loop (f, tf); fclose(fp); When I print out the x,y values they are correct (same as output from the original UDF)... Am I doing something wrong or this is not possible for Dynamic Mesh? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
Help with UDF to change mesh by external mesh generator | zou_mo | Fluent UDF and Scheme Programming | 1 | July 1, 2009 05:57 |
with UDF to change mesh by external mesh generator | zou_mo | FLUENT | 0 | June 30, 2009 08:15 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |