- Research article
- Open Access

# Efficient and accurate numerical quadrature for immersed boundary methods

- László Kudela
^{1}Email author, - Nils Zander
^{1}, - Tino Bog
^{1}, - Stefan Kollmannsberger
^{1}and - Ernst Rank
^{1}

**2**:10

https://doi.org/10.1186/s40323-015-0031-y

© Kudela et al. 2015

**Received:**11 February 2015**Accepted:**23 May 2015**Published:**18 June 2015

## Abstract

One question in the context of immersed boundary or fictitious domain methods is how to compute discontinuous integrands in cut elements accurately. A frequently used method is to apply a composed Gaussian quadrature based on a spacetree subdivision. Although this approach works robustly on any geometry, the resulting integration mesh yields a low order representation of the boundary. If high order shape functions are employed to approximate the solution, this lack of geometric approximation power prevents exponential convergence in the asymptotic range. In this paper we present an algorithmic subdivision approach that aims to be as robust as the spacetree decomposition even for close-to-degenerate cases—but remains geometrically accurate at the same time. Based on 2D numerical examples, we will show that optimal convergence rates can be obtained with a nearly optimal number of integration points.

## Keywords

- Immersed boundary methods
- Finite Cell Method
- Numerical quadrature

## Background

One of the essential steps of performing a finite element analysis is the discretisation of the geometric domain into an analysis-suitable mesh. In case of complex geometries this process may become a severe bottleneck in the complete analysis pipeline. Studies show that the time required for creating an analysis-suitable geometry and its computational mesh accounts for about 80% of the overall analysis time [1].

In recent years, efforts to fill the gap between geometry and simulation brought forth many promising approaches, most of them related to the isogeometric analysis [1]. The idea of IGA is to use exactly the same shape functions for approximating the solution that are used for the geometry description. This way, the calculation can be performed on the geometric model directly, without any explicit mesh generation.

Other approaches—meshless methods, for example—aim to approximate the solution entirely in terms of nodal values [2]. Further approaches to avoid expensive mesh generation of complex geometries include the immersed boundary and fictitious domain methods [3, 4]. These techniques extend domains of complex shapes to a larger embedding domain, the geometry of which is simpler and can thus be meshed easily with a structured grid.

The Finite Cell Method (FCM) [5, 6] combines the basic idea of immersed boundary methods with higher order finite elements (p-FEM) [7, 8]. The physical domain is extended by the fictitious domain, such that their union results in a simple geometry that can be meshed easily. The influence of the fictitious domain is marginalized by scaling down its material parameters by a small factor \(\alpha\). Due to this scaling factor the fictitious material is numerically extremely soft. Therefore, the strain energy of the solution in the original domain of interest and in the extended domain remains the same. For smooth problems, the method shows the same exponential convergence characteristics in the energy norm known from p-FEM [9], and allows accurate numerical computations without having to mesh complex geometries.

The FCM has been proven to work well in a number of contexts, such as shell analysis [10], large deformation analysis [11], voxel-based analysis on geometric models from CT-scans [12, 13] and for wave propagation problems [14]. The biggest advantage of FCM lies in high convergence rates with almost no meshing costs. An overview of the method together with a summary of recent developments can be found in [15].

One major difficulty of the FCM (as well as other fictitious domain methods) is posed by the introduction of a discontinuity in the cells that are intersected by the geometric boundary of the physical domain. Throughout this paper, these cells are referred to as cut cells. A direct Gaussian quadrature is inappropriate for discontinuous integrands, therefore the cut cells require special integration formulae (see, for example, [16]), or the application of composed integration schemes. The standard approach in the context of FCM is to use composed Gaussian quadrature in combination with a recursive spacetree-based refinement.

