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

dynamic mesh and udf problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2008, 01:57
Default dynamic mesh and udf problem
  #1
boboroo
Guest
 
Posts: n/a
I want to simulate a tank with 60% water in it. The tank sways in a changeable omega value which changes with time. The swirl axis is y.

I use the vof modle, and write an udf as follows, set the omega relation and compile it into my fluent case. Then I set the wall of the tank with this udf in "define â€" dynamic mesh- zone".

Ps: in " define-boundary conditions ", because there is the udf to define its motion so I set the walls of the tank stationary as default.

But after I iterate for some steps, the water in the tank sways but the tank itself doesn't. Who could tell me what the problem in my work? Why the wall were stationary but the water sloshed? And whether my udf below is right? Thanks very much.

# include "udf.h"

DEFINE_CG_MOTION(swaytank, dt, vel, omega, time, dtime)

{ Thread *tf = DT_THREAD (dt);

face_t f;

real NV_VEC (axis);

int n;

/* set the swirl axis*/

NV_D (axis, =, 0.0, 1.0, 0.0);

begin_f_loop (f,tf)

{

/*set the omega relation*/

omega[1] = 0.21 * 0.26 * cos (0.21 * time);

}

end_f_loop (f, tf); }

  Reply With Quote

Old   January 20, 2008, 21:26
Default Re: dynamic mesh and udf problem
  #2
boboroo
Guest
 
Posts: n/a
anybody could give me some suggestion?
  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
problem with udf for dynamic mesh ja92 FLUENT 0 February 24, 2011 09:32
Dynamic mesh UDF problem Peter FLUENT 2 November 12, 2007 02:10
a problem about DEFINE_GEOM in dynamic mesh UDF speedcat FLUENT 1 May 16, 2005 03:09
Problem related with UDF for dynamic mesh Ryan FLUENT 6 April 29, 2004 09:29
UDF & Dynamic Mesh Tutorail Problem Qureshi FLUENT 6 February 6, 2004 03:52


All times are GMT -4. The time now is 17:59.