UDF for pitching motion of a 3D wing with symmetry on both sides

    • qamar

      Hi Everyone,

      I have a 3D airfoil with symmetry on both sides. I am trying to use this UDF for pitching motion, but I don't see any pitching motion. I have used this UDF for 2D cases successfully. Can you please update what to add to this to use it for the 3D case?

      Thank you.

      #include "udf.h"
      #include "dynamesh_tools.h"
      /*User-defined function for dynamic mesh */
      #define pi 3.1415926535897932384626433832795
      #define ff 1.317803
      DEFINE_CG_MOTION(move_body, dt, vel,omega, time, dtime)

      real alphabar,ome;
      /* reset velocities */
      /* motion */
             alphabar=20*pi/180; /* amplitude, pi/180 used for have rad instead of deg */
             ome=alphabar * ff*2*pi*cos(ff*2*pi*time);
        vel[0] = 0.0;
        vel[1] = 0.0;
        vel[2] = 0.0;
        omega[0] = 0.0;
        omega[1] = 0.0;
        omega[2] = ome;

      Kindly update soon as it is needed for my urgent project. Thank you in advance.

    • Federico Alzamora Previtali


      how are you assigning this motion in Fluent? Can you share a screenshot of the Dynamic Mesh zones settings?

    • qamar

      Thank you Federico,

      I am hereby attaching the pics with assigned motion. Please update me accordingly.

    • Federico Alzamora Previtali

      Can you tell me what internalfluid and externalfluid zones are? Can you show a screenshot of the domain?

      Also, what are the Motion Attributes for the airfoil?

Viewing 3 reply threads
  • You must be logged in to reply to this topic.