|
[Sponsors] |
April 19, 2016, 08:21 |
flapping wing udf
|
#1 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
moh_zain;594803]I am doing a CFD analysis of flapping wing motion in FLUENT and I need udf code to define the motion I do not know how to write it can any one help me with it thanks
|
|
April 19, 2016, 10:19 |
|
#2 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
you can try it,read the manual, have a look at other examples, build your code, bring the sketch of it and we can try help. no one is going to solve your problems for you.
Last edited by Bruno Machado; April 19, 2016 at 16:59. |
|
April 21, 2016, 05:57 |
|
#3 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
about the manual i just find manual for ansys 12 and i use ansys 16 is that make any diffrent
|
|
April 21, 2016, 06:47 |
|
#4 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
At this link you can see the manual (you might find a PDF version of it online) https://www.sharcnet.ca/Software/Ans...f/flu_udf.html |
||
April 22, 2016, 04:08 |
|
#5 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
is this code is fine for that
# include “udf.h” DEFINE_CG_MOTION(motion_wing, dt, v_cg, omega, time , dtime) { Thread *t; Face_t f; Real NV_VEC (A); Frequency= 3.0 ; /*frequency in hertz*/ Pi =3.141592654 ; /*pi*/ /* define motion variables */ Ar=30.0; /*roll amplitude of internal wing*/ Ar2=50; /* roll amplitude of external */ Arolldif= 55.0; /* roll amplitude between wings */ Aroll = Ar*pi/180.0; /* conversion to radians*/ Aroll2 = Ar2*pi/180.0; /* conversion to radians*/ Arolldif= Arolldif*pi/180.0; /* conversion to radians*/ w=2.0*pi*frequency; /* omega (radians)*/ T=1.0/frequency; /* period*/ /*ROLL DEFINITION*/ /* THIS IS THE ROLL ANGLE OF THE INTRENAL WING AND ITS HAS TO BE EQUAL TO THAT IN THE DEFINITION OF THE INTRNAL BODY ROLL MOTION */ roll = Aroll*sin(w*time); droll = w*Aroll*cos(w*time); } |
|
April 22, 2016, 05:19 |
|
#6 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
|
||
April 24, 2016, 15:26 |
|
#7 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
I have problem with the compiling can you tell me the right way to do that i use ansys 16x64 with win10x64 I tried to solve my problem by searching and reading about similar problems in the web but I didn’t find anything which could help me. i have installed Microsoft visual studio. thanks
|
|
April 24, 2016, 18:19 |
|
#8 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
http://www.cfd-online.com/Forums/flu...e-problem.html |
||
June 3, 2016, 00:08 |
lift and drag pattern change wit fluent 16 and 13 PISO for same mesh n solver setting
|
#9 |
Senior Member
Arun raj.S
Join Date: Jul 2011
Posts: 210
Rep Power: 16 |
Hello everyone,
I have some doubt regarding simulation using Fluent 13. Previously I used Fluent 16 to simulate the flapping wing. I got correct results by using Fluent 16. Then my supersior asked to simulate the further simulations in Fluent 13 which is installed in the server. So I tried to simulate using the server. But the real problem is I am not able to get the same Cl AND Cd pattern with Fluent 13 for the same settings. I dont understand the error at all. I am loading the same mesh file (created using ANSYS 16) and following the exact same steps in FLUENT13 which I followed in FLUENT16 but I am not able to get the results. The trend of Cl and Cd curve is completely different. So could you tell what could be the reason. I used the following settings in both FLUENT 13 and 16. But in Fluent 13 I am not getting the same result for same mesh file Pressure based, Transient, absolute and planar Laminar, air - 1.225 kg/m3 and viscosity 2.45e-4 Boundary condition: pressure outlet Smoothing: spring based, 0. Boundary layer relaxation 1, convergence 0.0001, iterations: 10000 PISO scheme: skewness correction-1, neighbor correction-1, Lease square cell based, standard , first order upwind, first order implicit, under-relaxation, pressure:0.3, momentum: 0.5. One more thing, in the global dynamic mesh settings , re-meshing tab the default max cell skewness value is 0.7 in case of Fluent 16 and when I use Fluent 13 for the same mesh file it shows default max cell skewness value is 0.66. I am little curious about this as I am using global settings for my deforming domain. It would be a great help if you let me know the mistake or changes in settings. |
|
June 4, 2016, 05:09 |
|
#10 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
make sure of the axis that you take cl and cd this is one or re-mesh using ansys 13
|
|
June 4, 2016, 11:41 |
|
#11 |
Senior Member
Arun raj.S
Join Date: Jul 2011
Posts: 210
Rep Power: 16 |
Hi Moh_zain,
Thank yuo so much for the reply. I found the error. I think PISO scheme of v16 is improved when compared to PISO scheme of v13. So it is not working properly with the same settings. I have to change the settings when I use fluent 13. But even after trying so many changes I am not able to get the same pattern. I dont know how to find the equivalent settings. I have tried more than 20 times, but till now i m able to match only the peak points, pattern is different. |
|
June 4, 2016, 18:10 |
|
#12 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
try to use second order upwind, second order implicit and green_gauss node based
|
|
June 5, 2016, 00:45 |
Non-iterative time advancement
|
#13 |
Senior Member
Arun raj.S
Join Date: Jul 2011
Posts: 210
Rep Power: 16 |
Hi Moh_zain,
There is no second order implicit for dynamic mesh in fluent 13. But when I use Non-iterative time advancement I am getting same peak Cl and Cd but the curve is not same. But the convergence graph is totally weird as there are sudden ups and downs. |
|
June 7, 2016, 19:23 |
|
#14 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
Hi
if you can try to re_mesh using ansys 13 i can not think there is any more problem |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DEFINE_CG_MOTION for flapping wing UDF | xyzch001 | Fluent UDF and Scheme Programming | 21 | February 7, 2022 08:47 |
Ffd_control_point_2d | feiyi | SU2 | 4 | September 30, 2019 13:42 |
Wave Generation via Flapping Wall UDF | LenDawg0220 | Fluent UDF and Scheme Programming | 5 | June 26, 2017 17:05 |
DEFINE_CG_MOTION for flapping wing UDF | xyzch001 | Fluent UDF and Scheme Programming | 0 | December 14, 2011 09:39 |
Modelling flow around a flapping wing | balkrishna | Main CFD Forum | 1 | February 19, 2010 00:32 |