Source Panel Method Tutorial
Source Panel Method Tutorial
To calculate the pressure coefficient of a circular cylinder of unit radius, Find the value I4,2
using Source Panel Method.
Solution:
• (xi, yi) are the coordinates of the control point of the ith panel and (xj, yj) are the running
coordinates over the entire jth panel.
• The coordinates of the boundary points for the ith panel are (Xi, Yi) and (Xi+1, Yi+1).
• The coordinates of the boundary points for the jth panel are (Xj, Yj) and (Xj+1, Yj+1).
• β is the angle between the freestream vector and the outward normal vector.
• Φ is the angle from the positive x-axis to the inside surface of the panel.
• δ is the angle from the positive x-axis to an outward normal vector of the panel.
= + ( 2) −
= + ( 2)
4th panel:
( )
Xi+1 = r cos = 1.cos 22.5 ( 180 ) = 0.9239
( )
Yi+1 = r sin = 1.sin 22.5 ( 180 ) = 0.3827
X = r cos = 1.cos ( 67.5 ( 180 ) ) = 0.3827
i
2nd Panel:
( )
X j = r cos = 1.cos 157.5 ( 180 ) = −0.9239
( )
Yj = r sin = 1.sin 157.5 ( 180 ) = 0.3827
( )
X j+1 = r cos = 1.cos 112.5 ( 180 ) = −0.3827
( )
Yj+1 = r sin = 1.sin 112.5 ( 180 ) = 0.9239
The integral Iij is evaluated at the 4th panel control point and the integral is taken over the
complete 2nd panel.
Iij =
j n
(ln rij ) ds j
i
(x − x ) + (y − y )
2 2
rij = i j i j
1 rij
ni
( ln rij ) =
rij ni
x y
1 rij
( xi − x j ) i + ( yi − y j ) i
ni ni
Iij =
j n
( ln rij ) ds j =
j r n
ds j =
j ( x − x ) 2 + ( y − y )2
ds j
i ij i
i j i j
Sj Cs j + D
Iij = ds j
0 s2j + 2As j + B
(Detailed derivation can be found in the Appendix)
Where,
A = − ( xi − X j ) cos j − ( yi − Yj ) sin j
B = ( xi − X j ) + ( yi − Yj )
2 2
C = sin ( i − j )
D = ( yi − Yj ) cos i − ( xi − X j ) sin i
(X j+1 − X j ) + ( Yj+1 − Yj )
2 2
Sj =
E = B − A 2 = ( xi − X j ) sin j − ( yi − Yj ) cos j
From any standard table of integrals:
C S j + 2AS j + B D − AC
2
−1 S j + A
−1 A
Ii,j = ln + tan − tan E
2 B E E
Assuming a unit radius for the cylinder, we see that
Appendix
From logarithmic and exponential functions,
•
d x
dx
( )
e = ex
d 1
• ln x =
dx x
dln ( x ) 1 dx 1
• = =
dx x dx x
d ln (F ( x ) ) 1 dF ( x )
• =
dx F ( x ) dx
Using the above function, we get
1 rij 1
( ln rij ) = ( xi − x j ) + ( yi − y j )
2 2 12
=
ni rij ni rij ni
rij 2 −1 2 x y
1
( ) ( ) 2 ( xi − x j ) i + 2 ( yi − y j ) i
2
= x − x + y − y
ni 2 ni ni
i j i j
x y
2 ( x i − x j ) i + ( y i − y j ) i
1 rij ni ni
=
rij ni
2 ( x i − x j ) + ( y i − y j ) ( x i − x j ) + ( y i − y j )
2 2 12 2 2 12
b+c
Note: a a = a
b c
x y
1 rij
( xi − x j ) i + ( yi − y j ) i
ni ni
=
rij ni ( x − x )2 + ( y − y )2
i j i j
From the figure, we get
xi y
= cos i and i = sin i
ni ni
Hence,
( xi − x j ) cos i + ( y i − y j ) sin i
Iij = ds
( x − x ) + ( y − y )
j 2 2 j
i j i j
(xj, yj) are the running coordinates over the entire jth panel.
x j = X j + s j cos j
y j = Yj + s j sin j
i and j are angles measured in the counterclockwise direction from the x-axis to
the bottom of each panel.
i in terms of i can be written as,
i = i − 90
(
cos ( i ) = cos i + 90 = − sin ( i ) )
(
sin ( i ) = sin i + 90 = cos ( i ))
Iij can be written as,
( xi − x j ) ( − sin i ) + ( yi − y j ) ( cos i )
Iij = ds
( x − x ) + ( y − y )
j 2 2 j
i j i j
Substitute the following terms into Iij , we obtain
x j = X j + s j cos j
y j = Yj + s j sin j
(
Iij =
) ( )
xi − ( X j + s j cos j ) ( − sin i ) + yi − ( Yj + s j sin j ) ( cos i )
ds
( (
x − X + s cos
) ( ) ( )
)
j 2 2 j
+ y − Y + s sin
i j j j i j j j
Numerator:
We know that,
sin ( A − B ) = sin ( A ) cos (B ) − cos ( A ) sin (B )
Using the above trigonometric identity,
where
C = sin ( i − j )
D = − ( xi − X j ) sin ( i ) + ( yi − Yj ) cos ( i )
Denominator:
( xi − ( X j + s j cos j ) ) ( + yi − ( Yj + s j sin j ) )
2 2
(x − x ) + (y − y )
2 2
i j i j = xi2 − 2xi x j + x 2j + yi2 − 2yi y j + y 2j
where
x j = X j + s j cos ( j )
y j = Yj + s j sin ( j )
By expanding,
In quadratic form,
( ) (
+ xi2 − 2xi X j + X2j + yi2 − 2yi Yj + Yj2 )
Takes the form,
s2j + 2As j + B
where,
A = − ( xi − X j ) cos ( j ) − ( y i − Yj ) sin ( j )
B = ( xi − X j ) + ( yi − Yj )
2 2
2 2
2A 2A
x + 2Ax + B = x + 2Ax +
2
2
+B−
2 2
(
= x 2 + 2Ax + A 2 + B − A 2 ) ( )
= ( x + A ) + E2
2
We complete the square in the denominator and then make a substitution that
brings the integral into the form.
Cu + D u 1
u 2
+a 2
du = C 2
u +a 2
du + D 2
u + a2
du
Then the first integral is a logarithmic and the second is expressed in terms of
tan−1
Cx + D
Ii,j = dx
x + 2Ax + B
2
Cx + D Cx + D C (u − A ) + D Cu + D − AC
Ii,j = dx = ( x + A ) + E2 dx = u2 + E 2 du = u2 + E2 du
x 2 + 2Ax + B 2
Cu + D − AC u du
du = C 2 du + (D − AC ) 2
u +E
2 2
u +E 2
u + E2
Second term:
1 1 u
u 2
+E 2
du = tan−1
E E
we know that
du 1 u
u 2
+a 2
= tan−1 + cons tan t
a a
Plug in for u = x + A and evaluate the integral,
1 −1 S j + A
Sj
Sj 1 1 −1 x + A −1 A
0 u2 + E2
du =
E
tan E
=
0 E
tan
E
− tan E
First term:
u
u 2
+ E2
du
( )
Sj
1
1
( ) ( 1
)
ln u2 + E2 = ln x 2 + 2Ax + B = ln S j + 2AS j + B − ln (B )
2
2 2 0 2
We know that
ln ( A ) − ln (B ) = ln ( A B )
1 S j + 2AS j + B
2
Sj u
0 u2 + E 2
du = ln
2 B
Combining the integral expressions:
u 1
Iij = C du + (D − AC ) 2 du
u +E 22
u + E2
C S j + 2AS j + B D − AC −1 S j + A
2
−1 A
Iij = ln + tan − tan
2 B E E E
where.
A = − ( xi − X j ) cos ( j ) − ( yi − Yj ) sin ( j )
B = ( xi − X j ) + ( yi − Yj )
2 2
C = sin ( i − j )
D = − ( xi − X j ) sin ( i ) + ( yi − Yj ) cos ( i )
E = B − A2
Reference: