|
[Sponsors] |
February 15, 2015, 12:37 |
Simple piston movement simulation
|
#1 |
New Member
Nam Nguyen
Join Date: Jan 2015
Posts: 3
Rep Power: 11 |
Hello everyone,
I'm doing a simple simulation of a moving piston with constant speed. Here's the general idea: As a beginner in both ansys and fluent, I decided to use layering dynamic mesh to control the motion of the piston. Here's the content of my UDF: #include "udf.h" DEFINE_CG_MOTION(piston_head, dt, cg_vel, cg_omega, time, dtime) { cg_vel[0] = 0.001; cg_vel[1] = 0.0; cg_vel[2] = 0.0; NV_S(cg_omega, = , 0.0); /* no angular motion */ } * The fluid is air (ideal gas) and I start with a steady time calculation. * The boundary condition for the inlet is set to "mass-flow inlet = 0.02 kg/s" and "gauge pressure = 0" for the outlet. * I ran the steady solution with 200 timesteps, but the solution seemed not to be converged. Then I continue with the transient time calculation. * I compiled and loaded my UDF succesfully. * In the dynamic mesh settings, I set the "piston zone" to rigid body, choose the piston_head::libudf, retain CG (0,0), cell height is 0.001m. * That's it for dynamic mesh settings. * Then I run the calculation again, the solution is converged but the piston didn't move at all. I don't know what I'm missing. Can anyone please help?? My truly appreciation! |
|
February 20, 2015, 09:28 |
|
#2 | |
Member
Join Date: Oct 2011
Posts: 80
Rep Power: 15 |
Quote:
sankarram90(a)gmail.com |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A simple 2D simulation getting stuck with No Error | Alhasan | OpenFOAM Running, Solving & CFD | 3 | April 5, 2020 18:01 |
Dynamic Mesh for Movement of Piston | vigii | Fluent UDF and Scheme Programming | 0 | November 18, 2013 07:43 |
A piston movement simulation | mohammad | CFX | 2 | January 8, 2012 20:39 |
Simple 3D IC two stroke engine simulation | darren_camilleri | FLUENT | 1 | December 3, 2011 09:31 |
piston movement | STK | FLUENT | 0 | October 7, 2004 09:01 |