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

Remeshing problem (

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 21, 2019, 05:58
Default Remeshing problem (
  #1
New Member
 
Join Date: Feb 2019
Posts: 1
Rep Power: 0
amim is on a distinguished road
Hello,

I am trying to simulate flow in rotary peristaltic pump. Basically 2D simulation where I deform one side of the tube by roller, move along the tube and the "undeform" back to it's original shape. I was adviced to use smoothing and remeshing.

Now the problem is that the deformation is basically not moving even thou it looks like the mesh is reacting and doing something. The udf which controls the motion can be seen below (I deleted some parts of the code for clarity as it is just calculation of the x a y velocity - the whole code is in the file below).

I also include the images of the settings.

Would be amazing if somebody would help me with this as I've been stuck at this for a while and I don't know what to try next. Can provide case if needed.

PS: There will be udf for the second roller as well but it should be the same so I am not including that. Also the udf doesn't include the inicial deformation as I don't know how to do that yet.


DEFINE_GRID_MOTION(peristaltic, domain, dt, time, dtime)
{

Thread *tf = DT_THREAD(dt);
face_t f;
Node *node_p;


vel_x = 2 * M_PI * rps * r_tube_middle;
vel_y = (d_tube - gab) / time_def;
time_360 = 1/rps;
time_180 = time_360 / 2;

SET_DEFORMING_THREAD_FLAG(THREAD_T0 (tf));

begin_f_loop(f, tf)
{
f_node_loop(f, tf, n)
{
node_p = F_NODE(f, tf, n); /*position of active node*/

if (NODE_POS_NEED_UPDATE(node_p))
{
NODE_POS_UPDATED(node_p);
/*position of active node (x,y direction)*/
x0 = NODE_X(node_p);
y0 = NODE_Y(node_p);
/*movement x-axis*/
NODE_X(node_p) = x0 + (vel_x * CURRENT_TIMESTEP);

if (CURRENT_TIME >= time_180)
{
y_new = y0 + (vel_y * CURRENT_TIMESTEP);
if (y_new > 0)
{
NODE_Y(node_p) = 0;
}
else
{
NODE_Y(node_p) = y_new;
}
}
}
}
}
end_f_loop (f, tf);
}

remesh_settigns.jpg

smoothing_settings.jpg

deformed_mesh.PNG

fluid.PNG

roller1.PNG
amim is offline   Reply With Quote

 


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
Remeshing Problem fjmaxfjmax FLUENT 1 March 5, 2016 18:45
Remeshing in FSI problem tctczxh CFX 12 September 25, 2014 11:11
Problem with moving mesh and remeshing technique.. stephen__white CFX 2 April 4, 2011 08:42
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 13:01.