CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

3D Panel Method Code

Register Blogs Community New Posts Updated Threads Search

Like Tree17Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2019, 07:31
Default 3D Panel Method Code
  #1
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
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 11:41.
amin95 is offline   Reply With Quote

Old   July 6, 2019, 10:13
Default influence coefficients calculation column in MATLAB
  #2
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
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 11:41.
amin95 is offline   Reply With Quote

Old   July 8, 2019, 05:32
Default 3d Panel Method Open Source
  #3
New Member
 
Apoorv Shukla
Join Date: Jul 2019
Location: Bengaluru
Posts: 8
Rep Power: 6
apoorvs01 is on a distinguished road
http://www.3dpanelmethod.com/
sbaffini likes this.
apoorvs01 is offline   Reply With Quote

Old   July 8, 2019, 07:23
Default
  #4
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by apoorvs01 View Post
Hi, thanks for your advice. i visited that site before and read the graduate work paper there also. I think it would be more helpful if you could tell me how to deal with problem at influence coefficients calculations.
amin95 is offline   Reply With Quote

Old   July 8, 2019, 08:13
Default
  #5
New Member
 
Apoorv Shukla
Join Date: Jul 2019
Location: Bengaluru
Posts: 8
Rep Power: 6
apoorvs01 is on a distinguished road
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
amin95 likes this.
apoorvs01 is offline   Reply With Quote

Old   July 8, 2019, 12:05
Default
  #6
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
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.
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 8, 2019, 12:30
Default AR 20 results.
  #7
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
Here is pressure on naca0012 at 5 degrees with no wake.

The small difference between your result and this is explainable by panel density.
Attached Images
File Type: jpg nowake.jpg (44.9 KB, 60 views)
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 8, 2019, 17:17
Default
  #8
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by blackjack View Post
Here is pressure on naca0012 at 5 degrees with no wake.

The small difference between your result and this is explainable by panel density.
Hi James ,thanks for your reply.

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 11:41.
amin95 is offline   Reply With Quote

Old   July 9, 2019, 13:45
Default
  #9
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
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.
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 9, 2019, 13:46
Default
  #10
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
The naca 0012 with wake.
Attached Images
File Type: jpg ar20wake.jpg (45.3 KB, 45 views)
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 10, 2019, 19:29
Default
  #11
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
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?
amin95 is offline   Reply With Quote

Old   July 11, 2019, 12:10
Default
  #12
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
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?
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 11, 2019, 12:13
Default
  #13
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
I'll get the hang of uploading files in a year or two.
Attached Images
File Type: jpg ar65.jpg (127.5 KB, 68 views)
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 15, 2019, 11:51
Default
  #14
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by blackjack View Post
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?
Here is my wing and its wake geometry figure at 5 degree AoA, as it could be seen the wake is parallel to the chord. Also I uploaded the wing panels doublet strengths figure too.

Last edited by amin95; May 4, 2020 at 11:41.
amin95 is offline   Reply With Quote

Old   July 15, 2019, 11:54
Default
  #15
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by blackjack View Post
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?
And at the end as you requested I uploaded wing panels doublet\source influence coefficient matrix plus the wake's first and lateral row panels doublet influence coefficient matrix in Excel file.

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 11:41.
amin95 is offline   Reply With Quote

Old   July 16, 2019, 14:59
Default
  #16
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
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.
blackjack is offline   Reply With Quote

Old   July 16, 2019, 15:34
Default
  #17
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by blackjack View Post
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.
I'm just following instructions from Katz & Plotkin Low Speed Aerodynamics Book chapter 13. My panel method is time dependent but the wake model for now is not free. It develops over each time step and only moved back parallel to the chord line by free stream velocity. Doublet strength of each new wake panel in every time step is determined by upper and lower trailing edge panels doublet strengths.

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.
amin95 is offline   Reply With Quote

Old   July 16, 2019, 15:46
Default
  #18
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by blackjack View Post
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.
This figure may help. The wake panels doublet strengths are non zero.

Last edited by amin95; May 4, 2020 at 11:41.
amin95 is offline   Reply With Quote

Old   July 17, 2019, 13:35
Default
  #19
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
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?
amin95 likes this.
blackjack is offline   Reply With Quote

Old   July 18, 2019, 08:58
Default
  #20
New Member
 
amin95
Join Date: Jul 2019
Posts: 20
Rep Power: 6
amin95 is on a distinguished road
Quote:
Originally Posted by blackjack View Post
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?
This is the figure of strength of the trailing-edge wake panels over 100 timesteps. they became asymptotic after 6 timesteps and their values are about between 1.45 and 1.65.

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 11:41.
amin95 is offline   Reply With Quote

Reply

Tags
boundary element method, panel method


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 09:16
The difference between Blade Element Method and Panel Method? mrswordf1sh Main CFD Forum 2 November 22, 2014 10:55
2D Field Panel Method Source Code Shukla Main CFD Forum 3 January 20, 2011 12:51
Please: Looking for a Panel method or vortice lattice for windmill be_inspired Main CFD Forum 10 April 1, 2009 16:53
Problem building 3D Panel Method Daniel Main CFD Forum 0 September 15, 2006 07:51


All times are GMT -4. The time now is 01:15.