Although the spacetree-based approach is easy to implement and works robustly on any geometry, it has some disadvantages. Because the spacetree decomposition yields a low order approximation of the boundary, exponential convergence can only be achieved up to the point where the error of integration starts to dominate over the discretization error of the field variables. In order to reduce the integration error, more levels of spacetree subdivision have to be introduced. However, the number of integration points increases exponentially with every new level, thus making the analysis computationally expensive. Although this extra effort is bearable in linear computations, it may become prohibitively large if the amount of work per quadrature point is higher—as in nonlinear calculations, for example. These drawbacks indicate the need of another approach toward the quadrature point distribution to ensure a better geometric description of the boundary.

Finding the right quadrature rules for integrating through discontinuities is not an unknown question in the finite element community. In the context of the extended finite element methods (XFEM) [17], numerous approaches have been proposed to deal with this problem. One possibility is to fix the location of the quadrature points *a priori* and compute the relevant weights by solving the moment-fitting equations, as described in [18] or [19].

Another possibility in the context of XFEM is based on the idea of replacing the discontinuous integrand by an equivalent polynomial that is defined such that the evaluated stiffness matrix is exact. The original function and its polynomial substitute are equivalent in the integral sense, which is why the integral can be computed by standard quadrature rules without having to perform any subdivision. Examples of the method of equivalent polynomials can be found in [20] and [21].

Another technique to resolve the discontinuous integrand is to decompose the cut cells into Lagrangian elements in such a way that the edges of the resulting subcells align with the interface [22]. The use of triangular NURBS-Enhanced Finite Elements [23] in different XFEM settings has also been investigated in [24], based on an approach that is extended in this contribution.

The possibility of using the exact geometrical description of the boundary directly for the cut cell integration in the context of IGA and FCM is still an open question. Therefore, it shall be addressed in this paper—according to the following structure: “Theoretical background” briefly introduces the main concept of the Finite Cell Method and addresses the challenge of integration in the context of cut cells. “High order subcell integration” introduces a novel algorithmic approach aiming to overcome the integration problems in a robust, yet accurate way. In “Decomposition examples”, some 2D example problems serve to demonstrate the proposed algorithm. The convergence properties of the approach in the context of FCM are discussed in “Finite Cell Method examples” along with an example of a wave propagation problem on a complex domain. The conclusions and an outlook on possibilities of further development are presented in “Conclusion and outlook”.

## Theoretical background

In the following, the essential ideas of the Finite Cell Method for steady linear elastic problems are discussed. For further details, see [5, 6, 11].

### The essential ideas of the Finite Cell Method

*x*,

*y*) [25, 29, 30].

### The challenge of integration

The advantage of the spacetree-based integration lies in its simplicity. As it merely relies on point membership classification, it is easy to implement and works robustly on any geometry. The drawback of this approach is that the number of integration points increases exponentially with every new level of spacetree decomposition, rendering the analysis computationally expensive. Moreover, the spacetree decomposition yields a low order approximation of the boundary and leaves the higher order geometric information (if available) unexploited.

Investigations in the field of XFEM show that it is beneficial to subdivide elements that are cut by the interface into a set of curved geometric entities. In [22], the cut elements are approximated by a set of Lagrangian elements with curved sides. The problem has also been addressed in [24], where an algorithmic approach to decompose cut elements into a set of curved triangles was presented. These triangles, based on NURBS-Enhanced Finite Elements recover the boundary in an exact sense.

The next section introduces an algorithm aiming to combine the robustness of the spacetree approach with the previously mentioned idea of exact geometry representation. The resulting set of triangles and quadrilaterals uses the blending function interpolation [33] in order to yield an exact representation of the boundary.

## High order subcell integration

The simplicity of the spacetree decomposition results in robustness. From an algorithmic point of view, it is irrelevant how the boundary cuts through the cell: the resulting integration subcells are always created in the same way. In other words, the spacetree decomposition is completely insensitive to the topological configuration that the cutting boundary creates in a cut cell. In order to be robust, the enhanced decomposition method has to inherit this topological insensitivity. This means that it is beneficial to define a generic way of decomposition that can be applied to any kind of cut configuration, regardless of what kind of topology a cutting boundary creates inside one cell.

