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

Problem with using DEFINE_GRID_MOTION

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2011, 17:01
Default Problem with using DEFINE_GRID_MOTION
  #1
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 15
raghu mohan is on a distinguished road
I am using this UDF on a wall but I don't see any motion in the zone(wall):

#include "udf.h"

DEFINE_GRID_MOTION(beam,domain,dt,time,dtime)
{
Thread *tf = DT_THREAD(dt);
face_t f;
Node *v;
real NV_VEC(axis);
real disp;
int n;

/* set deforming flag on adjacent cell zone */
SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));


Message ("time = %f", time);

disp = dtime + time;
NV_D(axis, =, 0.0, 1.0, 0.0);

begin_f_loop(f,tf)
{
f_node_loop(f,tf,n)
{
v = F_NODE(f,tf,n);

/* update node if x position is greater than 0.02
and that the current node has not been previously
visited when looping through previous faces */

if (NODE_POS_NEED_UPDATE (v))
{
/* indicate that node position has been update
so that it's not updated more than once */
NODE_POS_UPDATED(v);


NV_VS(NODE_COORD(v), +=, axis, *, disp);
}
}
}
end_f_loop(f,tf);
}

Actually I am using layering method of dyn meshing technique. compiled and loaded this UDF. Attached this UDF to a wall through user-defined Type in dynamic zones panel. And gave time step as .01 and no.of steps as 500 in Zone motion panel but there is no motion in zone.

Can you please let me know what the mistake I am doing.
If you need any other information about what steps I am following please let me know.

Thank You,
Raghu
raghu mohan 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


All times are GMT -4. The time now is 23:48.