-
-
March 3, 2019 at 6:09 pm
CatherineIl
SubscriberHello,
I would like to simulate an undulating airfoil using udf. Unfortunately, I do not have a lot of udf experience and I do not know how to do it. I know that I can use define_grid_motion but I am not sure how. Could anyone please help me? I would really appreciate that as I needed it for my uni project.Â
Thank you in advance,Â
Catherine -
March 4, 2019 at 12:59 am
Karthik Remella
AdministratorHello Catherine,
I always find the Fluent Customization Manual to be the best place for starting a UDF. Since there are multiple examples of tested UDFs illustrated in this manual, I generally tend to use them directly (at first) and then modify it to suit my modeling needs. Here is a link to the DEFINE_GRID_MOTION macro which will point you to an example. Please let me know here if you are able to access this link. I've also posted a screenshot of the UDF here for your help.
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v193/flu_udf/flu_udf_sec_define_grid_motion.html?q=define_grid_motion
Best,
Karthik
-
March 4, 2019 at 4:58 am
Keyur Kanade
Ansys Employeealso please go through some introduction to udf.Â
https://www.youtube.com/watch?v=PXTPfREgLzE
Â
-
March 4, 2019 at 8:45 am
CatherineIl
SubscriberHello again,Â
Thank you very much for your reply.Â
Unfortunately, I have tested this and my airfoil does not change at all even if I change the parameters and I do not understand why as I used the same as the manual. -
March 4, 2019 at 8:55 am
CatherineIl
SubscriberThe only one that I could find is the one below which deforms and increases the length but I do not how to deform it only.Â
#include"udf.h"
#include"unsteady.h"
#include"dynamesh_tools.h"
#include "udf.h"Â
DEFINE_GRID_MOTION(beam,domain,dt,time,dtime)Â
{Â
Thread *tf;Â
face_t f;Â
int n;Â
Node *v;Â
/* get the thread pointer for which this motion is defined */Â
tf=DT_THREAD(dt);Â
begin_f_loop(f,tf)Â
{Â
f_node_loop(f,tf,n)Â
{Â
v = F_NODE(f,tf,n);Â
NODE_Y(v)=NODE_Y(v)+fabs(NODE_X(v))*dtime;Â
}Â
}Â
end_f_loop(f,tf);Â
}Â -
March 5, 2019 at 3:53 am
Keyur Kanade
Ansys Employeecan you please insert some images of your geometry, mesh and explain what exactly you are trying to do.Â
-
March 18, 2019 at 10:29 am
CatherineIl
SubscriberFinally, I found my error so I managed to make it work. Thank you very much for your time.Â
-
July 29, 2023 at 10:04 am
Naren B
SubscriberHello Catherine,Â
I have been working on structure deformation in Ansys using DEFINE_GRID_MOTION UDF code.. But, the available published code showing more errors. I dont know what wrong with the code...would you be kind enough to share your code, so that I can learn and develop my own code..Im eagerly waiting for positive response from you..Your help is highly helpful for me..
Thanks in advance..
-
-
- The topic ‘Udf for undulating airfoil’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Script Error
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- convergence issue for transonic flow
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Point exception in erosion calculation
- Errors with multi-connected bodies using AQWA
- Script Error Ansys
-
2422
-
930
-
599
-
591
-
569
© 2025 Copyright ANSYS, Inc. All rights reserved.