CFD Online Logo CFD Online URL
Home > Forums > FLUENT


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

LinkBack Thread Tools Display Modes
Old   March 6, 2014, 14:33
New Member
Mohammad Azim
Join Date: Mar 2014
Location: Southampton
Posts: 2
Rep Power: 0
mafz1g11 is on a distinguished road
Sponsored Links

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.
mafz1g11 is offline   Reply With Quote
Sponsored Links


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Sponsored Links

All times are GMT -4. The time now is 11:09.