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

"Reverse engineering" UDF for Dynamic Mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2015, 15:25
Default "Reverse engineering" UDF for Dynamic Mesh
  #1
Leb
New Member
 
V.Leb
Join Date: Jun 2015
Posts: 8
Rep Power: 10
Leb is on a distinguished road
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?
Leb 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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Help with UDF to change mesh by external mesh generator zou_mo Fluent UDF and Scheme Programming 1 July 1, 2009 04:57
with UDF to change mesh by external mesh generator zou_mo FLUENT 0 June 30, 2009 07:15
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 00:25.