|
[Sponsors] |
January 23, 2018, 13:48 |
UDF for equation of motion
|
#1 |
New Member
Wael
Join Date: Jan 2018
Location: Manchester
Posts: 3
Rep Power: 8 |
I have a 2D dynamic mesh case for a piston-cylinder arrangement as shown in the attached image. I can create a udf to move the piston under certain velocity and the simulation proceeds with no problems. this udf is:
#include "udf.h" DEFINE_CG_MOTION(fluid_move,dt,vel,omega,time,dtim e) { vel[1] =-10.0; } What I need is to set the dynamic mesh zones according to a udf expressing the equation of motion of the piston which is : a = (F + p1*A1 - p2*A2) / m where: a .. acceleration, F .. External force, p1,p2 .. pressures on upper and lower boundaries respectively, A1,A2 .. areas of upper and lower boundaries respectively and m .. mass of the piston. Can you help me on this udf ? Last edited by saadyw; January 24, 2018 at 11:28. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF CG motion | Sam1990 | Fluent UDF and Scheme Programming | 1 | May 9, 2017 17:22 |
Display Zone motion of a dynamic mesh????Checking my UDF motion | Irenedea | FLUENT | 0 | March 20, 2014 03:17 |
UDF to control motion NOT about CG | LenDawg0220 | Fluent UDF and Scheme Programming | 0 | July 28, 2012 13:54 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
UDF error CG Motion | Alex | FLUENT | 0 | March 22, 2006 18:40 |