# A solution with cubic boundary elements for the compressible fluid flow around obstacles

- Luminiţa Grecu
^{1}Email author

**2013**:78

https://doi.org/10.1186/1687-2770-2013-78

© Grecu; licensee Springer. 2013

**Received: **14 December 2012

**Accepted: **15 March 2013

**Published: **8 April 2013

## Abstract

The paper presents a solution of the problem of the 2D compressible fluid flow around obstacles, based on the boundary element method in which the singular boundary integral equation is solved with cubic boundary elements. In this approach the singular boundary integral with sources distribution is considered. The numerical method is implemented into a computer code developed under Mathcad, and numerical solutions for some particular cases are obtained. Numerical solutions are compared with analytical ones for cases when the latter exist. A good agreement between them can be observed even when the number of nodes chosen for the boundary discretization is quite small, the fact that shows the great efficiency of the exposed method.

**MSC:**65N38, 76M15, 76G25, 35Q35.

## Keywords

## 1 Introduction

Many of the phenomena studied in the nature are described by boundary value problems, in fact, by partial differential equations or systems of partial differential equations with boundary restrictions, and only few of them can be, in general, solved analytically.

One powerful numerical technique that can be used to solve such problems is the boundary element method. This method has been widely used to solve partial differential equations or systems of partial differential equations with boundary conditions, many books being dedicated to this subject (for example, [1–5]).

The boundary element method consists in solving, by discretization, a boundary integral equation, equivalent to the mathematical model of the problem to solve, by using finite elements named boundary elements. When applying this method, two big steps have to be done: first a boundary integral formulation is obtained, and usually it represents a singular boundary integral equation or a system of singular boundary integral equations, and then this singular integral equation is solved and numerical solutions are found.

When the problem to solve is described by systems of partial differential equations with fundamental solutions, this method can be successfully applied even if the boundary conditions are not linear, as in the case of the problem considered in this paper. The method is suitable for problems with infinite domains, as those of fluid flows around obstacles, because the fundamental solutions satisfy conditions that do not involve the presence of a fictive boundary at great distance. Other numerical methods such as finite difference method, finite volume method and finite element method can be applied to solve problems of fluid flow (see, for example, [6]), but the obstacle needs to be placed in a grid, and so the computational effort is quite big. The boundary element method has another great advantage over these, because it reduces the dimension of the problem by one and also the necessary computational effort.

In this paper, based on this method, a numerical solution for the two-dimensional problem of the compressible fluid flow around obstacles is obtained. The problem of the fluid flow around obstacles has been the subject of many papers, among which we mention [7–10], some of them dealing only with the incompressible case. The boundary element method has also been applied to solve this problem, but in this approach, a singular boundary integral equation formulated in velocity terms is considered, and the solution is evaluated by using higher-order boundary elements. So, the primary variables of interest are directly numerically evaluated without needing a differentiation process, as in the case of other approaches in which the stream function or the potential of the fluid flow are envisaged.

This paper is focused on the second step in applying this method, namely on solving the singular boundary equation which arises when at the first step an indirect technique with sources distribution is considered.

*C*assumed to be smooth and closed. The goal is to find out the perturbation produced by the obstacle and the fluid action on it. The mathematical model of the problem consists in a system of partial differential equations with a nonlinear boundary condition. In dimensionless variables, it can be written as (see [11], chap. 4)

where $\frac{u}{\beta}$ and *v* are the components of the perturbation velocity, ${n}_{x}$, ${n}_{y}$ denote the components of the normal unit vector outward the fluid, $\beta =\sqrt{1-{M}^{2}}$ (for the subsonic flow), and $M=\text{Mach number}$.

*f*, and assuming that

*f*satisfies a Hölder condition on

*C*, in [11], chap. 4, a singular boundary integral equation is deduced. It has the following expression:

where ${n}_{x}^{0}$, ${n}_{y}^{0}$ denote the components of the normal unit vector outward the fluid in the point ${\overline{\mathbf{x}}}_{0}\in C$. The sign ‘′’ denotes the Cauchy principal value of the integral.