The standard method to identify in what way rectangular domains are cut is based on the method of marching squares, known from computer graphics [34]. Although this method works well to determine contours of scalar fields, it is a method designed for boundary recovery instead of domain decomposition. Moreover, instead of one generic procedure, it requires different treatment for different intersection patterns. To maintain robustness, the algorithm in this paper follows a different approach, that does not require the identification of such intersection cases.

### Triangulated cut cell approach

Our algorithm follows the idea described in [22]. In this work, the authors state that a cut cell can always be decomposed into a set of quadrilaterals and triangles if the cell is cut in two triangles by a diagonal line.

### Mapping of curved regions

### Special cases

There are cases in which the previously outlined method is not able to provide an exact decomposition of the cut cell. The following points focus on these special cases and on the ways they can be treated.

#### Degenerate cuts

#### Kinks and corners

In many cases, the boundary of the domain is not composed of one continous curve, but is a set of connected curve segments. These points usually represent discontinous jumps in the curve derivatives and have to be taken into account by the decomposition algorithm in order to maintain the precision of the integration.

#### Piecewise definition of the boundary

As Eq. 9 suggests, the nature of the parametric description of the bounding curves has a strong influence on the mapping \(\tilde{\varvec{Q}}(\tilde{\xi },\tilde{\eta })\) and thus on the Jacobian determinant of the integration cell. If any of the bounding curves of the integration cell is defined piecewise, the Jacobian determinant in the integrand of the element stiffness matrix (Eq. 7) becomes non-smooth as well. Because the Gaussian quadrature is able to cope with polynomials but not with functions that are defined piecewise, this has to be taken into account by the decomposition algorithm. Having piecewise defined curves as boundary description is a very frequent case, as many geometries in engineering computations use B-Splines or NURBS. The parameter space of these curves is divided into a set of subintervals and the parametric equation of the curve changes at the breakpoint between neighboring subintervals. In the context of B-Splines or NURBS, these breakpoints are often referred to as knots.

Because the definition of \(e_b(\eta )\) changes at \(\eta =-0.5\), the Jacobian determinant of the blended mapping changes too. Thus, the integration cell has to be further subdivided along the \(\eta =-0.5\) isoparametric line. Integration then takes place on these subcells separately, and the complete integral is computed by the sum of the integrals on the subcells. In general, the triangulated subdivision algorithm is followed by an additional decomposition: all cells that are bounded by piecewise defined curves are further subdivided along the breakpoints of the curves.

As it will be pointed out later, this breakpoint-wise subdivision is a necessary step in order to be able to compute highly accurate integrals of subcells bounded by piecewise curves.

## Decomposition examples

This section demonstrates the proposed decomposition algorithm on a few examples.

### Moving circle in rectangular domain

### Integration test

The precision of the entire subdivision algorithm is assessed on a geometric setup that contains all the special cases of “Special cases”.

*h*is the height of \(\Omega _{fic}\). As a result, the gradient of the field value \(\frac{\partial {\Phi }}{\partial {x}}\) is equal to one throughout the whole domain. The boundaries denoted by \(\Gamma _N\) are defined as free Neumann boundaries. Because the solution is linear, the polynomial order of the shape functions is chosen to be \(p=1\).

*w*denotes the width of the domain (Figure 12). Figure 15 shows the error in the strain energy depending on the number of quadrature points distributed per parametric direction in each cell. If the breakpoints are not taken into account as explained in “Piecewise definition of the boundary”, the error remains higher regardless of how many integration points are distributed in the cells. However, if the integration cells are subdivided along the breakpoints of the bounding curves, the error in the energy norm converges to machine precision.

Here, it is worth noting that the total number of integration points is influenced by the parametric definition of the curves to a great extent. This means that if there are many breakpoints present in the boundary curves, there will also be a lot of breakpoint-wise subdivision performed. Therefore a high number of quadrature points is generated which results in high overall runtime.

## Finite Cell Method examples

