Upload
others
View
4
Download
0
Embed Size (px)
Citation preview
www.boundary-element-method.com
Test problems for the 2D discrete Laplace Integral Operators
In the development of an appropriate boundary element method1 for the solution of Laplace’s Equation2 the equation is first reformulated as an integral equation containing (the Laplace) integral operators3. The integral equation is then re-cast as a linear system of equations4 by an integral equation method such as collocation. The integral operators thus replaced by a discrete analogue5, that is as a set of linear equations in which matrices are numerically determined.The vectors that repesent the boundary functions are determined either before or following the solution of the system. In this document, a set of test problems are developed for the module l2lc, which computes the discrete Laplace integral operators in 2D when the boundary is approximated by a set of straight line panels6 and the boundary functions are approximated by a constant on each panel.
The discrete forms of the Laplace integral operators3 are defined as follows5:
{𝐿𝑒}∆𝛤𝑗
(𝒑) = ∫ 𝐺(𝒑, 𝒒)𝑑𝑆𝑞∆𝛤𝑗
{𝑀 𝑒}∆𝛤𝑗
(𝒑) = ∫𝜕𝐺(𝒑, 𝒒)
𝜕𝑛𝑞 𝑑𝑆𝑞
∆𝛤𝑗
{𝑀𝑡 𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) =𝜕
𝜕𝑣𝑝∫ 𝐺(𝒑, 𝒒)𝑑𝑆𝑞∆𝛤𝑗
{𝑁 𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) =𝜕
𝜕𝑣𝑝∫
𝜕𝐺(𝒑, 𝒒)
𝜕𝑛𝑞 𝑑𝑆𝑞
∆𝛤𝑗
where 𝐺(𝒑, 𝒒) = −1
2𝜋ln 𝑟 in two dimensions
In the latter two definitions above the derivative can be taken inside the integral:
{𝑀𝑡 𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) = ∫𝜕
𝜕𝑣𝑝𝐺(𝒑, 𝒒) 𝑑𝑆𝑞
∆𝛤𝑗
and
{𝑁 𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) = ∫ 𝜕2𝐺(𝒑, 𝒒)
𝜕𝑣𝑝 𝜕𝑛𝑞 𝑑𝑆𝑞
∆𝛤𝑗
,
1 Boundary Element Method 2 Laplace’s Equation 3 The Laplace Integral Operators 4 Linear Systems of Equations 5 Discretization of the Laplace Integral Operators 6 Representation of a line by flat panels
www.boundary-element-method.com
except in the special case for the 𝑁 operator, when the observation point p lies on the panel ∆𝛤𝑗
′,
and in this case the evaluation of the discrete form requires special treatment.
Let us now go on to derive geometrical integral expressions for the other operators. In two dimensions we have
𝜕𝐺
𝜕𝑟= −
1
2𝜋 1
𝑟
𝜕2𝐺
𝜕𝑟2=
1
2𝜋 1
𝑟2
We also have the following ,
𝜕𝑟
𝜕𝑛𝑞=
𝒓. 𝒏𝑞
𝑟
𝜕𝑟
𝜕𝑣𝑝= −
𝒓. 𝒗𝑝
𝑟
𝜕2𝑟
𝜕𝑣𝑝𝜕𝑛𝑞=
1
𝑟(𝒗𝑝. 𝒏𝑞 +
𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞)
Using the chain rule allows us to derive expressions for the kernels of the M and Mt operators:
𝜕𝐺
𝜕𝑛𝑞=
𝜕𝐺
𝜕𝑟
𝜕𝑟
𝜕𝑛𝑞=
1
2𝜋
𝒓. 𝒏𝑞
𝑟2 and
𝜕𝐺
𝜕𝑣𝑝=
𝜕𝐺
𝜕𝑟
𝜕𝑟
𝜕𝑣𝑝= −
1
2𝜋
𝒓. 𝒗𝑝
𝑟2 .
Substituting these into the integrals gives the following expressions for the M and Mt operators:
{𝑀 𝑒}∆𝛤𝑗′(𝒑) = ∫
𝜕𝐺(𝒑, 𝒒)
𝜕𝑛𝑞 𝑑𝑆𝑞
∆𝛤𝑗′
=1
2𝜋∫
𝒓.𝒏𝑞
𝑟2 𝑑𝑆𝑞∆𝛤𝑗
′ and
{𝑀𝑡 𝑒}∆𝛤𝑗′(𝒑; 𝒗𝑝) = ∫
𝜕𝐺(𝒑, 𝒒)
𝜕𝑣𝑝 𝑑𝑆𝑞
∆𝛤𝑗′
= −1
2𝜋∫
𝒓. 𝒗𝑝
𝑟2 𝑑𝑆𝑞∆𝛤𝑗
′ .
(13)
The N operator has second derivatives in its definition. Using the following identity
www.boundary-element-method.com
𝜕2𝑟
𝜕𝑣𝑝𝜕𝑛𝑞= −
1
𝑟(𝒗𝑝. 𝒏𝑞 +
𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞),
along with the results above, gives the following,
(15)
𝜕2𝐺
𝜕𝑣𝑝𝜕𝑛𝑞=
𝜕
𝜕𝑣𝑝(𝜕𝐺
𝜕𝑟
𝜕𝑟
𝜕𝑛𝑞) =
𝜕
𝜕𝑣𝑝(𝜕𝐺
𝜕𝑟)
𝜕𝑟
𝜕𝑛𝑞+
𝜕𝐺
𝜕𝑟
𝜕2𝑟
𝜕𝑣𝑝𝜕𝑛𝑞
=𝜕2𝐺
𝜕𝑟2
𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞−
𝜕𝐺
𝜕𝑟
1
𝑟(𝒗𝑝. 𝒏𝑞 +
𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞)
=1
2𝜋 1
𝑟2 𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞+
1
2𝜋 1
𝑟2(𝒗𝑝. 𝒏𝑞 +
𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞)
=1
𝜋 1
𝑟2 𝜕𝑟
𝜕𝑣𝑝
𝜕𝑟
𝜕𝑛𝑞+
1
2𝜋 1
𝑟2𝒗𝑝. 𝒏𝑞 = −
1
𝜋 1
𝑟4 (𝒓. 𝒏𝑞)(𝒓. 𝒗𝑝) +
1
2𝜋 1
𝑟2𝒗𝑝. 𝒏𝑞.
Substituting the above into the definition of the N operator gives the following result,
note that this is not applicable when the point p lies on the panel ∆𝛤𝑗 :
{𝑁𝑒}∆𝛤𝑗
(𝒑) = −1
𝜋∫
1
𝑟4 (𝒓. 𝒏𝑞)(𝒓. 𝒗𝑝)∆𝛤𝑗
𝑑𝑆 +1
2𝜋𝒗𝑝. 𝒏𝑞 ∫
1
𝑟2∆𝛤𝑗
𝑑𝑆
In the following tests particular values of the disrete Laplace integral operators are found using
vector geometry7 and analytic integration8.
Test(s) 1
Let 𝒑 = (0,0), and let the edges of the panel be 𝒒𝑎 = (1,0) and 𝒒𝑏 = (1.5,0) with the
normal to the panel being 𝒏𝑞 = (01), as illustrated in the following diagram. The length
of the panel is |𝒒𝑎𝒒
𝒃⃗⃗ ⃗⃗ ⃗⃗ ⃗⃗ ⃗⃗ | = 1.
7 Vector Arithmetic and Geometry 8 Integration
𝒒𝑎 p 𝒒𝑏
𝒏𝒒
0 1 1.5
www.boundary-element-method.com
{𝐿𝑒′}∆𝛤𝑗′(𝒑) = ∫ −
1
2𝜋ln(𝑥) 𝑑𝑥 = −
1
2𝜋[𝑥 ln𝑥 − 𝑥]1
1.5 = −1
2𝜋(1.5ln1.5 − 0.5)
1.5
1
= −0.01722 (5 𝑑. 𝑝. ),
For Test 1A , let 𝒗𝑝 = (01). Since 𝒓 = 𝒑𝒒⃗⃗⃗⃗ ⃗ , then for any point 𝒒 on the panel, 𝒓 is
perpendicular to 𝒏𝑞and 𝒗𝑝 and hence {𝑀 𝑒′}∆𝛤𝑗′(𝒑) and {𝑀𝑡 𝑒′}∆𝛤𝑗
′(𝒑; 𝒗𝑝) are both zero. Since
𝜕𝑟
𝜕𝑣𝑝= 0 and
𝜕𝑟
𝜕𝑛𝑞= 0, then {𝑁𝑒′}∆𝛤𝑗
′(𝒑) =1
2𝜋∫
1
𝑟2 𝑑𝑆 =1
2𝜋∫
1
𝑥2
1.5
1 𝑑𝑥 = −
1
2𝜋[1
𝑥]1
1.5=
−1
2𝜋(
1
1.5−
1
1)=
1
6𝜋 .
For Test 1B, let us vary the direction of the vector so that 𝒗𝒑 = (−10
). Changing 𝒗𝑝 does not
alter {𝐿𝑒′}∆𝛤𝑗′(𝒑) or {𝑀 𝑒′}∆𝛤𝑗
′(𝒑). Since 𝒏𝑞and 𝒗𝑝 are perpendicular and 𝜕𝑟
𝜕𝑛𝑞= 0 it follows that
{𝑁𝑒′}∆𝛤𝑗′(𝒑) = 0.
{𝑀𝑡 𝑒′}∆𝛤𝑗′(𝒑; 𝒗𝑝)=−
1
2𝜋∫
𝒓.𝒗𝑝
𝑟2 =∆𝛤𝑗
′ −1
2𝜋∫
−𝑥
𝑥2
1.5
1 𝑑𝑥 =
1
2𝜋∫
1
𝑥
1.5
1𝑑𝑥 =
1
2𝜋[+ ln(𝑥)]1
1.5 =
1
2𝜋[ln(1.5)]1
1.5.
For Test 1B let us vary the direction of the vector so that 𝒗𝒑 = (0.60.8
). Changing 𝒗𝑝 does not alter
{𝐿𝑒′}∆𝛤𝑗′(𝒑) or {𝑀 𝑒′}∆𝛤𝑗
′(𝒑). Since 𝒏𝑞. 𝒗𝑝 = 0.8 are perpendicular and 𝜕𝑟
𝜕𝑛𝑞= 0 it follows that
{𝑁𝑒′}∆𝛤𝑗′(𝒑) = 0.
{𝑀𝑡 𝑒′}∆𝛤𝑗′(𝒑; 𝒗𝑝)=−
1
2𝜋∫
𝒓.𝒗𝑝
𝑟2 =∆𝛤𝑗
′ −1
2𝜋∫
0.6𝑥
𝑥2
1.5
1 𝑑𝑥 = −
0.6
2𝜋∫
1
𝑥
1.5
1𝑑𝑥 = −
0.6
2𝜋[+ ln(𝑥)]1
1.5 =
−0.6
2𝜋[ln(1.5)]1
1.5. {𝑁𝑒}∆𝛤𝑗′(𝒑) = 0.8 ⨯
1
6𝜋
Test 2
In this test let 𝒑 = (0,0), 𝒏𝑝 = (−10
),𝒒𝒂 = (2,0) and 𝒒𝒃 = (2,1), and hence 𝒏𝑞 = (−10
).
The points and vectors are illustrated in the following diagram.
𝒒𝑎 p
𝒒𝑏
2
1
𝒏𝒒
0
www.boundary-element-method.com
In order to find the values of the discrete operators, in this case, let y vary from 0 to 1;
from 𝒒𝒂 to 𝒒𝒃, so that 𝒒 = (2, 𝑦). Hence, we may write 𝒓 = 𝒑𝒒⃗⃗⃗⃗ ⃗ = (2𝑦) and 𝑟 = |𝒓| =
√4 + 𝑦2. Substituting these expressions into the definition of the L operator returns the
following result:
{𝐿𝑒′}∆𝛤𝑗′(𝒑) = ∫ −
1
2𝜋ln (√4 + 𝑦2) 𝑑𝑦 =
1
0
−1
𝜋 ∫ ln(4 + 𝑦2) 𝑑𝑦 =
1
0
−1
𝜋[𝑦(ln(4 + 𝑦2) − 2) + 4 tan−1 (
𝑦
2)]
0
1
= −1
𝜋(ln(5) − 2 + 4 tan−1 (
1
2))
= −0.116503674 (9 d. p. ) .
For the other operators, we note that 𝒓. 𝒏𝑞 = −2, 𝒓. 𝒗𝑝 = −2 and 𝒗𝑝. 𝒏𝑞 = 1. Hence
{𝑀 𝑒}∆𝛤𝑗′(𝒑) =
1
2𝜋∫
𝒓.𝒏𝑞
𝑟2 𝑑𝑆𝑞 = −1
𝜋∫
𝟏
𝑟2 𝑑𝑆𝑞 = −1
𝜋∫
𝟏
4 + 𝑦2 𝑑𝑦 = −1
2𝜋[tan−1 (
𝑦
2)]
0
11
0∆𝛤𝑗′∆𝛤𝑗
′
= −1
2𝜋tan−1
1
2= −0.073791809 (9 d. p. ) .
Similarly, {𝑀𝑡 𝑒}∆𝛤𝑗′(𝒑; 𝒗𝑝) = −0.073791809 (9 d. p. ) .
{𝑁𝑒}∆𝛤𝑗′(𝒑) = −
1
𝜋∫
1
𝑟4 (𝒓.𝒏𝑞)(𝒓. 𝒗𝑝) 𝑑𝑆 +1
2𝜋𝒗𝑝. 𝒏𝑞 ∫
1
𝑟2 𝑑𝑆
= −4
𝜋∫
1
𝑟4 𝑑𝑆 +1
2𝜋∫
1
𝑟2 𝑑𝑆 = −4
𝜋∫
1
(4 + 𝑦2)2
1
0
𝑑𝑦 +1
2𝜋∫
1
4 + 𝑦2
1
0
𝑑𝑦
= −1
4𝜋[
2𝑦
4 + 𝑦2]0
1
=1
10𝜋= 0.031830989 (9 d. p. ) .
Test 3
For the final test we consider the special case when the point p lies on the panel.
Formulae9 for the discrete operators are as follows:
{𝐿𝑒}∆𝛤𝑗
(𝒑) =1
2𝜋[𝑎 + 𝑏 − 𝑎 ln𝑎 − 𝑏 ln 𝑏],
{𝑀 𝑒}∆𝛤𝑗
(𝒑) = 0 ,
{𝑀𝑡 𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) = 0 and
{𝑁𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) =1
2 𝜋[1
𝑎+
1
𝑏] ,
9 Fortran codes for computing the discrete Helmholtz integral operators
www.boundary-element-method.com
where a is the distance from 𝒒𝒂 to p and b is the distance from 𝒒𝒃 to p. The derivation of the expression for {𝐿𝑒}
∆𝛤𝑗(𝒑) 𝑐an be derived by integration, as before. The expression for
{𝑁𝑒}∆𝛤𝑗
(𝒑) is derived by maintaining the 𝜕
𝜕𝑣𝑝 outside the integral and taking the limiting
value as the point p reached the boundary10.
In order to provide a test problem, let 𝒒𝒂 = (1,3) and 𝒒𝒃 = (1.3,2.4), and hence 𝒏𝑞 =
(−0.80.6
). Let 𝒑 = (1.15,2.2) and since 𝒑 lies on the panel 𝒗𝑝 = 𝒏𝑞 = (−0.80.6
).
The length of the panel is 0.5 and the lengths 𝑎 = 𝑏 = 0.25 and hence the non-zero
valued discrete operators are as follows:
{𝐿𝑒}∆𝛤𝑗
(𝒑) =1
2𝜋[0.25 + 0.25 − 0.25 ln 0.25 − 0.25 ln 0.25] = 0.189895272 (9 d. p. ),
{𝑁𝑒}∆𝛤𝑗
(𝒑; 𝒗𝑝) =1
2 𝜋[
1
0.25+
1
0.25] = 1.273239545 (9 d. p. ) ,
Test 4
This set of tests repeat the problem in Test 3. However, when the ‘l2lc’ routine is called logical
parameters are given the value of ‘true’ if the discrete operator value is required and ‘false’ if the
discrete operator value is not required. In the case where the value of the discrete operator is
not required, a zero is returned. This set of tests goes through every variation of the logical
parameters and verifies that the same result to Test 3 is returned when they are ‘true’ and a
zero is returned when they are ‘false’.
Test 5
In this test the observation point p is not on the panel. The discrete integral operators are
evaluated for a particular panel. The panel is then split in two and the sum of the discrete
integral operators over the two panels is compared to the initial discrete integral operators. If
they are the same then the test is passed.
Test 6
This test is similar to Test 5, except this time the observation point p is at the centre of the
original panel. The discrete integral operators are again evaluated for a particular panel. The
panel is then split in to three equal parts, with p lying at the centre of the middle panel. The sum
of the discrete integral operators over the three panels is compared to the initial discrete
integral operators. If they are the same then the test is passed.
10 Solution of exterior acoustic problems by the boundary element method
www.boundary-element-method.com
Test 7
This test verifies the evaluation of the discrete M and N operators by utilising the equations
{ 𝑀1}𝑆 (𝒑) + 1 = 0 (𝒑 ∈ 𝐷) ,
{ 𝑀1}𝑆 (𝒑) +1
2 = 0 (𝒑 ∈ 𝑆, 𝑆 is smooth at 𝒑) ,
{ 𝑀1}𝑆 (𝒑) = 0 (𝒑 ∈ 𝐸) .
{ 𝑁1}𝑆 (𝒑) = 0 (𝒑 ∈ 𝐷 ∪ 𝑆 ∪ 𝐸) .
where S is a closed boundary and ‘1’ represents the unit function. The boundary is that of the
unit square and the point p takes values of (-0.5,0.5) (in E), (0,0.5) (on S) and (0.5,0.5) (in D).
Test Problem
In the final test the discrete operators are calculated for a closed boundary, for which the
boundary condition and solution is known, and it is shown that two integral equations for the
interior laplace problems are approximately satisfied. The boundary is the unit square divided
into 32 panels.
The unit square domain and the 32 panels.
The simple solution of Laplace’s equation is assumed in which 𝜑 = 1 + 𝑦. The boundary
solution for φ is clear. It can also be deduced that 𝜕𝜑
𝜕𝑛= 𝑣 = 0 on the vertical boundaries when
𝑦 = 0, 1 and 𝜕𝜑
𝜕𝑛= 𝑣 = −1 on the lower boundary when 𝑥 = 0 and
𝜕𝜑
𝜕𝑛= 𝑣 = 1 on the upper
boundary when 𝑥 = 0. This data is fed in to show that they are solutions to the integral
equations {(𝑀 +1
2 𝐼) 𝜑} (𝒑) = {𝐿𝑣}(𝒑) and its derivative {𝑁𝜑}(𝒑) = {(𝑀𝑡 −
1
2 𝐼) 𝑣} (𝒑). Hence
tis verifies all four discrete operators.