Need help in writing UDF for an oscillating airfoil to get Output parameters
Hello everyone,
I need help in writing UDF for pitching airfoil for the particular case using DEFINE_OUTPUT_PARAMETER For reference please have a look at below link related to how to write UDF in the presence of Output Parameters. https://www.sharcnet.ca/Software/Ansys/16.2.3/en-us/help/flu_ug/flu_ug_sec_report_param_out_udf.html Actually I want to get CL(lift coefficient) values at different ''different'' AoA. Here is my UDF: #include "udf.h" DEFINE_CG_MOTION(oscillating_airfoil, dt, vel, omega, time, dtime) { real a, w, p, pi; pi = 3.14159265; /* define motion variables */ a = 5*(pi/36); /* Amplitude */ w = 2 * pi *1; /* Angular Frequency */ p = pi/2; /* phase */ /* define airfoil motion */ omega[2] = -a*sin(w*time+p); /* z-component of angular velocity */ } |
All times are GMT -4. The time now is 13:42. |