This section demonstrates the capabilities of the proposed integration method in the context of FCM. First, the accuracy and the performance is compared to the quadtree based approach by solving a linear elastic problem. This is followed by the simulation of a compression wave propagating through a complex domain.

### Perforated plate

Both the quadtree and the blended integration show exponential convergence, similar to p-FEM. However, the curve representing the quadtree integration levels off at an error of approximately \(10^{-2}[-]\). At this point the integration error dominates over the discretization error which renders a further increase of the polynomial degree pointless. The integration error can be reduced by adding more levels of refinement to the spacetree subdivision—however, the low approximation of the integration does not allow for exponential convergence in the asymptotic range. In comparison, the blended integration that uses the parametric description of the boundaries shows exponential convergence also in the asymptotic sense.

The number of quadrature points has a major influence on the overall computational cost of a numerical simulation. Therefore, the relationship between the number of integration points and the relative error in strain energy is an important aspect when it comes to assessing the performance of the different approaches. This relationship is depicted in Figure 6. Apart from the better convergence characteristics, the other advantage of the blended subcell integration lies in the total number of Gauss points distributed on the domain. For the same error in the strain energy, the blended integration cells require approximately one order of magnitude less Gauss points than a quadtree integration mesh with a depth of \(k=4\). If the depth of the quadtree is increased to \(k=5\), the point at which the convergence curve levels off is slightly shifted to a lower value. However, this gain in precision comes with the cost of high computational overhead. As an example, consider a relative error of \(10^{-4}\) in the energy norm, where the \(k=5\) quadtree integration mesh needs approximately 40,000 quadrature points. In contrast, the blended mesh needs approximately 2,500 integration points to reach the same error.

*k*(refer to “Integration test”). Secondly, the high number of quadrature points leads to an excessive number of matrix-matrix product evaluations in Eq. 8.

Both the blended and quadtree methods show better convergence characteristics in comparison to the standard h-FEM on the basis of the number of degrees of freedom (Figure 19a). Comparing the number of integration points of the different approaches reveals that up to approximately 1,000 integration points the error in the strain energy of the h-FEM solution is smaller than the error of the blended integration. This point is located where the curve of the h-FEM error intersects the curve of the blended integration error on Figure 19b. For the quadtree methods, this intersection with the h-FEM error curve lies in regions of higher number of Gauss points.

Here, it should be noted that although the h-FEM is at least as precise as the blended subcell integration up to this intersection point, it requires considerably more degrees of freedom than the FCM approach.

### Compression wave on the violin-shaped domain

## Conclusion and outlook

This paper presented a novel approach to overcome the integration challenges in the context of the Finite Cell Method. The standard integration in FCM is performed by a spacetree based composed Gaussian quadrature, which works robustly on any geometry, but lacks the geometric approximation power that balances well with the high order shape functions of p-FEM.

The presented algorithm decomposes the cut finite cells into a set of curved quadrilaterals and triangles. Knowing the parametric description of the boundary, these triangles and quadrilaterals use blending functions to map the quadrature points.

The algorithm aims to be generic in such a way that different topological cutting situations can be handled in a similar manner. Thus, similarly to the quadtree decomposition, the method is able to cope with complex geometries in a robust way. The error in integration with blended integration cells was investigated on a complex geometry by setting up a “pseudo-FCM” problem that has an exact solution but is numerically computed on the blended integration mesh. It was found that in case of curves that follow a piecewise parametric definition (e.g. B-Splines), the integration can be highly accurate only if the blended cells are subdivided along the breakpoint locations of the bounding curves.

The blended subcell integration shows better convergence characteristics in comparison to the classical spacetree decomposition with at least one order of magnitude less quadrature points for the same error. To demonstrate that the algorithm is capable of working with complex geometries, a cover plate model of a violin was partitioned and the propagation of a compression wave was simulated on its domain. Thanks to its robustness and high accuracy, the algorithm is a good fit into the design-through-analysis pipeline.

