|
[Sponsors] |
May 12, 2008, 18:24 |
Problem with moving_wall
|
#1 |
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 |
|
May 13, 2008, 06:00 |
Re: Problem with moving_wall
|
#2 |
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. |
|
May 13, 2008, 06:08 |
Re: Problem with moving_wall
|
#3 |
Guest
Posts: n/a
|
but sould I define fluid zone as dynamic mesh zone??!!
|
|
May 13, 2008, 20:43 |
Re: Problem with moving_wall
|
#4 |
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 |
|
May 14, 2008, 20:17 |
Re: Problem with moving_wall
|
#5 |
Guest
Posts: n/a
|
email your case files to andycasey at gmail dot com
|
|
|
|
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 |