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

Problem with moving_wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2008, 18:24
Default Problem with moving_wall
  #1
samnetmoon
Guest
 
Posts: n/a
Hi all,

i have a cylinder in 2d with moving wall in the left wall (i am using a UDF), the cylinder is filling in the half with metal liquid, there is a velocity inlet in the left of the top wall, and pressure outlet in the right of the top wall, i'd like to move the wall to push liquid's metal to move and to escape from the gate(pressure outlet), i have compiled my UDF(containing the equation of the velocity of the moving wall) successfuly, my Libudf was opened...but the moving wall was not moving.......i don't know where is the problem, what should i define in the boundary conditions? Or i shoule define a UDF for the DynamicMesh...

#include "udf.h"

static real v_prev = 0.0;

static real A = 0.00009;

static real f = 1;

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

{

/* reset velocities */

NV_S(vel, =, 0.0);

NV_S(omega, =, 0.0);

if (!Data_Valid_P())

return;

/* equation of velocity */

v_prev = 2*3.142*A*f*sin(2*3.142*f*time+3.142/2);

/* set x-component of velocity */

vel[0] = v_prev;

}

Regards for all
  Reply With Quote

Old   May 13, 2008, 06:00
Default Re: Problem with moving_wall
  #2
andy
Guest
 
Posts: n/a
Your UDF seems fine (especially if it compiled and opened!), you need to tell Fluent what wall to move and in which direction.

(This is assuming you haven't already): Go to your dynamic mesh zones, and make the wall that you want to move a moving zone, and select your UDF there, and set the direction you want it to move (x-direction = 1, y-direction = 0, z-direction = 0).

Save & Apply, then re-run the simulation (or mesh motion) to check if its moving properly.
  Reply With Quote

Old   May 13, 2008, 06:08
Default Re: Problem with moving_wall
  #3
samnetmoon
Guest
 
Posts: n/a
but sould I define fluid zone as dynamic mesh zone??!!
  Reply With Quote

Old   May 13, 2008, 20:43
Default Re: Problem with moving_wall
  #4
andy
Guest
 
Posts: n/a
if you have a moving wall and a fluid right next to it, that fluid needs to be defined as a dynamic zone which is deforming

any other walls adjacent to the moving one need to be defined as deforming as well
  Reply With Quote

Old   May 14, 2008, 20:17
Default Re: Problem with moving_wall
  #5
andy
Guest
 
Posts: n/a
email your case files to andycasey at gmail dot com
  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
VOF diffuse problem on two fluids problem Fang Jin FLUENT 5 February 17, 2011 05:38
Problem in Modelling Heat Transfer Problem Deepak R FLUENT 1 December 6, 2007 09:37
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 09:57
problem in solving "wave generation" problem san FLUENT 2 April 3, 2006 23:37


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