TAGGED: pitching, udf, unsteady-simulation
-
-
April 30, 2023 at 6:06 pm
qamar
SubscriberHi 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.
-
May 1, 2023 at 6:44 pm
Federico
Ansys EmployeeHello,
how are you assigning this motion in Fluent? Can you share a screenshot of the Dynamic Mesh zones settings?
-
May 2, 2023 at 9:31 pm
-
May 3, 2023 at 1:09 pm
Federico
Ansys EmployeeCan 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?
-
July 24, 2023 at 11:23 am
YudumC
SubscriberHello Have you solved the problem for 3D?
-
- The topic ‘UDF for pitching motion of a 3D wing with symmetry on both sides’ is closed to new replies.
-
3492
-
1057
-
1051
-
955
-
932
© 2025 Copyright ANSYS, Inc. All rights reserved.