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

Problems with layering at moving boundaries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2017, 08:45
Default Problems with layering at moving boundaries
  #1
New Member
 
Join Date: Mar 2016
Posts: 6
Rep Power: 10
saoYT is on a distinguished road
Hello!

I'm working on a case similar to a cilindrical dam opening gradually with constant velocity and 2D geometry.

The mesh and boundary conditions are displayed at figure 01.

At first, I attached a CG_MOTION UDF for the boundary condition "moving wall" and "pressure outlet" at the top; that way, the walls of the dam would follow the movement of both boundary conditions (moving wall and pressure outlet) and it would open.

The UDF used:

#include "udf.h"
#include "dynamesh_tools.h"

//static real max_disp = 0.004;
//static real velocity = 0.1;
DEFINE_CG_MOTION(movingWall,dt,vel,omega,time,dtim e)
{
NV_S(vel,=,0.0);
NV_S(omega,=,0.0);
static real x0 = 0.001; // meters
static real velocity = 0.1;
real x;

if (!Data_Valid_P())
return;
//vel[0] = -velocity*pow(-1, (int)floor(time / (max_disp / velocity)));

if (time == dtime)
x = x0 + velocity*dtime;
else
x = x + velocity*dtime;

Message ("Info: updating position x = %f, and velocity v = %f.\n", x, velocity);
//vel[0] = velocity;
vel[0] = 0.1;
}

Since i'm using a rectangular mesh, i choose the layering technique for the dynamic mesh. But i'm experiencing some problems as it follows at figure 2. The mesh isn't relayering and i got a negative volume error.

Could somebody help with this problem? If i wasn't clear at my questions, please ask me.

Thanks in advance!

Yuri Taglieri
Attached Images
File Type: png fig1cfd.PNG (26.4 KB, 8 views)
File Type: png fig2cfd.PNG (14.9 KB, 8 views)
saoYT is offline   Reply With Quote

Reply

Tags
dynamic mesh, layering method, moving wall, negative volume cell, udf


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
dynamicMeshDict - Multi moving Boundaries felicemastronzo OpenFOAM Running, Solving & CFD 3 May 20, 2020 17:41
RANS for Moving Wall Boundaries @E18 Main CFD Forum 4 May 29, 2017 12:31
[Other] How to set up a dynamic mesh for a piston moving through a tube of variable diameter? karkar OpenFOAM Meshing & Mesh Conversion 0 July 4, 2012 07:54
CFX Post: Problems with moving point cloud for changing time steps spatialtime CFX 0 December 7, 2009 05:56
liquid/solide phase change problems mehdi fteity Main CFD Forum 3 September 14, 2000 22:44


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