This singular boundary integral is solved in the same paper by using a collocation method. Linear boundary elements are used in paper [12], and quadratic ones in paper [13], in order to get numerical solutions. The numerical solution acquires a higher degree of accuracy when higher-order boundary elements are used to solve the boundary integral equation.

Using cubic boundary elements to solve this singular boundary integral equation, we obtain a better approximation for the solution, because cubic boundary elements offer a better approximation not only for the unknown of the problem, but also for the geometry of the boundary involved.

Using the approximation models, the problem is reduced to a linear system of equations, which has as unknowns the nodal values of the sources intensities. After solving it, the components of the perturbation velocities and the local pressure coefficient are numerically evaluated.

A difficult stage in solving singular boundary integral equations is the treatment of the singularities that arise. Different methods can be applied to overpass this difficulty (see, for example, [14, 15]). Numerical evaluation of integrals of singular kernels is a very important aspect for a well-conditioned behavior of the system matrix. In paper [16] a regularization technique with modified shape functions has been applied. In this approach, the coefficients arising from integrals of singular kernels are evaluated with a simple method, namely the truncation method.

## 2 The discretized equation

In the herein boundary element approach for solving the singular boundary integral equation (2), the boundary is divided into *N* cubic boundary elements, noted ${L}_{j}$, $j=\overline{1,N}$. Each cubic boundary element has four nodes: two extremes and two interior ones. 3*N* nodes are used for the boundary discretization, because each boundary element has two common nodes with the two adjacent boundary elements.

*N*equations - the linear system the problem is reduced at

We further do not use the notation referring to the Cauchy principal value of an integral, but we take into account that when ${\overline{\mathbf{x}}}_{\mathbf{i}}\in {L}_{j}$ the integrals in (4) have singular kernels, and they are understood in this way, and when ${\overline{\mathbf{x}}}_{\mathbf{i}}\notin {L}_{j}$ they are the usual ones.

*ξ*is used, these functions have the following expressions, similar to those given in [3], pp.350-351:

where $[\mathbf{N}]=({N}_{1}{N}_{2}{N}_{3}{N}_{4})$ is a line matrix, $\{{\mathbf{x}}^{j}\}$, $\{{\mathbf{y}}^{j}\}$, $\{{\mathbf{f}}^{j}\}$ are the column matrices made with the global coordinates of ${L}_{j}$ nodes, and the nodal values of the unknown function corresponding to the same boundary element. Two systems of numbering are used: a global one (${f}_{j}$, $j=\overline{1,3N}$ represents the nodal value corresponding to node number *j*) and a local one (${f}_{l}^{j}$, $l=\overline{1,4}$, $j=\overline{1,N}$ represents the nodal value of the *l* th node of element number *j*).

where we denote by ${J}^{j}(\xi )$ the Jacobian coordinate transformation.

## 3 Coefficients evaluation

In order to completely solve the problem and to obtain the numerical solution, we need to compute the coefficients of **A**, so we need to evaluate the integrals that appear. Some of them are usual integrals, and we can use any mathematical software to compute them, but the others are integrals of singular kernels. For the evaluation of the singular integrals, we use in this paper the truncation method, the method that brings good results when the integrand does not oscillate near the singularity (see [14], chap. 6), as in the following case.

The above relations allow us to evaluate the coefficients given by relation (11) with a computer code, because their expressions depend only on the nodes coordinates. In order to find the expressions of coefficients arising from integrals considered in a Cauchy principal value sense, for which we apply the truncation technique, we need to mention the connection between the two systems of numbering used in this approach: the global and the local one. This also has to be done for simplifying the implementation of the method exposed into a computer code.

**Relation between the local and the global system of numbering**

Element | Nodes/local numbering | Nodes/global numbering |
---|---|---|

${L}_{1}$ | ${\overline{x}}_{1}^{1}$, ${\overline{x}}_{2}^{1}$, ${\overline{x}}_{3}^{1}$, ${\overline{x}}_{4}^{1}$ | ${\overline{x}}_{1}$, ${\overline{x}}_{2}$, ${\overline{x}}_{3}$, ${\overline{x}}_{4}$ |

