# 2D airfoil with heaving and pitching motion

 Register Blogs Members List Search Today's Posts Mark Forums Read February 26, 2014, 08:58 2D airfoil with heaving and pitching motion #1 New Member   He Zhao Join Date: Feb 2013 Location: Shanghai(now) Posts: 11 Rep Power: 12 Hi friends, Now I'm dong a research.It's about 2D airfoil with heaving and pitching motion. I want to use sliding meshes. the pitching motion is that the airfoil revolve around an axis (the axis is in A quarter of the chord length) the heaving motion is that the airfoil oscillate in the y direction（2D）. velocity=0.5*3.14159265*cos(0.2*3.14159265*time) my udf is this: #include "udf.h" DEFINE_ZONE_MOTION(fmotion,omega,axis,origin,veloc ity,time,dtime) { real omegar; velocity=0.0,velocity=0.5*3.14159265*cos(0.2*3.14159265*time),velocity=0.0; origin=0.0, origin=time*velocity, origin=0.0; omegar = 0.5*3.14159265*cos(0.2*3.14159265*time); *omega = omegar; return; } I think "heaving motion" is velocity=0.5*3.14159265*cos(0.2*3.14159265*time) and "pitching motion" is origin=0.0, origin=time*velocity, origin=0.0; omegar = 0.5*3.14159265*cos(0.2*3.14159265*time); I know it's wrong,But I don't know how to simulate the two motion together. best regards, zhereal Last edited by zhereal; February 26, 2014 at 09:31. Reason: an unbalanced view   April 13, 2014, 15:18 #2 New Member   He Zhao Join Date: Feb 2013 Location: Shanghai(now) Posts: 11 Rep Power: 12 I solve this problem. the udf is below: #include "udf.h" DEFINE_ZONE_MOTION(gustn11,omega,axis,origin,veloc ity,time,dtime) { real m,n; m=-292.286; n=0.2046*sin(m*time); velocity=0.0,velocity=n,velocity=0.0; origin=0.0,origin=0.0,origin=0.0; axis=0.0,axis=1.0,axis=0.0; *omega=m; } #include "udf.h" DEFINE_ZONE_MOTION(zgustkz,omega,axis,origin,veloc ity,time,dtime) { real a,b,c,d,e,f,g,h,i,j,k,l; a=20.46; b=-292.286; c=292.286; d=0.01745; e=3.14159; f=0.2046*sin(b*time); g=0.01*a/b; h=g+(-1)*g*cos(b*time); i=d*b*cos(b*time+e); j=sqrt(i*i+b*b); k=sin(c*time); l=cos(c*time); velocity=0.0,velocity=f,velocity=0.0; origin=0.0,origin=h,origin=0.0; axis=((-1)*k*i)/j,axis=b/j,axis=(l*i)/j; *omega=j; } #include "udf.h" DEFINE_ZONE_MOTION(fgustkz,omega,axis,origin,veloc ity,time,dtime) { real a,b,c,d,e,f,g,h,i,j,k,l; a=20.46; b=-292.286; c=292.286; d=0.01745; e=3.14159; f=0.2046*sin(b*time); g=0.01*a/b; h=g+(-1)*g*cos(b*time); i=d*b*cos(b*time+e); j=sqrt(i*i+b*b); k=sin(c*time); l=cos(c*time); velocity=0.0,velocity=f,velocity=0.0; origin=0.0,origin=h,origin=0.0; axis=(k*i)/j,axis=b/j,axis=((-1)*l*i)/j; *omega=j; } ronithstanly likes this.  Thread Tools Search this Thread Show Printable Version Email this Page Search this Thread: Advanced Search Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules Similar Threads Thread Thread Starter Forum Replies Last Post etgau8 CFX 11 March 11, 2017 08:23 joseph CFX 0 August 1, 2007 15:26

All times are GMT -4. The time now is 01:04.