|
[Sponsors] |
July 5, 2019, 08:31 |
3D Panel Method Code
|
#1 |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Hi. I have written my own 3d panel method code in MATLAB using the famous book "Low Speed Aerodynamics".
My code could calculate correct pressure coefficients of a NACA0012 airfoil at zero AoA in a steady flow, but fails to get correct result at 5 degree of AOA, it seems pressure coefficients of lower and upper surface diverge near trailing point. I added figures of both results. I think this may be caused by wrong calculation of source/doublet influence coefficients (problem with arc tangents functions). could anyone help me with this problem? Last edited by amin95; May 4, 2020 at 12:41. |
|
July 6, 2019, 11:13 |
influence coefficients calculation column in MATLAB
|
#2 |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Here I upload a pdf file containing my influence coefficients calculation in MATLAB with description. could anyone tell me is it correct or not?
Last edited by amin95; May 4, 2020 at 12:41. |
|
July 8, 2019, 06:32 |
3d Panel Method Open Source
|
#3 |
New Member
Apoorv Shukla
Join Date: Jul 2019
Location: Bengaluru
Posts: 8
Rep Power: 7 |
||
July 8, 2019, 08:23 |
|
#4 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
|
||
July 8, 2019, 09:13 |
|
#5 |
New Member
Apoorv Shukla
Join Date: Jul 2019
Location: Bengaluru
Posts: 8
Rep Power: 7 |
Hi Amin
I have never coded panel method; so cant be of much help. As per my knowledge "Vortex Element Method" by R.I Lewis would also be of good help. https://www.staff.ncl.ac.uk/r.i.lewi...ementsBook.htm Try to get it from your library. Regards Apoorv |
|
July 8, 2019, 13:05 |
|
#6 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
Which method did you use? What are dimensions of wing? I would suggest unswept rectangular wing of aspect ratio 20.
It looks like you have no wake. Run it without wake and with wake. |
|
July 8, 2019, 13:30 |
AR 20 results.
|
#7 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
Here is pressure on naca0012 at 5 degrees with no wake.
The small difference between your result and this is explainable by panel density. |
|
July 8, 2019, 18:17 |
|
#8 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
I used the Dirichlet boundary condition. The wing aspect ratio is about 6.5 and its unswept rectangular. I used 18 panels around airfoil section and 5 panels in each row, totally reaching to 90 panels. I ran the code both with and without wake but it seems that my results did not change with or without counting wake effect. So if I'm not wrong, according to your posted pressure figure my panels influence coefficients calculation is correct, and the problem is caused by wrong wake modelling? Here I upload pdf file of my wake influence coefficients calculation section in MATLAB for your notice. could you tell me where I did wrong? By the way if you don't mind I'd like to know which software did you use to get that pressure figure of naca0012 airfoil without wake? best regards Last edited by amin95; May 4, 2020 at 12:41. |
||
July 9, 2019, 14:45 |
|
#9 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
Without a wake, a body will produce no lift. The lift coefficient of my wing without a wake is -.008, with a wake it's 0.51 (see attached Cp).
If your answer does not change when you add a wake: the wake influence coefficients are wrong, they are not added to the matrix correctly, or the matrix solver does not see them. Print the wake circulation for your wing. Anyone writing computer programs must learn to recognize and debug errors. To validate your body influence coefficients, run a sphere and cylinder with few/more/many panels. The exact answer can be found in many texts. Very close comparison should be obtained. BTW you are solving an external Neumann problem. The work of PGL Dirichlet has nothing to do with it. I suggest you read the many papers by Luigi Morino (1970s). Good Luck. |
|
July 9, 2019, 14:46 |
|
#10 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
The naca 0012 with wake.
|
|
July 10, 2019, 20:29 |
|
#11 |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Circulation over the airfoil section is zero. I used prescribed wake model that all its panels are parallel to the trailing point local velocity vector. Could this be cause of the problem?
|
|
July 11, 2019, 13:10 |
|
#12 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
A picture is worth a thousand words: Plot your wake geometry. Does it extend at least 10 spans downstream? If the "local velocity vector" concept isn't working, just use a wake parallel to the chord.
Print your influence coefficient matrix. Are the wake terms non-zero? |
|
July 11, 2019, 13:13 |
|
#13 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
I'll get the hang of uploading files in a year or two.
|
|
July 15, 2019, 12:51 |
|
#14 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
Last edited by amin95; May 4, 2020 at 12:41. |
||
July 15, 2019, 12:54 |
|
#15 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
The lateral wake terms term are between magnitude of e-03 and e-07, and the first wake terms are between e-02 and e-07. Best regards Last edited by amin95; May 4, 2020 at 12:41. |
||
July 16, 2019, 15:59 |
|
#16 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
Is your panel method steady-state or time-dependent? The results I have provided are from a steady-state calculation.
What does the color of the wake panels signify? The circulation (doublet)? The circulation of the wake panel attached to the trailing edge of the wing is determined from what equation? Zero circulation in the wake would give the same result as no wake. In 30 years, I have not heard the phrase "lateral wake terms". Please define or provide a reference that describes this terminology. |
|
July 16, 2019, 16:34 |
|
#17 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
The color of the wake panels does not signify any value and by "lateral wake panels" I mean the wake panels that has already been shed by trailing edge panels with known doublet values in previous time steps. |
||
July 16, 2019, 16:46 |
|
#18 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
Last edited by amin95; May 4, 2020 at 12:41. |
||
July 17, 2019, 14:35 |
|
#19 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 15 |
On July 10, you said "Circulation over the airfoil section is zero". Indeed, the "wing panels doublet strength" shown on 15 July corroborates this statement.
Yesterday, you say "The wake panels doublet strengths are nonzero." and "Doublet strength of each new wake panel in every time step is determined by upper and lower trailing edge panels doublet strengths" The circulation of the airfoil section must equal the circulation of the wake panel attached to the trailing edge. Are the wake panel circulations non-zero, but very small? You should plot the strength of the trailing-edge wake panel (at the wing center) vs. time. And you should run 50-100 timesteps. Have you run enough time steps that the wake strength becomes asymptotic? |
|
July 18, 2019, 09:58 |
|
#20 | |
New Member
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 7 |
Quote:
I don't know why circulation of airfoil section is zero but trailing edge wake's is not. Last edited by amin95; May 4, 2020 at 12:41. |
||
Tags |
boundary element method, panel method |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linear-Strength Vortex Unsteady Panel Method (2D) | Sonik_87 | Main CFD Forum | 18 | February 23, 2020 10:16 |
The difference between Blade Element Method and Panel Method? | mrswordf1sh | Main CFD Forum | 2 | November 22, 2014 11:55 |
2D Field Panel Method Source Code | Shukla | Main CFD Forum | 3 | January 20, 2011 13:51 |
Please: Looking for a Panel method or vortice lattice for windmill | be_inspired | Main CFD Forum | 10 | April 1, 2009 17:53 |
Problem building 3D Panel Method | Daniel | Main CFD Forum | 0 | September 15, 2006 08:51 |