${L}_{2}$ | ${\overline{x}}_{1}^{2}$, ${\overline{x}}_{2}^{2}$, ${\overline{x}}_{3}^{2}$, ${\overline{x}}_{4}^{2}$ | ${\overline{x}}_{4}$, ${\overline{x}}_{5}$, ${\overline{x}}_{6}$, ${\overline{x}}_{7}$ |

⋯ | ⋯ | ⋯ |

${L}_{j}$ | ${\overline{x}}_{1}^{j}$, ${\overline{x}}_{2}^{j}$, ${\overline{x}}_{3}^{j}$, ${\overline{x}}_{4}^{j}$ | ${\overline{x}}_{3j-2}$, ${\overline{x}}_{3j-1}$, ${\overline{x}}_{3j}$, ${\overline{x}}_{3j+1}$ |

⋯ | ⋯ | ⋯ |

${L}_{N}$ | ${\overline{x}}_{1}^{N}$, ${\overline{x}}_{2}^{N}$, ${\overline{x}}_{3}^{N}$, ${\overline{x}}_{4}^{N}$ | ${\overline{x}}_{3N-2}$, ${\overline{x}}_{3N-1}$, ${\overline{x}}_{3N}$, ${\overline{x}}_{1}$ |

For the *j* th boundary element ${L}_{j}$, $j=\overline{1,N}$, the nodes have, in the global system of numbering, the numbers $3j-2$, $3j-1$, 3*j*, $3j+1$, understanding that node number $3N+1$ is node number 1, the boundary being closed. So, the coefficients given by relations (11) come from singular integrals only when *i* takes one of the above values $i\in \{3j-2,3j-1,3j,3j+1\}$; otherwise they come from the usual ones.

- 1.When $i=3j-2$, the singularity arises when $\xi =-1$. The coefficients have in this case the expressions${a}_{ij}^{l}={\int}_{-1+\mathit{eps}}^{1}{N}_{l}\frac{{n}_{x}^{i}{P}_{i}^{j}(\xi )+{\beta}^{2}{n}_{y}^{i}{Q}_{i}^{j}(\xi )}{{R}_{ij}(\xi )}{J}^{j}(\xi )\phantom{\rule{0.2em}{0ex}}d\xi ,\phantom{\rule{1em}{0ex}}l=\overline{1,4}.$(19)
- 2.When $i=3j-1$, the singularity arises when $\xi =-\frac{1}{3}$. The coefficients are in this case given by$\begin{array}{rcl}{a}_{ij}^{l}& =& {\int}_{-1}^{-\frac{1}{3}-\mathit{eps}}{N}_{l}\frac{{n}_{x}^{i}{P}_{i}^{j}(\xi )+{\beta}^{2}{n}_{y}^{i}{Q}_{i}^{j}(\xi )}{{R}_{ij}(\xi )}{J}^{j}(\xi )\phantom{\rule{0.2em}{0ex}}d\xi \\ +{\int}_{-\frac{1}{3}+\mathit{eps}}^{1}{N}_{l}\frac{{n}_{x}^{i}{P}_{i}^{j}(\xi )+{\beta}^{2}{n}_{y}^{i}{Q}_{i}^{j}(\xi )}{{R}_{ij}(\xi )}{J}^{j}(\xi )\phantom{\rule{0.2em}{0ex}}d\xi ,\phantom{\rule{1em}{0ex}}l=\overline{1,4}.\end{array}$(20)
- 3.When $i=3j$, the singularity arises when $\xi =\frac{1}{3}$. The coefficients are$\begin{array}{rcl}{a}_{ij}^{l}& =& {\int}_{-1}^{\frac{1}{3}-\mathit{eps}}{N}_{l}\frac{{n}_{x}^{i}{P}_{i}^{j}(\xi )+{\beta}^{2}{n}_{y}^{i}{Q}_{i}^{j}(\xi )}{{R}_{ij}(\xi )}{J}^{j}(\xi )\phantom{\rule{0.2em}{0ex}}d\xi \\ +{\int}_{\frac{1}{3}+\mathit{eps}}^{1}{N}_{l}\frac{{n}_{x}^{i}{P}_{i}^{j}(\xi )+{\beta}^{2}{n}_{y}^{i}{Q}_{i}^{j}(\xi )}{{R}_{ij}(\xi )}{J}^{j}(\xi )\phantom{\rule{0.2em}{0ex}}d\xi ,\phantom{\rule{1em}{0ex}}l=\overline{1,4}.\end{array}$(21)
- 4.Finally, when $i=3j+1$, the singularity arises when $\xi =1$, and so we have${a}_{ij}^{l}={\int}_{-1}^{1-\mathit{eps}}{N}_{l}\frac{{n}_{x}^{i}{P}_{i}^{j}(\xi )+{\beta}^{2}{n}_{y}^{i}{Q}_{i}^{j}(\xi )}{{R}_{ij}(\xi )}{J}^{j}(\xi )\phantom{\rule{0.2em}{0ex}}d\xi .$(22)

