|
[Sponsors] |
November 15, 2013, 05:45 |
Dynamic Mesh for Movement of Piston
|
#1 |
Member
|
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) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic mesh is not getting updated. | cardio | FLUENT | 1 | May 20, 2014 08:41 |
Update of the variables after dynamic mesh motion. | gtg258f | OpenFOAM Programming & Development | 9 | January 18, 2014 10:08 |
potentialFreeSurfaceFoam with Dynamic Mesh | GuilhermeMP | OpenFOAM Programming & Development | 1 | October 6, 2013 03:05 |
3D Hybrid Mesh Errors | DarrenC | ANSYS Meshing & Geometry | 11 | August 5, 2013 06:42 |
Some questions about mesh updating in dynamic mesh technique | lzgwhy | Main CFD Forum | 0 | June 14, 2009 08:01 |