Fluids

Fluids

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

    • qamar
      Subscriber

      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
      #include
      #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 */
      NV_S(vel,=,0.0);
      NV_S(omega,=,0.0);
      /* 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
      Subscriber

      Hello,

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

    • qamar
      Subscriber

      Thank you Federico,

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

    • Federico Alzamora Previtali
      Subscriber

      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.