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

UDF, back and forth motion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2006, 00:42
Default UDF, back and forth motion
  #1
Young O'Nel
Guest
 
Posts: n/a
Dear All, please help me,I try to write UDF let Plate(block)moving by back and forth.

I had let plate moving at +X direction successful,but I don't know how to modify UDF for both +X and -X motion,Reciprocating.

--------------------- please help me to fix the UDF code,thanks. ---------------------

#include "udf.h" #include "dynamesh_tools.h"

DEFINE_CG_MOTION(transwall, dt, vel, omega, time, dtime) {

/* reset velocities */ NV_S(omega, =, 0.0);

if(!Data_Valid_P()) return;

/* set x-component of velocity */

vel[0]= 0.01; }

----------------------- Best Regards,

Young O'Nel.
  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



All times are GMT -4. The time now is 15:05.