CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   How can I define lateral axis as axis of rotation in Ansys UDF? (https://www.cfd-online.com/Forums/fluent-udf/208253-how-can-i-define-lateral-axis-axis-rotation-ansys-udf.html)

AamirSultan September 24, 2018 03:17

How can I define lateral axis as axis of rotation in Ansys UDF?
 
Hello Everyone ,
I am giving sinusoidal oscillatory motion to a 3D airfoil about longitudinal axis (lateral oscillations ) . How can I define "X-axis" as axis of rotation .
As you know that by default Z-axis is axis of rotation .
My Code is as follow ;

# include "udf.h"
DEFINE_ZONE_MOTION(sinusoidal,omega,axis,origin,ve locity,time,dtime)
{
real w = 2.0*M_PI*0.5; real wt = w*time; real axis[1]; real th, thd;
th = -0.017453*sin(wt); thd = -0.017453*w*cos(wt);
*omega = thd;
}

moh_zain October 13, 2018 07:01

Hi see http://users.ugent.be/~mvbelleg/fludf-12-0.pdf


and search for cg motion


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