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

Dynamic Mesh for Movement of Piston

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2013, 06:45
Default Dynamic Mesh for Movement of Piston
  #1
Member
 
Vignesh KPV
Join Date: Oct 2011
Location: Bangalore
Posts: 83
Rep Power: 15
vigii is on a distinguished road
Send a message via Skype™ to vigii
Hi Everyone,

I'm trying to simulate the motion of the piston (2D case).

Please see the attached image.

Here,I want to move my piston head. I tried by using UDF (please see down) and using profiles.
I'm not clear how to make the mesh move. What are the BC and Dynamic mesh condition to be given for my domain if my mesh is structured.

Please help me to start my simulation in a right direction.

And also I need to know about how does the function of UDF and Profiles affect for the particular problem.

Code:
#include "udf.h"
#include "dynamesh_tools.h"

DEFINE_CG_MOTION(oscillate,dt,vel,omega,time,dtime )
{
Thread *t;
face_t f; 
t = DT_THREAD(dt);

begin_f_loop(f,t) 
{
if (time <= 0.12)
vel[0] = 0.1;
else
vel[0] = 0;
}
end_f_loop(f,t)
}
Attached Images
File Type: jpg Piston.jpg (14.1 KB, 25 views)
vigii is offline   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
Dynamic mesh is not getting updated. cardio FLUENT 1 May 20, 2014 09:41
Update of the variables after dynamic mesh motion. gtg258f OpenFOAM Programming & Development 9 January 18, 2014 11:08
potentialFreeSurfaceFoam with Dynamic Mesh GuilhermeMP OpenFOAM Programming & Development 1 October 6, 2013 04:05
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
Some questions about mesh updating in dynamic mesh technique lzgwhy Main CFD Forum 0 June 14, 2009 09:01


All times are GMT -4. The time now is 06:26.