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

Help! DEFINE_ZONE_MOTION

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2014, 14:33
Post Help! DEFINE_ZONE_MOTION
  #1
New Member
 
Mohammad Azim
Join Date: Mar 2014
Location: Southampton
Posts: 2
Rep Power: 0
mafz1g11 is on a distinguished road
Help!

I'm trying to model my mesh to be rotating in sinusoidal motion +/- 76degrees using the macro DEFINE_ZONE_MOTION.

# include"udf.h"
DEFINE_ZONE_MOTION(sinusoidal,omega,axis,origin,ve locity,time,dtime)
{
real w = 2.0*M_PI*0.0409;
real wt = w*time;
real th, thd, thdd;
th = -1.3265*sin(wt+1.5708);
thd = -1.3265*w*cos(wt+1.5708);
thdd = -w*w*th;
*origin = 0.5;
*omega = thd;
}

The UDF works but somehow the rotation is not +/-76degrees. Is it because my equation in the coding is wrong? Please someone help me.
Thanks!
mafz1g11 is offline   Reply With Quote

Reply

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 07:53.