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

Motion UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2013, 11:56
Default Motion UDF
  #1
New Member
 
Kai Ling
Join Date: Sep 2013
Posts: 8
Rep Power: 13
kailingkk is on a distinguished road
Hello people!

After reading through ANSYS UDF manual and several paper references and going through this forum, I have been trying to create a UDF for a fixed downward unit acceleration. I have come up with several UDF functions but to no avail my dynamic mesh remains stationary. No motion is detected during previewing of mesh motion!

Here are the few UDF that I have came up with:

#include "udf.h"

DEFINE_SDOF_PROPERTIES(falling_box, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 301125;
prop[SDOF_IXX] = 784179;
prop[SDOF_IYY] = 853188;
prop[SDOF_IZZ] = 382679;
prop[SDOF_LOAD_F_Y] = 265291.25;
printf ("\n2d_test_box: Updated 6DOF properties");
}




2nd try:
DEFINE_CG_MOTION(object_mov, dt, vel, omega, time, dtime)
{
real a;
/* define motion variables */
t = RP_Get_Real("flow-time");
a = -1; /* 1ms2 acceleration */
/* define object movement law */
vel[0] = 0;
vel[1] = -5 + a*t;
vel[2] = 0;
}


3rd try:


DEFINE_ADJUST(moveplease, domain)
{
double AlnrX;
AlnrX = -1;
printf("accel = %f\n", AlnrX);
}

Could anybody tell me what is wrong with any of my UDFs? Thank you!

If it helps, I'm trying to simulate a lowering of an object into a tank of water (in 2 scenarios; with and without waves)

Thank you once again
kailingkk is offline   Reply With Quote

Reply

Tags
udf, udf cg motion


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 for creating motion to a body using a source file. jayjay Fluent UDF and Scheme Programming 1 August 18, 2012 22:05
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 for tank motion kris FLUENT 0 August 18, 2006 02:27
UDF error CG Motion Alex FLUENT 0 March 22, 2006 18:40


All times are GMT -4. The time now is 17:55.