CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF, back and forth motion

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2006, 23:42
Default UDF, back and forth motion
Young O'Nel
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:02.