Further research should address an extension of the algorithm to 3D cases. As the blending function concept extends to 3D naturally, the prior question would be how to find a generic decomposition-approach that is able to handle different cutting situations in a robust manner.

## Declarations

### Authors' contributions

All authors have prepared the manuscript. All authors read and approved the final manuscript.

### Compliance with ethical guidelines

**Competing interests** The authors declare that they have no competing interests.

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- Cottrell JA, Hughes TJR, Bazilevs Y (2009) Isogeometric analysis: towards integration of CAD and FEM. Wiley, New YorkView ArticleGoogle Scholar
- Nguyen N-Q, Ladd AJC (2008) Meshless methods: a review and computer implementation aspects 79:763–813. doi:10.1016/j.matcom.2008.01.003 MATHGoogle Scholar
- Löhner R, Cebral JR, Camelli FF, Baum JD, Mestreau EL, Soto OA (2007) Adaptive embedded/immersed unstructured grid techniques. Arch Comput Methods Eng 14:279–301MATHMathSciNetView ArticleGoogle Scholar
- Peskin C (2002) The immersed boundary method. Acta Numerica 11:1–39MathSciNetView ArticleGoogle Scholar
- Düster A, Parvizian J, Yang Z, Rank E (2008) The finite cell method for three-dimensional problems of solid mechanics. Comput Methods Appl Mech Eng 197:3768–3782MATHView ArticleGoogle Scholar
- Parvizian J, Düster A, Rank E (2007) Finite cell method—h- and p-extension for embedded domain problems in solid mechanics. Comput Mech 41:121–133MATHMathSciNetView ArticleGoogle Scholar
- Szabó BA, Babuška I (1991) Finite element a nalysis. Wiley, New YorkMATHGoogle Scholar
- Szabó BA., Düster A., Rank E (2004) The p-version of the Finite Element Method. In: Stein E, de Borst R, Hughes TJR (eds) Encyclopedia of computational mechanics, vol 1, Chap 5. Wiley, Chichester, pp 119–139Google Scholar
- Dauge M, Düster A, Rank E (2013) Theoretical and numerical investigation of the finite cell method. Technical Report hal-00850602, CCSD. http://hal.archives-ouvertes.fr/hal-00850602
- Rank E, Ruess M, Kollmannsberger S, Schillinger D, Düster A (2012) Geometric modeling, isogeometric analysis and the Finite Cell Method. Comput Methods Appl Mech Eng 249–252:104–115. doi:10.1016/j.cma.2012.05.022 View ArticleGoogle Scholar
- Schillinger D, Ruess M, Zander N, Bazilevs Y, Düster A, Rank E (2012) Small and large deformation analysis with the p- and B-spline versions of the finite cell method. Comput Mech 50:445–478. doi:10.1007/s00466-012-0684-z MATHMathSciNetView ArticleGoogle Scholar
- Ruess M, Tal D, Trabelsi N, Yosibash Z, Rank E (2012) The finite cell method for bone simulations: verification and validation. Biomech Model Mechanobiol 11:425–437View ArticleGoogle Scholar
- Schillinger D, Düster A, Rank E (2012) The \(hp\)-\(d\)-adaptive finite cell method for geometrically nonlinear problems of solid mechanics. Int J Numer Methods Eng 89:1171–1202. doi:10.1002/nme.3289 MATHView ArticleGoogle Scholar
- Joulaian M, Duczek S, Gabbert U, Düster A (2014) Finite and spectral cell method for wave propagation in heterogeneous materials. Comput Mech 54(3):661–675MATHMathSciNetView ArticleGoogle Scholar
- Schillinger D, Ruess M (2014) The finite cell method: a review in the context of higher-order structural analysis of cad and image-based geometric models. Arch Comput Methods Eng 1–65. doi:10.1007/s11831-014-9115-y
- Müller B, Kummer F, Oberlack M (2013) Highly accurate surface and volume integration on implicit domains by means of moment-fitting. Int J Numer Methods Eng 96:512–528. doi:10.1002/nme.4569 View ArticleGoogle Scholar
- Belytschko T, Gracie R, Ventura G (2009) A review of extended/generalized finite element methods for material modeling. Modell Simulat Mater Sci Eng 17:043001View ArticleGoogle Scholar
- Mousavi SE, Sukumar N (2011) Numerical integration of polynomials and discontinuous functions on irregular convex polygons and polyhedrons. Comput Mech 47:535–554MATHMathSciNetView ArticleGoogle Scholar
- Sudhakar Y, Wall WA (2013) Quadrature schemes for arbitrary convex/concave volumes and integration of weak form in enriched partition of unity methods. Comput Methods Appl Mech Eng 158:39–54MathSciNetView ArticleGoogle Scholar
- Ventura G (2006) On the elimination of quadrature subcells for discontinuous functions in the extended finite-element method. Int J Numer Methods Eng 66:761–795MATHMathSciNetView ArticleGoogle Scholar
- Ventura G, Benvenuti E (2014) Equivalent polynomials for quadrature in heaviside function enriched elements. Int J Numer Methods Eng. doi:10.1002/nme.4679. Accessed 2014-08-03
- Cheng KW, Fries T-P (2009) Higher-order XFEM for curved strong and weak discontinuities. Int J Numer Methods Eng 82:564–590MathSciNetGoogle Scholar
- Sevilla R, Fernández-Méndez S, Huerta A (2008) NURBS-enhanced finite element method (NEFEM). Int J Numer Methods Eng 76(1):56–83. doi:10.1002/nme.2311. Accessed 2014-02-27
- Legrain G (2013) A nurbs enhanced extended finite element approach for unfitted cad analysis. Comput Mech 52(4):913–929MATHMathSciNetView ArticleGoogle Scholar
- Hughes TJR (2000) The Finite Element Method: linear static and dynamic finite element analysis. Dover Publications, Mineola, New YorkGoogle Scholar
- Babuška I (1973) The finite element method with penalty. Math Comput 27:221–228MATHView ArticleGoogle Scholar
- Fernández-Méndez S, Huerta A (2004) Imposing essential boundary conditions in mesh-free methods. Comput Methods Appl Mech Eng 193(12–14):1257–1275MATHView ArticleGoogle Scholar
- Ruess M, Schillinger D, Bazilevs Y, Varduhn V, Rank E (2013) Weakly enforced essential boundary conditions for NURBS-embedded and trimmed NURBS geometries on the basis of the finite cell method. Int J Numer Methods Eng 95(10):811–846. doi:10.1002/nme.4522 MathSciNetView ArticleGoogle Scholar
- Bathe KJ (2002) Finite-Elemente-Methoden. Springer, BerlinView ArticleGoogle Scholar
- Zienkiewicz OC, Taylor RL (2005) The Finite Element Method—its basis and fundamentals, vol 1, 6th edn. Butterworth-Heinemann, OxfordGoogle Scholar
- Davis PJ, Rabinowitz P (1975) Methods of Numerical Integration by Philip J. Davis and Philip Rabinowitz. Academic Press, New YorkGoogle Scholar
- Abedian A, Parvizian J, Düster A, Khademyzadeh H, Rank E (2013) Performance of different integration schemes in facing discontinuities in the finite cell method. Int J Comput Methods 10(3):1350002/1–24. doi:10.1142/S0219876213500023
- Gordon WJ, Hall CA (1973) Transfinite element methods: blending function interpolation over arbitrary curved element domains. Numerische Mathematik 21:109–129MATHMathSciNetView ArticleGoogle Scholar
- Lorensen WE, Cline HE (1987) Marching cubes: a high resolution 3d surface construction algorithm. Comput Graph 21(4):163–169View ArticleGoogle Scholar
- Kudela L (2013) Highly accurate subcell integration in the context of the finite cell method. Master’s thesis, Technische Universität MünchenGoogle Scholar