**A**from relation (13), we return to the global system of numbering, and we write system (14) as follows:

Solving system (25), we find the nodal values ${f}_{1},{f}_{2},\dots ,{f}_{3N}$, and then we can evaluate the velocity components.

*f*satisfies a Hölder condition on the boundary, the components of the perturbation velocity can be obtained. On the boundary,

*u*,

*v*have the following expressions (see [11], chap. 4):

The coefficients from the above relations are evaluated in the same manner as in the case of the matrix coefficients; analogous formulas with (19)-(22) stand in the case of singular integrals from (29) and (30).

where *γ* is a fluid characteristic, a constant equal to the ratio between the specific heat at constant volume and the specific heat at constant pressure. For air it has the value $\gamma =1\text{,}405$.

## 4 Numerical results and conclusions

Using a good method for evaluating the singular integrals that appear is a stage of great practical importance, because the coefficients given by these singular integrals are dominants situated near the diagonal of the matrix, and so they play an important role in establishing a good behavior of the system.

The existence of particular cases for which the considered problem has an exact solution is of major significance because it allows us to test the developed method. In this paper we compare the numerical solution with the exact one in order to make an analytical checking of the exposed method. The analytical checking always represents a great challenge and is a very difficult step to overpass to validate the method.

*u*,

*v*) on the boundary and the local pressure coefficient (

*cp*) have the following expressions:

The presented method is implemented into a computer code made with Mathcad programming tools. It is used to find out the numerical solutions for the components of velocity and also for the local pressure coefficient and the exact values of the mentioned quantities.

The input data refer to the boundary geometry, the number of elements used for the boundary discretization, the values of *eps*, and Mach number. The output data are: the numerical and the exact nodal values of velocity components and of the local pressure coefficient. Graphical representations of these values are also performed.

We can choose different values for the boundary elements number *N* and for the truncation parameter *eps*. For making the comparison, we consider first 30 nodes, then 45 nodes, for the boundary discretization, and $\mathit{eps}={10}^{-2}$.

*Ox*axis are represented. In Figure 2 a comparison between the numerical values of the component along

*Oy*axis and the exact ones is made. For the nodal values of the local pressure coefficient, the comparison is made in Figure 3.

As we can see from the three graphics, we get a good accuracy for the numerical solution.

*F*. If the boundary is $z=x+iy$, $x=acost$, $y=bsint$, at zero incidence angle,

*F*is given by

We consider in this paper an elliptical obstacle with $a=2$ and $b=1$.

As in the case of a circular obstacle, we can see a great accuracy between the numerical solution and the exact one, even if using only 12 cubic boundary elements for the boundary discretization.

The comparisons have shown that the numerical values of the nodal components of the velocity and of the local pressure coefficient and the exact ones are in good agreement even for a small number of nodes used for the boundary discretization. The analytical checking validates the exposed method and also the computer code.

The effectiveness of the boundary element method is clearly dependent on the implementation of efficient and accurate integration procedures to evaluate boundary integrals of the singular kernels. The herein paper points out that the accuracy of the numerical solution is good in the case of using cubic boundary elements for the boundary discretization and the truncation method for singular integrals evaluation. Moreover, the truncation method is a method very easy to apply and to implement into a computer code.

