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

UDF for equation of motion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2018, 13:48
Default UDF for equation of motion
  #1
New Member
 
Wael
Join Date: Jan 2018
Location: Manchester
Posts: 3
Rep Power: 8
saadyw is on a distinguished road
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 ?
Attached Images
File Type: png piston_cylinder.png (5.2 KB, 7 views)

Last edited by saadyw; January 24, 2018 at 11:28.
saadyw 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
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


All times are GMT -4. The time now is 14:54.