-
-
March 3, 2019 at 6:09 pmCatherineIlSubscriber
Hello,
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 amKarthik RemellaAdministrator
Hello 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 amKeyur KanadeAnsys Employee
also please go through some introduction to udf.Â
https://www.youtube.com/watch?v=PXTPfREgLzE
Â
-
March 4, 2019 at 8:45 amCatherineIlSubscriber
Hello 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 amCatherineIlSubscriber
The 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 amKeyur KanadeAnsys Employee
can you please insert some images of your geometry, mesh and explain what exactly you are trying to do.Â
-
March 18, 2019 at 10:29 amCatherineIlSubscriber
Finally, I found my error so I managed to make it work. Thank you very much for your time.Â
-
July 29, 2023 at 10:04 amNaren BSubscriber
Hello 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.
- Non-Intersected faces found for matching interface periodic-walls
- Script error Code: 800a000d
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Fluent fails with Intel MPI protocol on 2 nodes
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
-
1311
-
591
-
569
-
525
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.