Better results can be obtained when using more nodes for the boundary discretization, or a smaller value for *eps* parameter, but the computational effort is bigger when more nodes are used, and so, for obtaining a good ration accuracy/computational effort, we have to choose a certain range of values for the number of nodes.

Numerical integration is always a much more stable and precise process than numerical differentiation and, if we formulate integral equivalent representations using primary functions when applying boundary element method, no differentiation of numerical quantities is needed, which is the fact that influences the accuracy of the numerical solution.

All this recommend the boundary element method, with boundary formulation which implies primary variables, as an efficient numerical technique to solve boundary value problems.

## Declarations

### Acknowledgements

Dedicated to Professor Hari M Srivastava.

The author thanks the reviewers for their valuable suggestions and useful comments, and thus for their help in the improvement of the original manuscript.

## Authors’ Affiliations

## References

- Banarjee PK, Mukherjee S (Eds):
*Developments in Boundary Element: Methods-3*. Elsevier, Barking; 1984.Google Scholar - Banarjee PK, Watson JO (Eds):
*Developments in Boundary Element: Methods-4*. Elsevier, Barking; 1986.Google Scholar - Bonnet M:
*Boundary Integral Equation Methods for Solids and Fluids*. Wiley, New York; 1995.Google Scholar - Brebbia CA, Telles JCF, Wobel LC:
*Boundary Element Theory and Application in Engineering*. Springer, Berlin; 1984.Google Scholar - Brebbia CA, Walker S:
*Boundary Element Techniques in Engineering*. Butterworth, London; 1980.Google Scholar - Ferziger JH, Peric M:
*Computational Methods for Fluid Dynamics*. 2nd edition. Springer, Berlin; 1999.View ArticleGoogle Scholar - Carabineanu A: A boundary element approach to the 2D potential flow problem around airfoils with cusped trailing edge.
*Comput. Methods Appl. Mech. Eng.*1996, 129: 213-219. 10.1016/0045-7825(95)00921-3MathSciNetView ArticleGoogle Scholar - Dragoş L, Dinu A: Application of the boundary element method to the thin airfoil theory.
*AIAA J.*1990, 28: 1822. 10.2514/3.10480View ArticleGoogle Scholar - Dragoş L, Dinu A: A direct boundary integral method for the two-dimensional lifting flow.
*Arch. Mech.*1995, 47: 813.Google Scholar - Katz J, Plotkin A:
*Low Speed Aerodynamics*. Cambridge University Press, Cambridge; 2001.View ArticleGoogle Scholar - Dragoş L:
*Mathematical Methods in Aerodinamics*. Romanian Academy Publishing, Bucureşti; 2000:125-168. chap. 4Google Scholar - Grecu L: A solution of the boundary integral equation of the theory of infinite span airfoil in subsonic flow with linear boundary elements.
*Ann. Univ. Buchar., Math. Ser.*2003, LII(2):181-188.MathSciNetGoogle Scholar - Grecu L, Demian G, Demian M: Different kinds of boundary elements for solving the problem of the compressible fluid flow around bodies - a comparison study. Lecture Notes in Engineering and Computer Science II.
*Proc. of the World Congress on Engineering*2008, 972-977.Google Scholar - Antia HM:
*Numerical Methods for Scientists and Engineers*. Birkhäuser, Basel; 2002:175-280. chap. 6Google Scholar - Lifanov IK:
*Singular Integral Equations and Discrete Vortices*. VSP, Utrecht; 1996.Google Scholar - Vladimirescu I, Grecu L: Weakening the singularities when applying the BEM for 2D compressible fluid flow. Lecture Notes in Engineering and Computer Science.
*Proc. of the International Multiconference of Engineers and Computer Scientists*2010, 2224-2229.Google Scholar - Dragoş L:
*Fluid Mechanics I, Part II: Ideal Incompressible Fluid*. Romanian Academy Publishing, Bucureşti; 1999:107-152. chap. 5Google Scholar

## Copyright

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.