원시데이터 수집 시스템
선정목록으로

Double-grid quadrature with interpolation-projection (DoGIP) as a novel discretisation approach: An application to FEM on simplexes

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(22) POM(폴리아세탈)

기본 정보

저자
  1. Jaroslav Vondřejc — Technische Universität Braunschweig, Institute of Scientific Computing, Mühlenpfordtstrasse 23, 38106 Braunschweig, Germany
DOI
10.1016/j.camwa.2019.05.021
저널
Computers & Mathematics with Applications
발행년도
2019
발행기관
Elsevier BV
피인용수
2
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.camwa.2019.05.021
토픽
Composite Material Mechanics
OpenAlex ID
W2765247678

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (22) POM(폴리아세탈)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
finite element method (FEM), numerical homogenisation, multiscale problems, material coefficients, discontinuous
판단 근거
이 논문은 유한요소법(FEM)의 새로운 수치 해석 기법인 DoGIP를 다루고 있으며, 특히 불연속적인 재료 계수(material coefficients)를 가진 복잡한 구조의 수치 해석 및 균질화(homogenisation)에 강점이 있습니다.
R&D 활용 포인트
엔지니어링 플라스틱이나 복합소재(컴파운드)의 미세 구조 분석, 다중 스케일(multiscale) 물성 예측 및 복잡한 형상의 구조 해석 시뮬레이션 효율화에 활용 가능합니다.
평가 입력
본문 83,077자 중 30,032자 발췌

초록

초록이 없습니다.

본문 83,077자

본문 펼치기
# Double-grid quadrature with interpolation-projection (DoGIP) as a novel discretisation approach: An application to FEM on simplexes #### Jaroslav Vondˇrejc 1 1Technische Universit¨at Braunschweig, Institute of Scientific Computing, M¨uhlenpfordtstrasse 23, 38106 Braunschweig, Germany, j.vondrejc@tu-bs.de, vondrejc@gmail.com March 2, 2022 Abstract This paper is focused on the double-grid integration with interpolation-projection (DoGIP), which is a novel matrix-free discretisation method of variational formulations introduced for Fourier–Galerkin approximation. Here, it is described as a more general approach with an application to the finite element method (FEM) on simplexes. The approach is based on treating the trial and a test function in variational formulation together, which leads to the decomposition of a linear system into interpolation and (block) diagonal matrices. It usually leads to reduced memory demands, especially for higher-order basis functions, but with higher computational requirements. The numerical examples are studied here for two variational formulations: weighted projection and scalar elliptic problem modelling, e.g. diffusion or stationary heat transfer. This paper also opens a room for further investigation, which is discussed in the conclusion. Keywords: finite element method; discretisation; interpolation; projection; computational effectiveness ### 1 Introduction A discretisation of non-linear partial differential equations, after linearisation, leads to the solution of linear systems. Often, they require excessive memory, especially when the system matrices are fully populated and no special structure is incorporated. This paper focuses on an alternative matrix-decomposition approach that is based on a double-grid integration with interpolation-projection operator (DoGIP). This method, already used for numerical homogenisation with the Fourier–Galerkin method [1, 2, 3], belongs to the matrix-free approaches with possible applicability to the discretisation of variational problems with various approximation spaces. Here, the focus is aimed at the finite element method (FEM) on simplexes (e.g. triangles or tetrahedra). 1 Introduction of the DoGIP idea As a model problem, an abstract variational setting discretised with Galerkin approximation is assumed: find trial function _u_ from some finite dimensional vector space _V_ such that _a_ ( _u, v_ ) = _F_ ( _v_ ) _∀v_ _∈V._ This problem, which naturally arises in many engineering applications, is defined via a positive definite continuous bilinear form _a_ : _V × V_ _→_ R and linear functional _F_ : _V_ _→_ R representing a source term. The solution, which is expressed as a linear combination of basis functions _u_ ( _x_ ) = <sup>�</sup> <sup>_V_</sup> _i_ =1 <sup>u</sup> <sup>_iφi_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>with</sup> <sup>_V_</sup> <sup>=</sup> <sup>dim</sup> <sup>_V_</sup> <sup>,</sup> <sup>is</sup> <sup>determined</sup> <sup>by</sup> <sup>the</sup> <sup>vector</sup> <sup>of</sup> basis functions _u_ ( _x_ ) = <sup>�</sup> <sup>_V_</sup> _i_ =1 <sup>u</sup> <sup>_iφi_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>with</sup> <sup>_V_</sup> <sup>=</sup> <sup>dim</sup> <sup>_V_</sup> <sup>,</sup> <sup>is</sup> <sup>determined</sup> <sup>by</sup> <sup>the</sup> <sup>vector</sup> <sup>of</sup> coefficients u = (u _i_ ) <sup>_V_</sup> _i_ =1 <sup>that</sup> <sup>can</sup> <sup>be</sup> <sup>calculated</sup> <sup>from</sup> <sup>a</sup> <sup>corresponding</sup> <sup>linear</sup> <sup>system</sup> <sup>_V_</sup> _i_ =1 <sup>that</sup> <sup>can</sup> <sup>be</sup> <sup>calculated</sup> <sup>from</sup> <sup>a</sup> <sup>corresponding</sup> <sup>linear</sup> <sup>system</sup> - - _V_ _F_ ( _φi_ ) _i_ =1 <sup>_∈_</sup> <sup>R</sup> <sup>_V ._</sup> Au = b _,_ where A = - - _V_ _a_ ( _φj, φi_ ) _i,j_ =1 <sup>_∈_</sup> <sup>R</sup> <sup>_V ×V_</sup> <sup>and</sup> <sup>b</sup> <sup>=</sup> The properties of the matrix A are fundamental for the decision about a linear solver and consequently for computational and memory requirements. The FEM builds on the basis functions with a local support, which results in a sparse matrix. The idea in the DoGIP approach, first used for the spectral Fourier–Galerkin method [2, 1], is based on expressing the trial and the test function as a product on a double-grid space, i.e. _uv_ _∈W_ or _∇u⊙∇v_ in the case of the weighted projection and the scalar elliptic equation with differential operator. Particularly, the double-grid space _W_ is composed of the polynomials with the doubled order. The DoGIP approach allows to decompose the linear system A = C <sup>_∗_</sup> A <sup>DoGIP</sup> B _,_ where A <sup>DoGIP</sup> _∈_ R <sup>_W_</sup> <sup>_×W_</sup> _,_ B _,_ C _∈_ R <sup>_W_</sup> <sup>_×V_</sup> with _W_ _> V._ Here, the diagonal (or block-diagonal) matrix A <sup>DoGIP</sup> expresses the weights obtained by integration of material-like coefficients with respect to a basis of the double-grid space. Despite the bigger double-grid size _W_ _>_ _V_, the memory requirements to store A <sup>DoGIP</sup> are typically reduced compared to the original matrix A . Usually it is impossible to fully avoid assembling matrix A because of the high number of integration points for general material coefficients, whose evaluation can be also computationally demanding. Matrices B _,_ C, that can equal one another, represent interpolation-projection operators from the original to the double-grid space and depend on the approximation spaces only. Those matrices are not stored because the required matrix-vector multiplication can be substituted with an efficient numerical routine. Particularly, the interpolation-projection matrix in the Fourier–Galerkin method is evaluated very efficiently with the fast Fourier transform using _O_ ( _N_ log _N_ ) operations [2, 3]. In case of FEM, only the interpolation on the reference element is needed. Alternative approaches. There are also many other matrix-free evaluations of discretised differential operators [4, 5, 6, 7, 8], which often incorporate orthogonal basis functions within the spectral methods. Instead of the assembling of the system matrix A, these approaches typically rely on the evaluation of integrals on the fly by fast sum factorisation techniques over numerical integration points. It can be demonstrated for the generalised Laplacian with positive definite material coefficients _A_, i.e. _a_ ( _u, v_ ) = <sup>�</sup> _T_ _T_ <sup>_A_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∇u_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_∇v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>expressed</sup> <sup>over</sup> <sup>elements</sup> <sup>_T_</sup> <sup>of</sup> <sup>a</sup> <sup>FEM</sup> <sup>mesh.</sup> _a_ ( _u, v_ ) = <sup>�</sup> _T_ _T_ <sup>_A_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∇u_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_∇v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>expressed</sup> <sup>over</sup> <sup>elements</sup> <sup>_T_</sup> <sup>of</sup> <sup>a</sup> <sup>FEM</sup> <sup>mesh.</sup> This formulation invokes the element-wise evaluation of the system matrix-vector product _T_ 2 _T_ <sup>P</sup> _T_ <sup>_∗_</sup> Au = <sup>�</sup> Au = <sup>�</sup> _T_ <sup>P</sup> _T_ <sup>_∗_</sup> <sup>A</sup> <sup>_T_</sup> <sup>P</sup> <sup>_T_</sup> <sup>u</sup> <sup>, where the operator</sup> <sup>P</sup> <sup>_T_</sup> <sup>extracts the local degrees of freedom</sup> <sup>u</sup> <sup>_T_</sup> <sup>from</sup> the global vector u . Then the local matrix-vector multiplication A _T_ u _T_ is obtained sequentially by evaluating the integral over integration points _x_ _q_ with corresponding weights _wq_, i.e. _∇u_ ( _x_ _q_ ) = _JT_ <sup>_−_</sup> <sup>T(ˆ</sup> <sup>_x_</sup> <sup>_q_</sup> <sup>)</sup> _i_ _∇_ - _φ_ - _i_ (ˆ _x_ _q_ )u _T,i,_ ( A _T_ u _T_ ) _l_ = _q_ _A_ ( _x_ _q_ ) _∇u_ ( _x_ _q_ ) _· ∇φl_ ( _x_ _q_ ) _wq|_ det _JT_ ( _x_ _q_ ) _|,_ where the quantities with the hat � _·_ are expressed on the reference element. The matrixvector product is thus composed of the interpolation of the approximate solution over quadrature points, evaluating Jacobians, material coefficients, integration weights, and finally the adjoint interpolation. _Discretisation._ The effectiveness of these approaches depends mainly on the choice of basis functions and of integration points. A traditional approach builds on the Lagrange basis functions, which can be efficiently combined with a special integration technique. Particularly the location of the Lagrange basis at the Gauss-Lobatto quadrature points can significantly reduce the computational cost required for the interpolation [5, 8, 9]. The spectral approaches [10, 11, 12] build on orthogonal systems of basis functions, which are generally defined on regular domains, e.g. squares or cubes. The application of the spectral methods to complex geometries [4] can utilise a mapping to a regular domain or a multipatch idea leading to the so-called spectral element method [8, 13, 14, 15] or fictitious domain methods, see [6, 16, 17] for a comparison. A general idea that can significantly reduce the computational costs incorporates the tensor product structure of the basis functions _φ_ ( _x_ ) = <sup>�</sup> _i_ <sup>_d_</sup> =1 <sup>_φ_</sup> <sup>(</sup> <sup>_xi_</sup> <sup>),</sup> <sup>which</sup> <sup>allows</sup> <sup>to</sup> <sup>apply</sup> interpolation or differentiation operators separately in each direction. Less attention has been given to the fast evaluation strategies and matrix-free approaches on simplexes (e.g. triangles and tetrahedra) because the crucial tensor product structure is more difficult to apply as it requires an additional transform from the simplex to the _d_ -dimensional cube [18, 19]. The matrix-free approaches have to be also accompanied with a suitable iterative solver [20, 21, 22]. Particularly, an effective parallel implementation is usually required [23]. _Numerical_ _quadrature._ Here, integration schemes, over which the matrix-free approaches interpolate, are discussed. Typically special quadrature can be utilised when an additional information about the integrand is provided. Particularly, the Gauss-Legendre integration with _k_ points can be used to exactly integrate a polynomial integrand of order up to 2 _k −_ 1 in 1D; the corresponding tensor product integration can be used in higher dimensions. As a general rule, a quadrature is chosen in order to keep the approximation order of the discretised variational formulations. Namely the consistency error in the first Strang’s lemma has to be controlled, which typically assumes a smooth integrand, see [24] and [25, Section 26]. The development of an integration rule on the simplexes is more complicated and has been studied in many publications, e.g. in [26, 27, 28, 29, 30, 31, 32]. The Gaussian tensor product integration rule that is degenerated to the simplex leads to the asymmetric distribution of the points with clustering of the points close to one of the vertices. Although those rules can be applicable to polynomial integrands, a general quadrature requires that (i) points are symmetrically distributed inside of the domain, (ii) integration weights are 3 all positive, and (iii) the truncation error is minimised. A general approach to compute quadrature points and weights with the required properties can be found in the recent publication [32], which also provides an improvement of the previous integration rules [28, 31]. However, an optimal quadrature with respect to the position and the number of the integration points remains an open question. Although the above discussed quadratures are exact for the polynomials up to some order, they also perform well with general smooth integrands [33, 34, 35]. However, their performance is poor for functions with singularities or discontinuities, which occur naturally when the material coefficients under the integral are heterogeneous or when a finite element intersects the boundary of the computational domain. Those problems appear in the spectral element [4, 17] or in the finite cell method [36, 37, 38] as they avoid the error-prone mesh generation of complicated domains. Therefore the adaptive integration of rough integrands is needed and can be provided by e.g. the local refinement strategy, which allow to keep the exponential convergence [36, 37, 38]. Nevertheless, the higher number of integration points is required. Applicability of the DoGIP. This paper shows that DoGIP is a promising matrixfree approach with various applications. The method benefits from the fact that only the matrix A <sup>DoGIP</sup> is stored, which can significantly reduce memory requirements especially for higher order basis functions, and that the interpolation-projection matrix B is independent of material coefficients or mesh distortion, which allows an optimisation for fast matrixvector multiplication. The method is suitable for discretisation methods with higher order polynomial approximations ( _p_ -version of FEM [6], spectral methods [11, 12], finite cell method [39], discontinuous Galerkin methods [40], etc.). Special benefits can be obtained for variational problems when the system matrix has to be solved many times such as in numerical homogenisation [41, 42], multiscale problems [43, 44, 45, 46, 47], optimisation [48], uncertainty quantification [49, 50], inverse problems [51, 52], time-dependent problems [53], or fluid dynamics [7, 54]. Outline of the paper In section 2, the methodology of the DoGIP is described for two problems: a weighted projection and a scalar elliptic problem modelling diffusion, stationary heat transfer, etc. Then in section 3, the numerical results are presented along with the discussion of the performance of the DoGIP with respect to the existing matrixfree approaches. Notation In the following text, _L_ <sup>2</sup> (Ω) denotes the space of square Lebesgue-integrable functions _f_ : Ω _→_ R, where the computational domain Ωis a bounded open set in R <sup>_d_</sup> ( _d_ = 2 or 3). The vector-valued and matrix-valued variants of _L_ <sup>2</sup> (Ω) are denoted as _L_ <sup>2</sup> (Ω; R <sup>_d_</sup> ) and _L_ <sup>2</sup> (Ω; R <sup>_d×d_</sup> ). A Sobolev space _H_ <sup>1</sup> (Ω) is a subspace of _L_ <sup>2</sup> (Ω) with gradients in _L_ <sup>2</sup> (Ω; R <sup>_d_</sup> ). Vector and matrix-valued functions are denoted in bold with lower-case _u_ and upper-case letters _A_ . The vectors and matrices storing the coefficients of the discretised vectors are depicted with boldface upright characters u _,_ A . For vectors _u_ _,_ _v_ _∈_ R <sup>_d_</sup> and matrices _A_ _,_ _B_ _∈_ R <sup>_d×d_</sup>, we define the inner product for vectors _u_ _·_ _v_ _∈_ R and matrices _A_ : _B_ _∈_ R, and the outer product of two vectors _u_ _⊗_ _v_ _∈_ 4 R <sup>_d×d_</sup> as _u_ _·_ _v_ = _d_ _i_ =1 _uivi,_ _A_ : _B_ = _d_ _i,j_ =1 _AijBij,_ _u_ _⊗_ _v_ = ( _uivj_ ) _i,j_ <sup>_d_</sup> =1 <sup>_._</sup> ### 2 DoGIP within the finite element method #### 2.1 FEM on simplexes with Lagrange basis functions The model problem is considered on an FEM mesh _M_ (Ω) composed of simplexes (e.g. triangles or tetrahedra) with standard properties (non-overlapping elements, no hanging nodes, regular shapes). Vector _N_ denotes a discretisation parameter. The FEM spaces involve polynomials of order _k_ (denoting the highest possible order) _Pk_ = _{p_ : R <sup>_d_</sup> _→_ R _| p_ ( _x_ ) = _α_ _∈_ N <sup>_d_</sup> 0 - _a_ _α_ _x_ <sup>_α_</sup> 1 <sup>1</sup> <sup>_d_</sup> 0 <sup>_,∥_</sup> <sup>_α_</sup> <sup>_∥_</sup> <sup>1</sup> <sup>_≤k_</sup> <sup>_α_</sup> 1 <sup>1</sup> <sup>_xα_</sup> 2 <sup>2</sup> <sup>_. . . xα_</sup> _d_ <sup>_d, a_</sup> <sup>_α_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_}_</sup> on each element. Depending on the trial and test spaces (e.g. _H_ <sup>1</sup> (Ω), _L_ <sup>2</sup> (Ω), etc.), the FEM spaces differ in the continuity requirement on the facets <sup>1</sup> of the elements. Here, we take into account continuous and discontinuous finite element spaces _C_ _N_ _,k_ = _{v_ : Ω _→_ R _| v|T_ _∈Pk_ _∀T_ _∈M_ (Ω) and _v_ is continuous _},_ _D_ _N_ _,k_ = _{v_ : Ω _→_ R _| v|T_ _∈Pk_ _∀T_ _∈M_ (Ω) _}._ Each approximation function _v_ _∈C_ _N_ _,k_ can be expressed as a linear combination _v_ ( _x_ ) = dim _C_ _N_ _,k_ _i_ =1 v _iφ_ <sup>_i_</sup> ( _x_ ) of the Lagrange basis functions (shape functions) _φ_ <sup>_i_</sup> : Ω _→_ R. The coefficients vi, as the degrees of freedom, are the function values at the nodal points _x_ <sup>_i_</sup> _C_ _N_ _,k_ <sup>,</sup> <sup>i.e.</sup> <sup>vi</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> _C_ _N_ _,k_ <sup>).</sup> <sup>_i_</sup> _C_ _N_ _,k_ <sup>,</sup> <sup>i.e.</sup> <sup>vi</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> _C_ degrees of freedom, are the function values at the nodal points _x_ <sup>_i_</sup> _C_ _N_ _,k_ <sup>,</sup> <sup>i.e.</sup> <sup>vi</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> _C_ _N_ _,k_ <sup>).</sup> Those points are suitable for the interpolation of functions, thanks to the Dirac delta property of basis functions _φ_ <sup>_j_</sup> ( _x_ <sup>_i_</sup> _C_ _N_ _,k_ <sup>) =</sup> <sup>_δij._</sup> A technical problem arises in the case of discontinuous approximation space _D_ _N_ _,k_ because the function values have jumps at the boundary of the elements. Therefore, the function values of _v_ _∈D_ _N_ _,k_ at _x_ _D_ <sup>_i_</sup> _N_ _,k_ <sup>are</sup> <sup>understood</sup> <sup>as</sup> <sup>a</sup> <sup>continuous</sup> <sup>extension</sup> <sup>from</sup> <sup>the</sup> element supporting the corresponding _i_ -th basis function, i.e. _v_ ( _x_ <sup>_i_</sup> <sup>_i_</sup> _D_ _N_ _,k_ <sup>) =</sup> lim _x_ _→_ _x_ <sup>_i_</sup> _v_ ( _x_ ) _,_ where _Ti_ is an element supporting _φ_ <sup>_i_</sup> _._ _D_ _N_ _,k_ for _x_ _∈Ti_ In the latter text, the function values at the nodal points will be used in the above sense. _Reference element._ It is assumed that all of the elements _T_ are derived from a reference element _T_ <sup>ˆ</sup> using affine mapping _FT_ (ˆ _x_ ) : _T_ <sup>ˆ</sup> _→_ _T_ defined as _FT_ (ˆ _x_ ) = _RT_ ˆ _x_ + _ST_ with 1Facet is a mesh entity of codimension 1, i.e. edge in 2D and face in 3D. 5 Consistently the objects on a invertible matrices _RT_ _∈_ R <sup>_d×d_</sup> and vectors _ST_ _∈_ R <sup>_d_</sup> . reference element are denoted with a hat. Global basis functions _φi_ : Ω _→_ R of a FEM space _V_ are derived from a reference shape functions _φ_ <sup>ˆ</sup> ˆ _i_ : _T_ <sup>ˆ</sup> _→_ R by a composition with a mapping _FT_, i.e. _φi_ ( _x_ ) = _φ_ <sup>ˆ</sup> ˆ _i_ ( _FT_ <sup>_−_</sup> <sup>1(</sup> <sup>_x_</sup> <sup>))</sup> <sup>for</sup> <sup>_x_</sup> <sup>_∈_</sup> <sup>_T_</sup> <sup>.</sup> <sup>The</sup> <sup>relation</sup> <sup>between</sup> <sup>local ˆ</sup> <sup>_i_</sup> <sup>and</sup> <sup>global</sup> index _i_ = _lT_ ( <sup>ˆ</sup> _i_ ) is given with an injective map _lT_ : _{_ 1 _, . . ., VT_ _} →{_ 1 _, . . ., V },_ where _V_ = dim _V_ and _VT_ = dim _V|T_ = dim _Pk._ The derivative of basis functions is related with the formula obtained by a chain rule _<u>∂φ</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _∂xi_ = <sup>_<u>∂φ</u>_</sup> <sup>ˆ(</sup> <sup>_<u>F −</u>_</sup> <sup>1(</sup> <sup>_<u>x</u>_</sup> <sup><u>))</u></sup> _∂xi_ = _d_ _p_ =1 _<u>∂φ</u>_ <sup>ˆ</sup> <u>(</u> _<u>F</u>_ <sup>_−_</sup> <sup>1</sup> <u>(</u> _<u>x</u>_ <u>))</u> _∂x_ ˆ _p_ ( _RT_ <sup>_−_</sup> <sup>1)</sup> <sup>_pi._</sup> (1) Later on we also use a discretisation operator _DV_ : _V_ _→_ R <sup>_V_</sup> that assigns to each approximation function from space _V_ a corresponding vector of coefficients, i.e. _DV_ [ _v_ ] = v = ( _v_ ( _x_ <sup>_i_</sup> _V_ <sup>))</sup> <sup>_V_</sup> _i_ =1 <sup>with vectors denoted with upright sans-serif font.</sup> <sup>Note that it is a one-to-</sup> <sup>_i_</sup> _V_ <sup>))</sup> <sup>_V_</sup> _i_ v = ( _v_ ( _x_ <sup>_i_</sup> _V_ <sup>))</sup> <sup>_V_</sup> _i_ =1 <sup>with vectors denoted with upright sans-serif font.</sup> <sup>Note that it is a one-to-</sup> one mapping between the space of functions _V_ and the space of coefficients� R� <sup>_V_</sup> _V_ . _T_ Similarly we will also use the local degrees of freedom on an element _T_ as v _T_ = v _lT_ (ˆ _i_ ) ˆ _i_ =1 <sup>_∈_</sup> <sup>R</sup> <sup>_VT_</sup> <sup>.</sup> �ˆ _Vi_ =1 _T_ <sup>_∈_</sup> <sup>R</sup> <sup>_VT_</sup> <sup>.</sup> �v _lT_ (ˆ _i_ ) #### 2.2 Weighted projection Here, the DoGIP is introduced for the problem of the weighted projection. Definition 1 (Weighted projection) . _Let_ _V_ _be_ _a_ _finite_ _dimensional_ _approximation_ _space,_ _m_ : Ω _→_ R _a_ _uniformly_ _positive_ _integrable_ _function_ _representing_ _e.g._ _a_ _material_ _field,_ _and_ _f_ _∈_ _L_ <sup>2</sup> (Ω) _a_ _function_ _representing_ _e.g._ _a_ _source_ _term._ _Then_ _we_ _define_ _the_ _bilinear_ _form_ _a_ : _V_ _× V_ _→_ R _and_ _the_ _linear_ _functional_ _F_ : _V_ _→_ R _as_ _a_ ( _u, v_ ) = Ω _m_ ( _x_ ) _u_ ( _x_ ) _v_ ( _x_ ) d _x_ _,_ _F_ ( _v_ ) = Ω _f_ ( _x_ ) _v_ ( _x_ ) d _x_ _._ (2) _Then_ _the_ _weighted_ _projection_ _represents_ _the_ _problem:_ _Find_ _trial_ _function_ _u ∈V_ _such_ _that_ _a_ ( _u, v_ ) = _F_ ( _v_ ) _∀v_ _∈V._ In the standard approach, the solution of weighted projection _u_ = <sup>�</sup> _i_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_iφ_</sup> _V_ <sup>_i_</sup> <sup>with</sup> _V_ = dim _V_ is expressed as a linear combination with respect to the basis of the space _V_ . Then, the vector of coefficients u = (u _i_ ) <sup>_V_</sup> _i_ =1 <sup>is</sup> <sup>determined</sup> <sup>from</sup> <sup>the</sup> <sup>following</sup> <sup>square</sup> <sup>linear</sup> In the standard approach, the solution of weighted projection _u_ = <sup>�</sup> _i_ <sup>_V_</sup> _i_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_iφ_</sup> _V_ <sup>_i_</sup> Then, the vector of coefficients u = (u _i_ ) <sup>_V_</sup> _i_ =1 <sup>is</sup> <sup>determined</sup> <sup>from</sup> <sup>the</sup> <sup>following</sup> <sup>square</sup> <sup>linear</sup> system _V_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_,_</sup> (3a) Au = b _∈_ R <sup>_V_</sup> where A _ij_ = b _i_ = Ω Ω _m_ ( _x_ ) _φ_ <sup>_j_</sup> _V_ <sup>_j_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_φ_</sup> _V_ <sup>_i_</sup> _f_ ( _x_ ) _φ_ <sup>_i_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_._</sup> (3b) The alternative DoGIP approach relies on the incorporation of the double grid space. Lemma 2 (Double-grid space) . _Let_ _the_ _functions_ _u, v_ _be_ _from_ _a_ _space_ _V_ = _C_ _N_ _,k_ _and_ _let_ _W_ = _C_ _N_ _,_ 2 _k._ _Then_ _u ∈W,_ _uv_ _∈W._ 6 _Proof._ The product _uv_ of two FEM functions is a continuous function and the polynomial order on each element is doubled. Theorem 3 (DoGIP for weighted projection) . _Let_ _V_ = _C_ _N_ _,k_ _be_ _an_ _approximation_ _space_ _and_ _W_ = _C_ _N_ _,_ 2 _k_ _be_ _a_ _double-grid_ _space._ _Then_ _the_ _standard_ _linear_ _system_ _matrix_ (3) _can_ _be_ _decomposed_ _into_ Au _·_ v = B <sup>_∗_</sup> A <sup>DoGIP</sup> Bu _·_ v _with_ A <sup>DoGIP</sup> _∈_ R <sup>_W_</sup> <sup>_×W_</sup> _and_ B _∈_ R <sup>_W_</sup> <sup>_×V_</sup> _where_ _V_ = dim _V,_ _W_ = dim _W,_ _and_ _the_ _components_ _of_ _matrices_ _are_ A <sup>DoGIP</sup> _ij_ = _δij_ Ω <sup>_i_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> B _ij_ = _φV_ <sup>_j_</sup> _m_ ( _x_ ) _φ_ <sup>_i_</sup> _V_ <sup>_j_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> _W_ <sup>_i_</sup> <sup>)</sup> <sup>_._</sup> Remark 4. _In the case of the FEM space V_ = _C_ _N_ _,k_ _composed of the continuous functions,_ _the double-grid space is of the same type but with the doubled polynomial order W_ = _C_ _N_ _,_ 2 _k._ _Proof._ Since both trial _u_ and test function _v_ belong to the approximation space _V_, its product _uv_ belongs to _W_ and can be represented with respect to the Lagrangian basis of _W_ as <sup>_i_</sup> _W_ <sup>)</sup> <sup>_φi_</sup> <sup>_i_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_._</sup> _w_ ( _x_ ) = _u_ ( _x_ ) _v_ ( _x_ ) = _W_ _i_ =1 _u_ ( _x_ <sup>_i_</sup> <sup>_i_</sup> _W_ <sup>)</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> The substitution of this formula into the bilinear form (2) reveals an effective evaluation with respect to the basis of _W_ Ω _m_ ( _x_ ) _u_ ( _x_ ) _v_ ( _x_ ) d _x_ = = <sup>_j_</sup> _W_ <sup>)</sup> _W_ _j_ =1 _W_ _u_ ( _x_ <sup>_j_</sup> _δij_ _δij_ _m_ ( _x_ ) _φ_ <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> Ω - <u>��</u> <sup>_j_</sup> _W_ <sup>)</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> Ω _m_ ( _x_ ) _φ_ <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> _m_ ( _x_ ) _φ_ <sup>_j_</sup> _W_ <sup>_i_</sup> <sup>=</sup> R <sup>_M_</sup> �A <sup>DoGIP</sup> u _W,_ v _W_ u <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>v</sup> <sup>_i_</sup> _i,j_ =1 Ω A <sup>DoGIP</sup> _ij_ _ij_ where A <sup>DoGIP</sup> _∈_ R <sup>_W_</sup> <sup>_×W_</sup> is a diagonal matrix and vectors u _W_ = - _u_ ( _x_ <sup>_j_</sup> _W_ <sup>)</sup> - _Wj_ =1 <sup>and</sup> <sup>v</sup> <sup>_W_</sup> <sup>=</sup> where A <sup>DoGIP</sup> _∈_ R <sup>_W_</sup> <sup>_×W_</sup> is a diagonal matrix and vectors u _W_ = - _v_ ( _x_ <sup>_j_</sup> _W_ <sup>)</sup> - _W_ _j_ =1 <sup>from</sup> <sup>R</sup> <sup>_W_</sup> <sup>store</sup> <sup>the</sup> <sup>coefficients</sup> <sup>of</sup> <sup>functions</sup> <sup>_u_</sup> <sup>and</sup> <sup>_v_</sup> <sup>at</sup> <sup>DOFs</sup> <sup>of</sup> <sup>_W_</sup> <sup>.</sup> - _u_ ( _x_ <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>)</sup> - _v_ ( _x_ <sup>_j_</sup> _W_ <sup>)</sup> - _W_ _j_ =1 <sup>from</sup> <sup>R</sup> <sup>_W_</sup> <sup>store</sup> <sup>the</sup> <sup>coefficients</sup> <sup>of</sup> <sup>functions</sup> <sup>_u_</sup> <sup>and</sup> <sup>_v_</sup> <sup>at</sup> <sup>DOFs</sup> <sup>of</sup> <sup>_W_</sup> <sup>.</sup> Here one cannot derive directly a linear system because the test vectors v _W_ do not span the whole space R <sup>_W_</sup> . Therefore we express the coefficients u _W_ and v _W_ in terms of DOFs of the original space, i.e. u _k_ = _u_ ( _x_ <sup>_k_</sup> _V_ <sup>)</sup> <sup>and</sup> <sup>v</sup> <sup>_k_</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_k_</sup> _V_ <sup>)</sup> <sup>for</sup> <sup>_k_</sup> <sup>_∈{_</sup> <sup>1</sup> <sup>_, . . ., V }_</sup> <sup>.</sup> The formula is based on the evaluation of the ansatz _u_ ( _x_ ) = <sup>�</sup> _j_ <sup>_V_</sup> =1 <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> _V_ <sup>_j_</sup> <sup>)</sup> <sup>_φj_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>at</sup> the DOFs of the double-grid space _W_, which reveals the interpolation-projection matrix B _∈_ R <sup>_W_</sup> <sup>_×V_</sup> as <sup>_j_</sup> _W_ <sup>)</sup> <sup>_k_</sup> _V_ <sup>)</sup> <sup>and</sup> <sup>v</sup> <sup>_k_</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_k_</sup> _V_ _j_ <sup>_V_</sup> =1 <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> _V_ <sup>_j_</sup> _V_ <sup>_j_</sup> <sup>)</sup> <sup>_φj_</sup> _V_ of the original space, i.e. u _k_ = _u_ ( _x_ <sup>_k_</sup> _V_ <sup>)</sup> <sup>and</sup> <sup>v</sup> <sup>_k_</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_k_</sup> _V_ <sup>)</sup> <sup>for</sup> <sup>_k_</sup> <sup>_∈{_</sup> <sup>1</sup> <sup>_, . . ., V }_</sup> <sup>.</sup> The formula is based on the evaluation of the ansatz _u_ ( _x_ ) = <sup>�</sup> _j_ <sup>_V_</sup> =1 <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> _V_ <sup>_j_</sup> <sup>_j_</sup> _V_ <sup>(</sup> <sup>_x_</sup> _W_ <sup>_i_</sup> _W_ <sup>_i_</sup> <sup>) =</sup> u <sup>_i_</sup> <sup>_i_</sup> _W_ <sup>=</sup> <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> _W_ <sup>_i_</sup> <sup>) =</sup> _V_ _j_ =1 _u_ ( _x_ <sup>_j_</sup> _V_ <sup>_j_</sup> _V_ <sup>)</sup> <sup>_φj_</sup> _V_ _V_ _j_ =1 B _ij_ u _j_ for _i_ = 1 _, . . ., W._ The final formula in Theorem 3 is obtained by a substitution of the interpolation-projection matrix B . 7 A special version of the DoGIP is obtained when the decomposition is provided on a level of elements. Theorem 5 (Element-wise DoGIP for weighted projection) . _Let_ _V_ = _C_ _N_ _,k_ _be_ _an_ _approxi-_ _mation_ _space_ _and_ _W_ = _C_ _N_ _,_ 2 _k_ _be_ _a_ _double-grid_ _space._ _Then_ _the_ _quadratic_ _form_ _correspond-_ _ing_ _to_ _the_ _system_ _matrix_ (7) _can_ _be_ _decomposed_ _as_ _VT_ _k,l_ =1 _T_ _∈M_ Au _·_ v = _T_ _∈M_ B ˆ _∗_ A DoGIP _T_ Bu ˆ _T_ _·_ v _T_ = _∗_ A DoGIP _T_ _WT_ _i,j_ =1 A _T,ij_ B <sup>ˆ</sup> _jl_ u _T,l_ B <sup>ˆ</sup> _ik_ v _T,k,_ (4) - - _VT_ - - _VT_ _where_ u _T_ = u _lT_ ( _l_ ) _l_ =1 <sup>_,_</sup> <sup>v</sup> <sup>_T_</sup> <sup>=</sup> u _lT_ ( _k_ ) _k_ =1 <sup>_stores_</sup> <sup>_the_</sup> <sup>_local_</sup> <sup>_DOFs_</sup> <sup>_on_</sup> <sup>_the_</sup> <sup>_element_</sup> <sup>_T_</sup> <sup>_._</sup> <sup>_The_</sup> _arrays_ A _T_ _∈_ R <sup>_WT ×WT_</sup> _and_ B <sup>ˆ</sup> _∈_ R <sup>_WT ×VT_</sup> _have_ _the_ _following_ _components_ - _VT_ _l_ =1 <sup>_,_</sup> <sup>v</sup> <sup>_T_</sup> <sup>=</sup> �u _lT_ ( _k_ ) _where_ u _T_ = �u _lT_ ( _l_ ) _m_ ( _x_ ) _φ_ <sup>_l_</sup> _W_ <sup>_T_</sup> <sup>(</sup> <sup>_j_</sup> <sup>)</sup> <sup>_l_</sup> _W_ <sup>_T_</sup> <sup>(</sup> <sup>_j_</sup> <sup>)</sup> ( _x_ ) d _x_ _,_ Bˆ _jl_ = _φ_ ˆ <sup>_l_</sup> _V_ <sup>_l_</sup> <sup>(ˆ</sup> <sup>_x_</sup> <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>)</sup> <sup>_._</sup> A <sup>DoGIP</sup> _T,ij_ = _δij_ _T_ _Proof._ The proof is analogical to the one of the previous theorem. The main idea is to split the integral over domain Ωto integrals over elements, i.e. Ω _W_ _i,j_ =1 _δij_ _T_ _W_ <sup>_j_</sup> <sup>)</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i_</sup> _W_ <sup>_i_</sup> <sup>)</sup> <sup>_,_</sup> (5) _m_ ( _x_ ) _u_ ( _x_ ) _v_ ( _x_ ) d _x_ = _T_ _∈M_ _m_ ( _x_ ) _φ_ <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_· u_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> where the integrals are nonzero only when the basis functions _φ_ <sup>_j_</sup> _W_ <sup>have</sup> <sup>support</sup> <sup>on</sup> <sup>_T_</sup> <sup>.</sup> Moreover, the interpolation _T_ <sup>_−_</sup> <sup>1(</sup> <sup>_x_</sup> <sup>_j_</sup> _u_ ( _x_ <sup>_j_</sup> _W_ <sup>) =</sup> _V_ _l_ =1 _W_ <sup>_j_</sup> <sup>)) =</sup> _u_ ( _x_ <sup>_l_</sup> <sup>_l_</sup> _V_ <sup>)</sup> <sup>_φl_</sup> <sup>_l_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> _W_ <sup>_j_</sup> _W_ <sup>) =</sup> _V_ _l_ =1 u _lφ_ <sup>ˆ</sup> <sup>_l_</sup> _V_ <sup>_l_</sup> <sup>(</sup> <sup>_F_</sup> _T_ <sup>_−_</sup> <sup>1</sup> _V_ _l_ =1 u _lφ_ <sup>ˆ</sup> <sup>_l_</sup> _V_ <sup>_l_</sup> <sup>(ˆ</sup> <sup>_x_</sup> <sup>_j_</sup> _W_ <sup>_j_</sup> _W_ <sup>)</sup> <sup>_,_</sup> which is expressed with the reference basis, has nonzero coefficients only if _x_ <sup>_i_</sup> which is expressed with the reference basis, has nonzero coefficients only if _x_ <sup>_i_</sup> _W_ <sup>is contained</sup> in the support of _φ_ <sup>_j_</sup> _V_ <sup>.</sup> <sup>The substitution of the interpolation into (5) and reparametrisation</sup> in the support of _φ_ <sup>_j_</sup> _V_ <sup>.</sup> <sup>The substitution of the interpolation into (5) and reparametrisation</sup> of indices _i, j, k, l_ to local indices leads to the formulas stated in the theorem. #### 2.3 Scalar elliptic equation Here, the DoGIP is described for a scalar elliptic equation modelling, e.g. diffusion or stationary heat transfer. Definition 6 (Scalar elliptic problem) . _Let V_ _be a finite dimensional approximation space,_ _f_ _∈_ _L_ <sup>2</sup> (Ω) _be_ _a_ _function_ _representing_ _e.g._ _a_ _source_ _term,_ _and_ _M_ : Ω _→_ R <sup>_d×d_</sup> _be_ _an_ _integrable,_ _uniformly_ _positive_ _definite,_ _and_ _bounded_ _matrix_ _function,_ _i.e._ _∃c, C_ _∈_ R _such_ _that_ 0 _< c ≤_ <sup>_<u>M</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>)</u></sup> <sup>_<u>y</u>_</sup> <sup>_<u>·</u>_</sup> <sup>_<u>y</u>_</sup> _≤_ _C_ _∀_ _x_ _∈_ Ω _and_ _∀_ _y_ _∈_ R <sup>_d_</sup> _._ _∥_ _y_ _∥_ _Then_ _we_ _define_ _bilinear_ _form_ _a_ : _V_ _× V_ _→_ R _and_ _linear_ _functional_ _F_ : _V_ _→_ R _as_ Ω _a_ ( _u, v_ ) = _f_ ( _x_ ) _v_ ( _x_ ) d _x_ _._ (6) Ω _M_ ( _x_ ) _∇u_ ( _x_ ) _· ∇v_ ( _x_ ) d _x_ _,_ _F_ ( _v_ ) = _The_ _Galerkin_ _approximation_ _of_ _the_ _scalar_ _elliptic_ _problem_ _stands_ _for:_ _find_ _trial_ _function_ _u ∈V_ _such_ _that_ _a_ ( _u, v_ ) = _F_ ( _v_ ) _∀v_ _∈V._ 8 Analogically to the case in the previous section, the standard approach is based on the expression of the approximate solution _u_ = <sup>�</sup> _i_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_iφi_</sup> _V_ <sup>with</sup> <sup>_V_</sup> <sup>=</sup> <sup>dim</sup> <sup>_V_</sup> <sup>as</sup> <sup>a</sup> <sup>linear</sup> _i_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_iφi_</sup> the expression of the approximate solution _u_ = <sup>�</sup> _i_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_iφi_</sup> _V_ <sup>with</sup> <sup>_V_</sup> <sup>=</sup> <sup>dim</sup> <sup>_V_</sup> <sup>as</sup> <sup>a</sup> <sup>linear</sup> _i_ =1 combination with respect to the basis of the space _V_ . The vector of coefficients u = (u _i_ ) <sup>_V_</sup> _i_ =1 combination with respect to the basis of the space _V_ . The vector of coefficients u = (u _i_ ) <sup>_V_</sup> is determined from the following square linear system where A _ij_ = Au = b _∈_ R <sup>_V_</sup> _,_ b _i_ = Ω Ω _M_ ( _x_ ) _∇φV_ <sup>_j_</sup> _V_ <sup>_j_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_· ∇φ_</sup> _V_ <sup>_i_</sup> _V_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_,_</sup> _f_ ( _x_ ) _φ_ <sup>_i_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_._</sup> The DoGIP approach incorporates the double-grid space described in the following lemma. Lemma 7 (Double-grid space) . _Let_ _the_ _functions_ _u, v_ _be_ _from_ _the_ _space_ _V_ = _C_ _N_ _,k_ _and_ _let_ _W_ = _D_ _N_ _,_ 2 _k−_ 2 _be_ _the_ _corresponding_ _double-grid_ _space._ _Then_ _<u>∂u</u>_ _∂xp_ _<u>∂u</u>_ _∈D_ _N_ _,k−_ 1 _⊂W,_ _∂xp_ _<u>∂v</u>_ _∂xq_ _∈W_ _for_ _p, q_ _∈{_ 1 _, . . ., d}._ _Proof._ The derivative of a function reduces the polynomial order by one while the continuity of the functions over facets (edges in 2D or faces in 3D) is lost. Analogically to the weighted projection problem, there are two variants of the DoGIP approach: the global and the element-wise one. Since the double-grid space is discontinuous, the global variant has benefit only in the special cases of regular grid and isotropic materials. Both variants are presented in the following two theorems. Theorem 8 (DoGIP for elliptic problem) . _Let_ _V_ = _C_ _N_ _,k_ _be_ _an_ _approximation_ _space_ _and_ _W_ = _D_ _N_ _,_ 2 _k−_ 2 _be_ _a_ _double-grid_ _space._ _Then_ _the_ _standard_ _linear_ _system_ _matrix_ (7) _can_ _be_ _decomposed_ _into_ _W_ _i,j_ =1 Au _·_ v = B <sup>_∗_</sup> A <sup>DoGIP</sup> Bu _·_ v = _V_ _d_ - _k,l_ =1 _r,s_ =1 A <sup>DoGIP</sup> _rsij_ B _sjl_ u _l_ B _rik_ v _k_ _where_ _V_ = dim _V,_ _W_ = dim _W,_ _and_ _the_ _matrices_ A <sup>DoGIP</sup> _∈_ R <sup>_d×d×W_</sup> <sup>_×W_</sup> _and_ B _∈_ R <sup>_d×W_</sup> <sup>_×V_</sup> _have_ _the_ _following_ _components_ A <sup>DoGIP</sup> _rsij_ = _δij_ Ω _Mrs_ ( _x_ ) _φ_ <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> _for_ _r, s ∈{_ 1 _, . . ., d}, i, j_ _∈{_ 1 _, . . ., W_ _},_ B _rik_ = <sup>_<u>∂φ</u>_</sup> _<u>V</u>_ <sup>_k_</sup> _<u>V</u>_ <sup>_k_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup>_i_</sup> _for_ _r_ _∈{_ 1 _, . . ., d}, i ∈{_ 1 _, . . ., W_ _}, k_ _∈{_ 1 _, . . ., V }._ _<u>V</u>_ <sup>_k_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> _<u>W</u>_ <sup>_i_</sup> <sup><u>)</u></sup> _∂xr_ _Proof._ Now we present a method based on the double-grid quadrature and interpolation operator. Albeit both the trial _u_ and the test function _v_ belong to the approximation space _V_, we express them on the double-grid space _W_ <sup>_d×d_</sup> as _W_ <sup>_j_</sup> <sup>)</sup> <sup>_φj_</sup> _w_ ( _x_ ) = _∇u_ ( _x_ ) _⊗∇v_ ( _x_ ) = _W_ _j_ =1 9 _∇u_ ( _x_ <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>)</sup> <sup>_⊗∇v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_._</sup> The substitution of this formula in (6) already reveals an effective evaluation of the bilinear form Ω _M_ ( _x_ ) _∇u_ ( _x_ ) _· ∇v_ ( _x_ ) d _x_ = = = Ω _M_ ( _x_ ) : [ _∇u_ ( _x_ ) _⊗∇v_ ( _x_ )] d _x_ _W_ _j_ =1 Ω _M_ ( _x_ ) _φ_ <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>:</sup> <sup>_∇u_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> _W_ <sup>_j_</sup> _W_ <sup>)</sup> <sup>_⊗∇v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> _W_ <sup>_j_</sup> <sup>)</sup> - A <sup>DoGIP</sup> u _W,_ v _W_ �R <sup>_d×W,_</sup> where u _W_ = ( _∇u_ ( _x_ _W_ <sup>_j_</sup> <sup>))</sup> <sup>_W_</sup> _j_ =1 <sup>,</sup> <sup>v</sup> <sup>_W_</sup> <sup>=</sup> <sup>(</sup> <sup>_∇v_</sup> <sup>(</sup> <sup>_x_</sup> _W_ <sup>_j_</sup> <sup>))</sup> <sup>_W_</sup> _j_ =1 <sup>_∈_</sup> <sup>R</sup> <sup>_d×W_</sup> <sup>stores</sup> <sup>the</sup> <sup>coefficients</sup> <sup>on</sup> <sup>the</sup> double-grid space, the integral defines the coefficient of the block-diagonal matrix A <sup>DoGIP</sup>, and the matrix vector multiplication is understood as where u _W_ = ( _∇u_ ( _x_ <sup>_j_</sup> <sup>_W_</sup> _j_ =1 <sup>,</sup> <sup>v</sup> <sup>_W_</sup> <sup>=</sup> <sup>(</sup> <sup>_∇v_</sup> <sup>(</sup> <sup>_x_</sup> _W_ <sup>_j_</sup> _W_ <sup>_j_</sup> <sup>))</sup> <sup>_W_</sup> _j_ _W_ <sup>_j_</sup> <sup>))</sup> <sup>_W_</sup> _j_ _W_ _j_ =1 ( A <sup>DoGIP</sup> u _W_ ) _ri_ = _d_ _s_ =1 A <sup>DoGIP</sup> _rsij_ u _W,sj_ for _r_ = _{_ 1 _, . . ., d}_ and _i ∈{_ 1 _, . . ., W_ _}._ A <sup>DoGIP</sup> _rsij_ Here, we cannot derive directly a linear system because the test vectors v do not span the whole space R <sup>_d×W_</sup> . Therefore, we need an interpolation-projection operator between _V_ and _W_ <sup>_d_</sup>, or rather between their corresponding spaces of coefficients _DV_ [ _V_ ] and _DW_ [ _W_ ] <sup>_d_</sup> . The derivation of the matrix is based on the evaluation of the gradient of a function _u_ ( _x_ ) = <sup>�</sup> _k_ <sup>_V_</sup> =1 <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> _V_ <sup>_k_</sup> <sup>)</sup> <sup>_φk_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>at</sup> <sup>the</sup> <sup>degrees</sup> <sup>of</sup> <sup>freedom</sup> <sup>of</sup> <sup>the</sup> <sup>double</sup> <sup>grid</sup> <sup>space,</sup> <sup>i.e.</sup> <sup>for</sup> _k_ <sup>_V_</sup> =1 <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> _V_ <sup>_k_</sup> _V_ <sup>_k_</sup> <sup>)</sup> <sup>_φk_</sup> _V_ _u_ ( _x_ ) = <sup>�</sup> _k_ <sup>_V_</sup> =1 <sup>_u_</sup> <sup>(</sup> <sup>_x_</sup> _V_ <sup>_k_</sup> <sup>)</sup> <sup>_φk_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>at</sup> <sup>the</sup> <sup>degrees</sup> <sup>of</sup> <sup>freedom</sup> <sup>of</sup> <sup>the</sup> <sup>double</sup> <sup>grid</sup> <sup>space,</sup> <sup>i.e.</sup> <sup>for</sup> _x_ = _x_ <sup>_j_</sup> _W_ <sup>.</sup> <sup>It</sup> <sup>can</sup> <sup>be</sup> <sup>represented</sup> <sup>with</sup> <sup>an</sup> <sup>interpolation-projection</sup> <sup>operator</sup> <sup>B</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d×W_</sup> <sup>_×V_</sup> <sup>as</sup> <sup>_j_</sup> _W_ <sup>.</sup> <sup>It</sup> <sup>can</sup> <sup>be</sup> <sup>represented</sup> <sup>with</sup> <sup>an</sup> <sup>interpolation-projection</sup> <sup>operator</sup> <sup>B</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d×W_</sup> <sup>_×V_</sup> <sup>as</sup> _<u>∂u</u>_ <u>(</u> _<u>x</u>_ <sup>_j_</sup> _<u>W</u>_ <sup><u>)</u></sup> _∂xs_ for _s ∈{_ 1 _, . . ., d}_ and _j_ _∈{_ 1 _, . . ., W_ _}._ <sup>_<u>∂φ</u>_</sup> _<u>V</u>_ <sup>_l_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> _<u>W</u>_ <sup><u>)</u></sup> _<u>∂xs</u>_ - <u>��</u> <u>�</u> B _sjl_ _<u>V</u>_ <sup>_l_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> = _V_ _l_ =1 _u_ ( _x_ <sup>_l_</sup> _<u>V</u>_ <sup>_l_</sup> _V_ <sup>)</sup> <sup>_<u>∂φl</u>_</sup> To summarise, the bilinear form can be expressed using different vectors of coefficients R <sup>_V,_</sup> R <sup>_d×W_</sup> <sup>=</sup> R <sup>_d×W_</sup> <sup>=</sup> _a_ ( _u, v_ ) = - A <sup>DoGIP</sup> u _W,_ v _W_ - A <sup>DoGIP</sup> Bu _V,_ Bv _V_ - B <sup>_∗_</sup> A <sup>DoGIP</sup> Bu _V,_ v _V_ where the B <sup>_∗_</sup> is the adjoint operator of B . Since the last term holds for arbitrary vectors u _V_ and v _V_, the required decomposition is established. The special case of the theorem arises for isotropic material coefficients: Corollary 9. _Assume_ _that_ _M_ ( _x_ ) = _m_ ( _x_ ) _I_ _is_ _proportional_ _to_ _the_ _identity_ _matrix_ _I_ _with_ _some_ _uniformly_ _positive_ _and_ _bounded_ _function_ _m_ : Ω _→_ R _._ _Then,_ _the_ _coefficients_ _of_ _the_ _block-diagonal_ _matrix_ _from_ _previous_ _theorem_ _simplify_ _to_ A <sup>DoGIP</sup> _rsij_ = _δrsδij_ Ω _m_ ( _x_ ) _φ_ <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_._</sup> _In_ _particular_ _for_ _d_ = 2 _,_ _the_ _matrix_ A <sup>DoGIP</sup> _can_ _be_ _expressed_ _as_ _block-diagonal_ _operator_ _δij_ Ω <sup>_i_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> _i,j_ =1 A <sup>DoGIP</sup> = - a DoGIP 0 _,_ a <sup>DoGIP</sup> = 0 a <sup>DoGIP</sup> 10 _m_ ( _x_ ) _φ_ <sup>_i_</sup> - _W_ _._ Theorem 10 (Element-wise DoGIP for the elliptic problem) . _Let_ _V_ = _C_ _N_ _,k_ _be_ _an_ _ap-_ _proximation_ _space_ _and_ _W_ = _D_ _N_ _,k_ _be_ _a_ _double-grid_ _space._ _Then_ _the_ _quadratic_ _form_ _corre-_ _sponding_ _to_ _the_ _linear_ _system_ (7) _can_ _be_ _decomposed_ _as_ _∗_ A DoGIP _T_ Bu ˆ _T_ _·_ v _T_ _,_ Au _·_ v = _T_ _∈M_ B ˆ _∗_ _where_ u _T,l_ = u _lT_ ( _l_ ) _,_ v _T,k_ = v _lT_ ( _k_ ) _stores_ _the_ _local_ _DOFs_ _on_ _the_ _element_ _T_ _._ _The_ _quadratic_ _forms_ _on_ _the_ _element_ _level_ _are_ _evaluated_ _as_ _VT_ - A _T,rsij_ B <sup>ˆ</sup> _sjl_ u _T,l_ B <sup>ˆ</sup> _rik_ v _T,k,_ (8) _k,l_ =1 _∗_ A DoGIP _T_ Bu ˆ _T_ _·_ v _T_ = _∗_ A DoGIP _T_ _d_ _WT_ - _r,s_ =1 _i,j_ =1 B ˆ _where the arrays_ A <sup>DoGIP</sup> _T_ _∈_ R <sup>_d×d×WT ×WT_</sup> _and_ B <sup>ˆ</sup> _∈_ R <sup>_d×WT ×VT_</sup> _have the following components_ _._ _<u>V</u>_ <sup>_i_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_,_</sup> Bˆ _rik_ = <sup>_<u>∂φ</u>_</sup> <sup>ˆ</sup> <sup>_k_</sup> _T,sq_ A <sup>DoGIP</sup> _T,rsij_ <sup>=</sup> <sup>_δij_</sup> _d_ _p,q_ =1 _RT,rp_ <sup>_−_</sup> <sup>1</sup> _T,rp_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> _T,sq_ <sup>_−_</sup> <sup>1</sup> _<u>V</u>_ <sup>_k_</sup> <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> <sup>_i_</sup> _<u>V</u>_ <sup>_k_</sup> <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> _<u>W</u>_ <sup>_i_</sup> <sup><u>)</u></sup> _∂xr_ _T_ _Mpq_ ( _x_ ) _φ_ <sup>_i_</sup> _Proof._ Now we present the method based on the double-grid quadrature and interpolation operators. Albeit both the trial _u_ and the test function _v_ belong to the approximation space _V_, we express their tensor product _u ⊗_ _v_ on the double-grid space _W_ <sup>_d×d_</sup> as _W_ <sup>_j_</sup> <sup>)</sup> <sup>_φj_</sup> _w_ ( _x_ ) = _∇u_ ( _x_ ) _⊗∇v_ ( _x_ ) = _W_ _j_ =1 _∇u_ ( _x_ <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>)</sup> <sup>_⊗∇v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_._</sup> The substitution of this formula into the bilinear form reveals an effective evaluation Ω _M_ ( _x_ ) _∇u_ ( _x_ ) _· ∇v_ ( _x_ ) d _x_ = = = _T_ _T_ _∈M_ _T_ _∈M_ _T_ _∈M_ _M_ ( _x_ ) : [ _∇u_ ( _x_ ) _⊗∇v_ ( _x_ )] d _x_ _d_ _p,q_ =1 _W_ _j_ =1 _W_ _δij_ _T_ _M_ ( _x_ ) _φ_ <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>:</sup> <sup>_∇u_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> _W_ <sup>_j_</sup> _W_ <sup>)</sup> <sup>_⊗∇v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_j_</sup> _W_ <sup>_j_</sup> <sup>)</sup> _<u>∂v</u>_ <u>(</u> _<u>x</u>_ <sup>_i_</sup> _<u>W</u>_ <sup><u>)</u></sup> _∂xq_ <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>_·_</sup> <sup>_<u>∂u</u>_</sup> _∂x_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> _p_ <sup>_j_</sup> _∂x_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> _pW_ <sup>_j_</sup> <sup><u>)</u></sup> _T_ _Mpq_ (ˆ _x_ ) _φ_ <sup>_j_</sup> _,_ _i,j_ =1 - - _W_ which is written here as a weighted scalar product between arrays _∇u_ ( _x_ _W_ <sup>_j_</sup> <sup>)</sup> _j_ =1 <sup>and</sup> - - _W_ _∇v_ ( _x_ _W_ <sup>_i_</sup> <sup>)</sup> _i_ =1 <sup>.</sup> which is written here as a weighted scalar product between arrays - _∇u_ ( _x_ _W_ <sup>_j_</sup> _W_ <sup>_j_</sup> <sup>)</sup> - _W_ _v_ ( _x_ _W_ <sup>_i_</sup> <sup>)</sup> _i_ =1 <sup>.</sup> Now, these components will be expressed in the terms of nodal values u _k_ = _v_ ( _x_ _V_ <sup>_k_</sup> _W_ <sup>_i_</sup> <sup>)</sup> Now, these components will be expressed in the terms of nodal values u _k_ = _v_ ( _x_ _V_ <sup>_k_</sup> <sup>)</sup> of the space _V_ . The formula is based on the interpolation of the gradient of a function _u_ ( _x_ ) = <sup>�</sup> _k_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_kφk_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>) at the DOFs of the double grid space</sup> <sup>_W_</sup> <sup>(i.e. at</sup> <sup>_x_</sup> <sup>=</sup> <sup>_x_</sup> _W_ <sup>_j_</sup> <sup>with basis</sup> <sup>_k_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>) at the DOFs of the double grid space</sup> <sup>_W_</sup> <sup>(i.e. at</sup> <sup>_x_</sup> <sup>=</sup> <sup>_x_</sup> <sup>_j_</sup> _k_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_kφk_</sup> _V_ _u_ ( _x_ ) = <sup>�</sup> _k_ <sup>_V_</sup> =1 <sup>u</sup> <sup>_kφk_</sup> _V_ <sup>(</sup> <sup>_x_</sup> <sup>) at the DOFs of the double grid space</sup> <sup>_W_</sup> <sup>(i.e. at</sup> <sup>_x_</sup> <sup>=</sup> <sup>_x_</sup> _W_ <sup>_j_</sup> <sup>with basis</sup> _φ_ <sup>_j_</sup> _W_ <sup>supported</sup> <sup>at</sup> <sup>the</sup> <sup>element</sup> <sup>_T_</sup> <sup>)</sup> <sup>_j_</sup> _W_ <sup>supported</sup> <sup>at</sup> <sup>the</sup> <sup>element</sup> <sup>_T_</sup> <sup>)</sup> _d_ u _l_ _s_ =1 _<u>∂u</u>_ <u>(</u> _<u>x</u>_ <sup>_j_</sup> _<u>W</u>_ <sup><u>)</u></sup> _∂xq_ = ( _RT_ <sup>_−_</sup> <sup>1)</sup> <sup>_sq,_</sup> _<u>∂φ</u>_ <sup>_l_</sup> _<u>V</u>_ <sup>_l_</sup> _<u>V</u>_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> _<u>W</u>_ <sup>_l_</sup> _<u>V</u>_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> _<u>W</u>_ <sup><u>)</u></sup> _∂xq_ = _V_ _l_ =1 u _l_ _V_ _l_ =1 _<u>∂φ</u>_ <sup>ˆ</sup> <sup>_l_</sup> <sup>_l_</sup> _<u>V</u>_ <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> <sup>_l_</sup> _<u>V</u>_ <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> _<u>W</u>_ <sup><u>)</u></sup> _∂x_ ˆ _s_ where the derivatives of the basis functions are expressed with respect to the reference basis function, see (1), and _x_ ˆ <sup>_j_</sup> _W_ <sup>=</sup> <sup>_F_</sup> _T_ <sup>_−_</sup> <sup>1(</sup> <sup>_x_</sup> _W_ <sup>_j_</sup> <sup>).</sup> _T_ <sup>_−_</sup> <sup>1(</sup> <sup>_x_</sup> <sup>_j_</sup> <sup>_j_</sup> _W_ <sup>=</sup> <sup>_F_</sup> _T_ <sup>_−_</sup> <sup>1</sup> _W_ <sup>_j_</sup> <sup>).</sup> 11 The substitution into the integral provides the DoGIP evaluation over the finite elements Ω = _T_ _∈M_ _M_ ( _x_ ) _∇u_ ( _x_ ) _· ∇v_ ( _x_ ) d _x_ = _d_ _p,q_ =1 _T,rp_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> _T,sq_ <sup>_−_</sup> <sup>1</sup> _d_ _r,s_ =1 _δij_ _._ _<u>∂φ</u>_ <sup>ˆ</sup> <sup>_k_</sup> _<u>V</u>_ <sup>_k_</sup> _<u>V</u>_ <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> <sup>_i_</sup> <sup>_k_</sup> _<u>V</u>_ <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> _<u>W</u>_ <sup>_i_</sup> <sup><u>)</u></sup> _∂xr_ _W_ _i,j_ =1 _·_ _RT,rp_ <sup>_−_</sup> <sup>1</sup> _T,sq_ _V_ _k,l_ =1 _<u>∂φ</u>_ <sup>ˆ</sup> <sup>_l_</sup> <sup>_l_</sup> _<u>V</u>_ <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> <sup>_l_</sup> _<u>V</u>_ <sup><u>(ˆ</u></sup> <sup>_<u>x</u>_</sup> <sup>_j_</sup> _<u>W</u>_ <sup><u>)</u></sup> _∂xs_ _T_ _Mpq_ ( _x_ ) _φ_ <sup>_j_</sup> _W_ <sup>(</sup> <sup>_x_</sup> <sup>) d</sup> <sup>_x_</sup> u _l_ v _k_ The interpolation coefficients _φ_ <sup>ˆ</sup> <sup>_k_</sup> _V_ <sup>_k_</sup> _V_ <sup>(ˆ</sup> <sup>_x_</sup> <sup>_i_</sup> The interpolation coefficients _φ_ <sup>ˆ</sup> <sup>_k_</sup> _V_ <sup>(ˆ</sup> <sup>_x_</sup> _W_ <sup>_i_</sup> <sup>)</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>the</sup> <sup>integral</sup> <sup>over</sup> <sup>_T_</sup> <sup>are</sup> <sup>nonzero</sup> <sup>only</sup> <sup>if</sup> the support of _φ_ <sup>_k_</sup> _V_ <sup>and</sup> <sup>_φi_</sup> _W_ <sup>is on the same element</sup> <sup>_T_</sup> <sup>.</sup> <sup>Therefore, we can reparametrise the</sup> <sup>_k_</sup> _V_ <sup>and</sup> <sup>_φi_</sup> the support of _φ_ <sup>_k_</sup> _V_ <sup>and</sup> <sup>_φi_</sup> _W_ <sup>is on the same element</sup> <sup>_T_</sup> <sup>.</sup> <sup>Therefore, we can reparametrise the</sup> sums over _i, j, k_, and _l_ to local indices in order to obtain the final formula stated in the theorem. The actual matrix-vector multiplication can be provided by the following Algorithm 1. <u>Algorithm</u> <u>1</u> <u>Matrix-vector</u> <u>multiplication</u> <u>for</u> <u>element-wise</u> <u>DoGIP</u> <sup>DoGIP</sup> _T_ _∈_ R <sup>_d×d×WT ×WT_</sup> for all _T_ _∈M_, B <sup>ˆ</sup> _∈_ R <sup>_d×WT ×VT_</sup> Require: A <sup>DoGIP</sup> _T_ 1: function multiplication( A, u ) 2: allocate v of size like u 3: for _T_ in _M_ do _▷_ iteration over all elements 4: get local DOFs u _T_ from u 5: calculate sequentially from right BA <sup>ˆ</sup> <sup>DoGIP</sup> _T_ Bu ˆ _T_ _▷_ Eq. (8) 5: calculate sequentially from right BA <sup>ˆ</sup> <sup>DoGIP</sup> _T_ Bu ˆ _T_ _▷_ Eq. (8) 6: add BA <sup>ˆ</sup> <sup>DoGIP</sup> _T_ Bu ˆ _T_ to v 6: add BA <sup>ˆ</sup> <sup>DoGIP</sup> _T_ Bu ˆ _T_ to v 7: end for 8: return v 9: <u>end</u> <u>function</u> ### 3 Numerical results Here the memory and computational requirements are compared for the DoGIP and the standard discretisation approach. The two variational problems presented in sections 2.2 and 2.3 were implemented in an open-source FEM software [FEniCS](https://fenicsproject.org/) [55]; Python scripts are freely available on [https://github.com/vondrejc/DoGIP.](https://github.com/vondrejc/DoGIP) The irregular meshes _M_ _N_, with an example depicted in Figure 1, are described with the parameter _N_ = ( _N, N, N_ ) corresponding to the number of elements in each spatial direction; for simplicity the mesh will be denoted as _M_ . Now the memory and computational demands are discussed. To store sparse matrices obtained from FEM formulations, the compressed sparse row (CSR) format is considered with memory requirements mem A = 2 nnz A + nrows A _,_ where nnz is a number of non-zero elements and nrows number of rows. This format requires to store all the nonzero elements, all the corresponding column indices in each row, and the number of elements in each row. It is also noted that the values below 12 1 _._ 0 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 0 _._ 0 0 _._ 0 0 _._ 5 1 _._ 0 Coordinate _x_ 1 Figure 1: Finite element mesh _M_ _N_ of size _N_ = (5 _,_ 5) and characteristic mesh size 5 <sup><u>1</u></sup> <sup>.</sup> the threshold 10 <sup>_−_</sup> <sup>14</sup> are consistently considered as zeros and therefore do not affect the memory requirements. The following ratio provides _<u>T</u>_ memory efficiency = <sup><u>nnz</u></sup> <sup><u>A</u></sup> <sup>DoGIP</sup> _<u>·</u>_ <u>dim</u> _<u>M</u>_ (9) mem A between DoGIP and standard approach, where nnz A <sup>DoGIP</sup> _T_ between DoGIP and standard approach, where nnz A <sup>DoGIP</sup> _T_ are non-zero elements of dense matrices A <sup>DoGIP</sup> _T_ for each element _T_, and dim _M_ corresponds to the number of elements matrices A <sup>DoGIP</sup> _T_ for each element _T_, and dim _M_ corresponds to the number of elements (2 _N_ <sup>2</sup> in 2D and 6 _N_ <sup>3</sup> in 3D). The computational requirements are directed by the number of operations (real multiplications) for matrix-vector multiplication which is directed by the number of nonzero elements of the system matrix A or item-by-item multiplication with matrix B <sup>ˆ</sup> _∗_ A DoGIP _T_ B ˆ _∗_ A DoGIP _T_ elements of the system matrix A or item-by-item multiplication with matrix B <sup>ˆ</sup> _∗_ A DoGIP _T_ B ˆ for each element _T_ of the mesh _M_ . The following ratio provides computational eff. = <sup><u>[2(nnz</u></sup> <sup><u>B</u></sup> <sup>ˆ</sup> <sup>_<u>−</u>_</sup> <sup><u>nnz</u></sup> <sup>_<u>±</u>_</sup> <sup><u>1</u></sup> <sup><u>B</u></sup> <sup>ˆ</sup> <sup><u>) + nnz</u></sup> <sup><u>A</u></sup> _<u>T</u>_ <sup>DoGIP</sup> <u>]</u> _<u>·</u>_ <u>dim</u> _<u>M</u>_ (10) nnz A between DoGIP and standard FEM. The multiplication in DoGIP can benefit from the regular structure with multiplication with B <sup>ˆ</sup> that could be optimised for a fast evaluation. Additional costs that are attributed to the multiplication with sparse matrices are not considered here. #### 3.1 Weighted projection In the weighted projection, the basis space _V_ is considered to be the space of continuous piecewise-polynomials _C_ _N_ _,k_ . Then the double-grid space can be considered again as a space of continuous piecewise-polynomials but with the doubled polynomial order, i.e. _V_ = _C_ _N_ _,k,_ _W_ = _C_ _N_ _,_ 2 _k._ In the numerical test summarised in Tables 1 and 2, the number of elements N (or the characteristic mesh size 1 _/N_ ) and polynomial order _k_ have been considered as parameters. They are chosen such that they provide the same dimension of the original space _V_ . One 13 Table 1: Comparison of the DoGIP and standard approach for weighted projection in 2D with dim _V_ = 1 _,_ 442 _,_ 401 for all cases in this table. Here 1 _/N_ is the characteristic mesh size, _k_ is a polynomial order, and memory and computational efficiency are defined in (9) and (10). param. standard FEM DoGIP effectiveness _<u>N</u>_ _<u>k</u>_ <u>mem</u> <u>A</u> <u>mem</u> <u>A</u> _<u>T</u>_ <u>mem</u> <u>A</u> <sup>DoGIP</sup> <u>mem</u> <u>A</u> <sup>DoGIP</sup> _<u>T</u>_ <u>nnz</u> <u>B</u> <sup>ˆ</sup> <u>mem.</u> <u>comp.</u> 1,200 1 21,616,803 9 17,280,000 6 9 0.80 5.14 600 2 34,581,447 36 10,800,000 15 39 0.31 3.52 400 3 50,426,139 100 8,960,000 28 115 0.18 3.11 300 4 69,150,763 225 8,100,000 45 270 0.12 2.95 240 5 90,755,463 441 7,603,200 66 546 0.08 2.86 200 6 115,239,527 784 7,280,000 91 994 0.06 2.84 <u>150</u> <u>8</u> <u>172,850,259</u> <u>2,025</u> <u>6,885,000</u> <u>153</u> <u>2,655</u> <u>0.04</u> <u>2.82</u> Table 2: Comparison of the DoGIP and standard approach for weighted projection in 3D with dim _V_ = 912 _,_ 673 for all cases in this table. Here 1 _/N_ is the characteristic mesh size, _k_ is a polynomial order, and memory and computational efficiency are defined in (9) and (10). param. standard FEM DoGIP effectiveness _<u>N</u>_ _<u>k</u>_ <u>mem</u> <u>A</u> <u>mem</u> <u>A</u> _<u>T</u>_ <u>mem</u> <u>A</u> <sup>DoGIP</sup> <u>mem</u> <u>A</u> <sup>DoGIP</sup> _<u>T</u>_ <u>nnz</u> <u>B</u> <sup>ˆ</sup> <u>mem.</u> <u>comp.</u> 96 1 27,843,551 16 53,084,160 10 16 1.91 13.40 48 2 52,423,011 100 23,224,320 35 116 0.44 6.36 32 3 87,684,871 400 16,515,072 84 520 0.19 4.91 <u>24</u> <u>4</u> <u>135,540,615</u> <u>1,225</u> <u>13,685,760</u> <u>165</u> <u>1,729</u> <u>0.10</u> <u>4.38</u> directly observes that the sparsity of the original systems A is significantly reduced with the growing polynomial order _k_ . On the other side, the memory requirements to store the DoGIP matrix A <sup>DoGIP</sup> are reduced compared to the conventional approach, which makes the DoGIP approach more efficient, especially for higher order polynomials. Particularly, the memory demands for DoGIP in 2D are always smaller (regardless the polynomial order) than for the standard approach with linear polynomials; in 3D it is valid for DoGIP with polynomial order two and higher. The memory effectiveness reaches the value of 0 _._ 04 in 2D for _k_ = 8 and the value of 0 _._ 10 in 3D for _k_ = 4. On the other side the computational demands are increased for the DoGIP approach but decrease with increasing polynomial order _k_ . The values of computational efficiency, see (10), reach 2 _._ 81 for _k_ = 8 in 2D and 4 _._ 25 for _k_ = 4 in 3D. Note that the memory requirements for the DoGIP approach decrease with increasing polynomial order. It can be explained by the fact that the double grid space is continuous with overlapping degrees of freedom at the interface of the elements, but the DoGIP approach stores the matrices A <sup>DoGIP</sup> _T_ element-wise. Therefore better results can be achieved for a global variant stated in Theorem 8 because the continuity of the double grid space can be incorporated. This could reduce the memory and computationally requirements for smaller polynomial orders. 14 #### 3.2 Scalar elliptic equation In the case of scalar elliptic equation, the initial approximation space is again considered as a space of continuous piece-wise polynomials; however, the double-grid space consists of discontinuous piece-wise polynomials with reduced polynomial order 2( _k −_ 1) because of the gradient, i.e. _V_ = _C_ _N_ _,k,_ _W_ = _D_ _N_ _,_ 2( _k−_ 1) _._ Table 3: Comparison of the DoGIP and standard approach for scalar elliptic equation with isotropic material coefficients in 2D with dim _V_ = 1 _,_ 442 _,_ 401 for all cases in this table. Here 1 _/N_ is the characteristic mesh size, _k_ is a polynomial order, and memory and computational efficiency are defined in (9) and (10). param. standard FEM DoGIP effectiveness _<u>N</u>_ _<u>k</u>_ <u>mem</u> <u>A</u> <u>mem</u> <u>A</u> _<u>T</u>_ <u>mem</u> <u>A</u> <sup>DoGIP</sup> <u>mem</u> <u>A</u> <sup>DoGIP</sup> _<u>T</u>_ <u>nnz</u> <u>B</u> <sup>ˆ</sup> <u>mem.</u> <u>comp.</u> 1,200 1 21,616,803 9 11,520,000 4 4 0.53 1.14 600 2 34,581,603 36 17,280,000 24 44 0.50 3.13 400 3 50,426,403 100 19,200,000 60 212 0.38 5.80 300 4 69,151,203 225 20,160,000 112 612 0.29 6.81 240 5 90,756,003 441 20,736,000 180 1,516 0.23 8.10 200 6 115,240,803 784 21,120,000 264 2,992 0.18 8.66 <u>150</u> <u>8</u> <u>172,850,403</u> <u>2,025</u> <u>21,600,000</u> <u>480</u> <u>9,232</u> <u>0.12</u> <u>9.88</u> Table 4: Comparison of the DoGIP and standard approach for scalar elliptic equation with isotropic material coefficients in 3D with dim _V_ = 912 _,_ 673 for all cases in this table. Here 1 _/N_ is the characteristic mesh size, _k_ is a polynomial order, and memory and computational efficiency are defined in (9) and (10). param. standard FEM DoGIP effectiveness _<u>N</u>_ _<u>k</u>_ <u>mem</u> <u>A</u> <u>mem</u> <u>A</u> _<u>T</u>_ <u>mem</u> <u>A</u> <sup>DoGIP</sup> <u>mem</u> <u>A</u> <sup>DoGIP</sup> _<u>T</u>_ <u>nnz</u> <u>B</u> <sup>ˆ</sup> <u>mem.</u> <u>comp.</u> 96 1 27,843,555 16 47,775,744 9 6 1.72 3.55 48 2 52,423,203 100 59,719,680 90 126 1.14 6.03 32 3 87,773,283 400 61,931,520 315 1,014 0.71 9.79 <u>24</u> <u>4</u> <u>135,589,539</u> <u>1,225</u> <u>62,705,664</u> <u>756</u> <u>4,590</u> <u>0.46</u> <u>11.82</u> The numerical results are summarised in Tables 3 and 4 again for two parameters (the characteristic mesh size 1 _/N_ and polynomial order _k_ ), which are chosen in a way to provide the same dimension of the original space _V_ . Contrary to the weighted projection in the previous subsection, the size of the double-grid space _W_ and thus the size of blockdiagonal matrix A <sup>DoGIP</sup> grow with polynomial order _k_ ; however, the rate is slower than the memory requirements on the original matrix A, which can be seen from the decreasing values of memory effectiveness. Moreover, the memory requirements for DoGIP in 2D are always smaller (regardless the polynomial order) than for the standard approach with linear polynomials. In 3D it is not observed any more, however, the DoGIP is always more memory efficient than the standard approach with polynomial order three. Particularly the memory effectiveness reaches 0 _._ 12 for _k_ = 8 in 2D and 0 _._ 45 for _k_ = 4 in 3D. Still 15 the memory requirements fail to be beneficial for polynomial order 1 and 2 in 3D. The memory requirements grow with polynomial order _k_ reaching the factor of 10. #### 3.3 Comparison to other matrix-free approaches In this section, the DoGIP approach that decomposes the system matrix into the interpolation and element-wise multiplication is compared to the existing matrix-free approaches [4, 5, 6, 7, 8]. Their difference lies in the interpolation operator. The conventional matrixfree approaches interpolate over integration points while the DoGIP approach interpolates the trial functions on the double-grid space, which is spanned by the product of the approximation and the test space (possibly with a differential operator). Therefore the DoGIP approach is beneficial whenever the dimension of the double grid space _W_ is smaller than the number of integration points. In Figure 2, the dimensions of the approximation and the double-grid space are depicted for different polynomial order _k_ along with the number of integration points of the Gauss type. In the case of weighted projection, the product of the trial and the test function is a polynomial of the doubled order, i.e. 2 _k_ . It allows to choose a numerical integration, which is exact for a constant material coefficient. Following [32], the number of quadrature points is significantly lower than the dimension of the double grid space _W_ . For sufficiently smooth material coefficients, the Gauss-type integration can still integrate the integrands accurately, however it may require to use higher order integration schemes. For the integration that is exact for polynomials up to order 3 _k_, an efficient numerical integration on the simplexes can be chosen especially for lower order polynomials; higher order integration rules are more difficult to compute. As an example, the number of integration points for the scheme in [14], which is implemented in the software FEniCS for higher order polynomials, is comparable to the dimension of the double grid space in 2D but higher in 3D. A totally different situation arises for nonsmooth integrands, which calls for some alternatives to Gauss-like integration rules. Jumps in the functions naturally occur, e.g. when the material coefficients are heterogeneous or when the crack path (or the boundary of the computational domain) intersects a finite element. In those situations a special integration technique has to be used as in the finite cell method [36, 37, 38] incorporating an adaptive approach to decompose the element into subelements, which are integrated separately. As these techniques require a significantly higher number of integration points than Gauss-like methods, the DoGIP approach provides an advantage compared to the conventional matrix-free approaches. ### 4 Conclusion and discussion In this paper, the double-grid integration with interpolation-projection (DoGIP) is introduced and compared to the standard Galerkin discretisation of variational formulations. This novel matrix-free discretisation approach introduced for the Fourier–Galerkin method in [1, 2] is here recognised to be a more general framework. Here, it is investigated within the finite element method (FEM) on simplexes for the weighted projection and the scalar elliptic equation. The main results and observations are summarised: 16 nip(3 _k_ ) by W&V nip(2 _k_ ) by FEniCS nip(3 _k_ ) by FEniCS 2 4 6 8 10 Polynomial order _k_ (b) Weighted projection in 3D 10 <sup>2</sup> 10 <sup>1</sup> nip(3 _k_ ) by W&V nip(2 _k_ ) by FEniCS nip(3 _k_ ) by FEniCS 2 4 6 8 10 Polynomial order _k_ (a) Weighted projection in 2D dim( _V_ ) dim( _W_ ) nip(2 _k_ ) by W&V dim( _V_ ) dim( _W_ ) nip(2 _k_ ) by W&V 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> Figure 2: Dimensions of approximation spaces and of integration points on a single element. The values nip(2 _k_ ) and nip(3 _k_ ) denote the number of integration points for a rule that can integrate exactly polynomials of order 2 _k_ or 3 _k_, resp. The rule W&V (Witherden & Vincent) denotes for a regular integration rule presented in [32]. The integration rule implemented in FEniCS [56, 57, 58] differs for higher polynomial orders as it incorporates the collapsed integration rule presented in [14] by Karniadakis and Sherwin. _•_ The DoGIP method is based on a decomposition of the original system matrix into a (block) diagonal A <sup>DoGIP</sup> and an interpolation-projection matrix B <sup>ˆ</sup> evaluated only on a reference element; interpolation is thus independent of the material coefficients or mesh distortions. _•_ The DoGIP approach is typically memory efficient compared to the original system, however the computational demands for FEM on simplexes are higher. _•_ The effectiveness of the traditional matrix-free approaches incorporating interpolation over quadrature points depends on the required number of integration points. The DoGIP splits the quadrature and interpolation into separate tasks. Therefore it is suitable for general problems when a higher number of integration points have to be used, e.g. for material coefficients that are discontinuous over elements. For problems with constant or smooth material coefficients, the standard matrix-free approaches remain the first option. The proposed DoGIP approach has several possibilities for future research, which is discussed here: _•_ Reducing the complexity of the interpolation-projection operators B by a special choice of the basis functions for a primal as well as a double-grid space. _•_ Application of the method to different discretisations and approximations such as FEM on quadrilaterals, spectral methods, or wavelets. _•_ Effective evaluation of interpolation-projection operator B using e.g. low-rank approximations. _•_ Investigation of special linear solvers such as the multigrid that could fit to the structure of the DoGIP systems. 17 Acknowledgements This paper was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) (project number MA2236/27-1) and the Czech Science Foundation (project number 17-04150J). ### References [1] J. Vondˇrejc, J. Zeman, I. Marek, Guaranteed upper-lower bounds on homogenized properties by FFT-based Galerkin method, Computer Methods in Applied Mechanics and Engineering 297 (2015) 258–291. `[doi:10.1016/j.cma.2015.09.003](http://dx.doi.org/10.1016/j.cma.2015.09.003)` . [2] J. Vondˇrejc, Improved guaranteed computable bounds on homogenized properties of periodic media by the Fourier–Galerkin method with exact integration, International Journal for Numerical Methods in Engineering 107 (13) (2016) 1106–1135. `[doi:](http://dx.doi.org/10.1002/nme.5199)` `[10.1002/nme.5199](http://dx.doi.org/10.1002/nme.5199)` . [3] J. Vondˇrejc, Double Grid Integration with Projection (DoGIP): Application to nu merical homogenization by Fourier-Galerkin method, in: Proceedings in Applied Mathematics and Mechanics, Vol. 16, WILEY-VCH Verlag, 2016, pp. 561–562. `[doi:10.1002/pamm.201610269](http://dx.doi.org/10.1002/pamm.201610269)` . [4] S. A. Orszag, Spectral Methods for Problems in Complex Geometries, Journal of Computational Physics 37 (1) (1980) 70–92. `[doi:10.1016/0021-9991(80)90005-4](http://dx.doi.org/10.1016/0021-9991%0x2880%0x2990005-4)` . [5] M. Kronbichler, K. Kormann, A generic interface for parallel cell-based finite ele ment operator application, Computers & Fluids 63 (2012) 135–147. `[doi:10.1016/](http://dx.doi.org/10.1016/J.COMPFLUID.2012.04.012)` `[J.COMPFLUID.2012.04.012](http://dx.doi.org/10.1016/J.COMPFLUID.2012.04.012)` . [6] C. Cantwell, S. Sherwin, R. Kirby, P. Kelly, From h to p efficiently: Strategy selection for operator evaluation on hexahedral and tetrahedral elements, Computers & Fluids 43 (1) (2011) 23–28. `[doi:10.1016/J.COMPFLUID.2010.08.012](http://dx.doi.org/10.1016/J.COMPFLUID.2010.08.012)` . [7] M. Deville, P. Fischer, E. Mund, High-order methods for incompressible fluid flow, Cambridge University Press, Cambridge, UK, 2002. [8] I. Huismann, J. Stiller, J. Fr¨ohlich, Factorizing the factorization – a spectral-element solver for elliptic equations with linear operation count, Journal of Computational Physics 346 (2017) 437–448. `[doi:10.1016/J.JCP.2017.06.012](http://dx.doi.org/10.1016/J.JCP.2017.06.012)` . [9] J. S. Hesthaven, From Electrostatics to Almost Optimal Nodal Sets for Polynomial Interpolation in a Simplex, SIAM Journal on Numerical Analysis 35 (2) (1998) 655– 676. `[doi:10.1137/S003614299630587X](http://dx.doi.org/10.1137/S003614299630587X)` . [10] D. Gottlieb, S. A. Orszag, Numerical analysis of spectral methods: theory and ap plications, Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 1977. [11] J. P. Boyd, Chebyshev and Fourier spectral methods, 2nd Edition, Courier Corpo ration, New York, 2001. 18 [12] C. Canuto, M. Y. Hussaini, A. Quarteroni, Z. A. Thomas, Spectral Methods: Fun damentals in Single Domains, Scientific Computation, Springer, Berlin, Heidelberg, 2006. `[doi:10.1007/978-3-540-30726-6](http://dx.doi.org/10.1007/978-3-540-30726-6)` . [13] R. Pasquetti, F. Rapetti, Spectral Element Methods on Unstructured Meshes: Com parisons and Recent Advances, Journal of Scientific Computing 27 (1-3) (2006) 377– 387. `[doi:10.1007/s10915-005-9048-6](http://dx.doi.org/10.1007/s10915-005-9048-6)` . [14] G. E. Karniadakis, S. J. Sherwin, Spectral/hp element methods for computational fluid dynamics, 2nd Edition, Oxford University Press, New York, 2013. [15] G. E. Karniadakis, Spectral element-Fourier methods for incompressible turbulent flows, Computer Methods in Applied Mechanics and Engineering 80 (1-3) (1990) 367–380. `[doi:10.1016/0045-7825(90)90041-J](http://dx.doi.org/10.1016/0045-7825%0x2890%0x2990041-J)` . [16] P. E. J. Vos, R. van Loon, S. J. Sherwin, A comparison of fictitious domain methods appropriate for spectral/hp element discretisations, Computer Methods in Applied Mechanics and Engineering 197 (25-28) (2008) 2275–2289. `[doi:10.1016/j.cma.](http://dx.doi.org/10.1016/j.cma.2007.11.023)` `[2007.11.023](http://dx.doi.org/10.1016/j.cma.2007.11.023)` . [17] P. E. Vos, S. J. Sherwin, R. M. Kirby, From h to p efficiently: Implementing finite and spectral/hp element methods to achieve optimal performance for low- and highorder discretisations, Journal of Computational Physics 229 (13) (2010) 5161–5181. `[doi:10.1016/J.JCP.2010.03.031](http://dx.doi.org/10.1016/J.JCP.2010.03.031)` . [18] M. Dubiner, Spectral methods on triangles and other domains, Journal of Scientific Computing 6 (4) (1991) 345–390. `[doi:10.1007/BF01060030](http://dx.doi.org/10.1007/BF01060030)` . [19] S. J. Sherwin, G. E. Karniadakis, A new triangular and tetrahedral basis for high order (hp) finite element methods, International Journal for Numerical Methods in Engineering 38 (22) (1995) 3775–3802. `[doi:10.1002/nme.1620382204](http://dx.doi.org/10.1002/nme.1620382204)` . [20] H. Luo, J. D. Baum, R. L¨ohner, A Fast, Matrix-free Implicit Method for Compressible Flows on Unstructured Grids, Journal of Computational Physics 146 (2) (1998) 664– 690. `[doi:10.1006/JCPH.1998.6076](http://dx.doi.org/10.1006/JCPH.1998.6076)` . [21] D. May, J. Brown, L. Le Pourhiet, A scalable, matrix-free multigrid preconditioner for finite element discretizations of heterogeneous Stokes flow, Computer Methods in Applied Mechanics and Engineering 290 (2015) 496–523. `[doi:10.1016/J.CMA.](http://dx.doi.org/10.1016/J.CMA.2015.03.014)` `[2015.03.014](http://dx.doi.org/10.1016/J.CMA.2015.03.014)` . [22] A. Crivellini, F. Bassi, An implicit matrix-free Discontinuous Galerkin solver for viscous and turbulent aerodynamic simulations, Computers & Fluids 50 (1) (2011) 81–93. `[doi:10.1016/J.COMPFLUID.2011.06.020](http://dx.doi.org/10.1016/J.COMPFLUID.2011.06.020)` . [23] F. Alauzet, A parallel matrix-free conservative solution interpolation on unstructured tetrahedral meshes, Computer Methods in Applied Mechanics and Engineering 299 (2016) 116–142. `[doi:10.1016/J.CMA.2015.10.012](http://dx.doi.org/10.1016/J.CMA.2015.10.012)` . [24] G. Strang, Variational crimes in the finite element method, in: A. K. Aziz (Ed.), The mathematical foundations of the finite element method with applications to partial differential equations, Academic Press, New York, NY, USA, 1972, pp. 689–710. 19 [25] P. G. Ciarlet, Handbook of Numerical Analysis: Finite Element Methods, Elsevier Science Publishers B.V. (North-Holland), 1991. [26] P. Silvester, Symmetric quadrature formulae for simplexes, Mathematics of Compu tation 24 (109) (1970) 95–95. `[doi:10.1090/S0025-5718-1970-0258283-6](http://dx.doi.org/10.1090/S0025-5718-1970-0258283-6)` . [27] A. Grundmann, H. M. M¨oller, Invariant Integration Formulas for the n -Simplex by Combinatorial Methods, SIAM Journal on Numerical Analysis 15 (2) (1978) 282–290. `[doi:10.1137/0715019](http://dx.doi.org/10.1137/0715019)` . [28] D. A. Dunavant, High degree efficient symmetrical Gaussian quadrature rules for the triangle, International Journal for Numerical Methods in Engineering 21 (6) (1985) 1129–1148. `[doi:10.1002/nme.1620210612](http://dx.doi.org/10.1002/nme.1620210612)` . [29] S. Wandzurat, H. Xiao, Symmetric quadrature rules on a triangle, Comput ers & Mathematics with Applications 45 (12) (2003) 1829–1840. `[doi:10.1016/](http://dx.doi.org/10.1016/S0898-1221%0x2803%0x2990004-6)` `[S0898-1221(03)90004-6](http://dx.doi.org/10.1016/S0898-1221%0x2803%0x2990004-6)` . [30] M. A. Taylor, B. A. Wingate, L. P. Bos, A Cardinal Function Algorithm for Com puting Multivariate Quadrature Points, SIAM Journal on Numerical Analysis 45 (1) (2007) 193–205. `[doi:10.1137/050625801](http://dx.doi.org/10.1137/050625801)` . [31] L. Zhang, T. Cui, H. Liu, A set of symmetric quadrature rules on triangles and tetrahedra, Journal of Computational Mathematics 27 (2009) 89–96. `[doi:10.2307/](http://dx.doi.org/10.2307/43693493)` `[43693493](http://dx.doi.org/10.2307/43693493)` . [32] F. Witherden, P. Vincent, On the identification of symmetric quadrature rules for finite element methods, Computers & Mathematics with Applications 69 (10) (2015) 1232–1241. `[doi:10.1016/J.CAMWA.2015.03.017](http://dx.doi.org/10.1016/J.CAMWA.2015.03.017)` . [33] E. Novak, K. Ritter, High dimensional integration of smooth functions over cubes, Numerische Mathematik 75 (1) (1996) 79–97. `[doi:10.1007/s002110050231](http://dx.doi.org/10.1007/s002110050231)` . [34] L. Trefethen, Is Gauss quadrature better than Clenshaw–Curtis?, SIAM review 50 (1) (2008) 67–87. `[doi:10.1137/060659831](http://dx.doi.org/10.1137/060659831)` . [35] S. Xiang, F. Bornemann, On the Convergence Rates of Gauss and Clenshaw–Curtis Quadrature for Functions of Limited Regularity, SIAM Journal on Numerical Analysis 50 (5) (2012) 2581–2587. `[doi:10.1137/120869845](http://dx.doi.org/10.1137/120869845)` . [36] A. D¨uster, J. Parvizian, Z. Yang, E. Rank, The finite cell method for three dimensional problems of solid mechanics, Computer Methods in Applied Mechanics and Engineering 197 (45-48) (2008) 3768–3782. `[doi:10.1016/j.cma.2008.02.036](http://dx.doi.org/10.1016/j.cma.2008.02.036)` . [37] Z. Yang, M. Ruess, S. Kollmannsberger, A. D¨uster, E. Rank, An efficient integration technique for the voxel-based finite cell method, International Journal for Numerical Methods in Engineering 91 (5) (2012) 457–471. `[doi:10.1002/nme.4269](http://dx.doi.org/10.1002/nme.4269)` . [38] A. Abedian, J. Parvizian, A. D¨uster, H. Khademyzadeh, E. Rank, Performance of different integration schemes in facing discontinuities in the finite cell method, International Journal of Computational Methods 10 (03). `[doi:10.1142/](http://dx.doi.org/10.1142/S0219876213500023)` `[S0219876213500023](http://dx.doi.org/10.1142/S0219876213500023)` . 20 [39] M. Dauge, A. D¨uster, E. Rank, Theoretical and Numerical Investigation of the Finite Cell Method, Journal of Scientific Computing 65 (3) (2015) 1039–1064. `[doi:10.](http://dx.doi.org/10.1007/s10915-015-9997-3)` `[1007/s10915-015-9997-3](http://dx.doi.org/10.1007/s10915-015-9997-3)` . [40] M. Kronbichler, K. Kormann, Fast matrix-free evaluation of discontinuous Galerkin finite element operators (2017). `[arXiv:1711.03590](http://arxiv.org/abs/1711.03590)` . [41] J. Vondˇrejc, J. Zeman, I. Marek, An FFT-based Galerkin method for homogenization of periodic media, Computers & Mathematics with Applications 68 (3) (2014) 156– 173. `[doi:10.1016/j.camwa.2014.05.014](http://dx.doi.org/10.1016/j.camwa.2014.05.014)` . [42] M. Schneider, D. Merkert, M. Kabel, FFT-based homogenization for microstruc tures discretized by linear hexahedral elements, International Journal for Numerical Methods in Engineering 109 (10) (2017) 1461–1489. `[doi:10.1002/nme.5336](http://dx.doi.org/10.1002/nme.5336)` . [43] A. Ibrahimbegovi´c, R. Niekamp, C. Kassiotis, D. Markoviˇc, H. G. Matthies, Code coupling strategy for efficient development of computer software in multiscale and multiphysics nonlinear evolution problems in computational mechanics, Advances in Engineering Software 72 (2014) 8–17. `[doi:10.1016/j.advengsoft.2013.06.014](http://dx.doi.org/10.1016/j.advengsoft.2013.06.014)` . [44] K. Matouˇs, M. G. D. Geers, V. G. Kouznetsova, A. Gillman, A review of predictive nonlinear theories for multiscale modeling of heterogeneous materials, Journal of Computational Physics 330 (2016) 192–220. `[doi:10.1016/j.jcp.2016.10.070](http://dx.doi.org/10.1016/j.jcp.2016.10.070)` . [45] P. Kanout´e, D. P. Boso, J. L. Chaboche, B. A. Schrefler, Multiscale Methods for Composites: A Review, Archives of Computational Methods in Engineering 16 (1) (2009) 31–75. `[doi:10.1007/s11831-008-9028-8](http://dx.doi.org/10.1007/s11831-008-9028-8)` . [46] A. Abdulle, W. E, B. Engquist, E. Vanden-Eijnden, The heterogeneous multiscale method, Acta Numerica 21 (2012) 1–87. `[doi:10.1017/S0962492912000025](http://dx.doi.org/10.1017/S0962492912000025)` . [47] F. S. G¨ok¨uz¨um, M.-A. Keip, An Algorithmically Consistent Macroscopic Tangent Operator for FFT-based Computational Homogenization, International Journal for Numerical Methods in Engineering `[doi:10.1002/nme.5627](http://dx.doi.org/10.1002/nme.5627)` . [48] O. Sigmund, K. Maute, Topology optimization approaches: A comparative review, Structural and Multidisciplinary Optimization 48 (6) (2013) 1031–1055. `[doi:10.](http://dx.doi.org/10.1007/s00158-013-0978-6)` `[1007/s00158-013-0978-6](http://dx.doi.org/10.1007/s00158-013-0978-6)` . [49] O. G. Ernst, E. Ullmann, Stochastic Galerkin Matrices, SIAM Journal on Matrix Analysis and Applications 31 (4) (2010) 1848–1872. `[doi:10.1137/080742282](http://dx.doi.org/10.1137/080742282)` . [50] H. G. Matthies, A. Keese, Galerkin methods for linear and nonlinear elliptic stochas tic partial differential equations, Computer Methods in Applied Mechanics and Engineering 194 (12-16) (2005) 1295–1331. `[doi:10.1016/j.cma.2004.05.027](http://dx.doi.org/10.1016/j.cma.2004.05.027)` . [51] A. M. Stuart, Inverse problems: A Bayesian perspective, Acta Numerica 19 (2010) 451–559. `[doi:10.1017/S0962492910000061](http://dx.doi.org/10.1017/S0962492910000061)` . [52] J. Vondˇrejc, H. G. Matthies, Accurate computation of conditional expectation for highly non-linear problems (2019). `[arXiv:1806.03234](http://arxiv.org/abs/1806.03234)` . 21 [53] A. Abedian, J. Parvizian, A. D¨uster, E. Rank, The finite cell method for the _J_ <sup>2</sup> flow theory of plasticity, Finite Elements in Analysis and Design 69 (2013) 37–47. `[doi:10.1016/j.finel.2013.01.006](http://dx.doi.org/10.1016/j.finel.2013.01.006)` . [54] N. Fehn, W. A. Wall, M. Kronbichler, Robust and efficient discontinuous Galerkin methods for under-resolved turbulent incompressible flows, Journal of Computational Physics 372 (2018) 667–693. `[doi:10.1016/J.JCP.2018.06.037](http://dx.doi.org/10.1016/J.JCP.2018.06.037)` . [55] M. S. Alnæs, J. Blechta, J. Hake, A. Johansson, B. Kehlet, A. Logg, C. Richardson, J. Ring, M. E. Rognes, G. N. Wells, The FEniCS Project Version 1.5, Archive of Numerical Software 3 (100) (2015) 9–23. `[doi:10.11588/ANS.2015.100.20553](http://dx.doi.org/10.11588/ANS.2015.100.20553)` . [56] A. Logg, G. N. Wells, DOLFIN: Automated Finite Element Computing, ACM Trans actions on Mathematical Software 37 (2). `[doi:10.1145/1731022.1731030](http://dx.doi.org/10.1145/1731022.1731030)` . [57] A. Logg, Automating the Finite Element Method, Archives of Computational Meth ods in Engineering 14 (2) (2007) 93–138. `[doi:10.1007/s11831-007-9003-9](http://dx.doi.org/10.1007/s11831-007-9003-9)` . [58] K. B. Ølgaard, G. N. Wells, Optimizations for quadrature representations of finite element tensors through automated code generation, ACM Transactions on Mathematical Software 37 (1) (2010) 1–23. `[doi:10.1145/1644001.1644009](http://dx.doi.org/10.1145/1644001.1644009)` . 22

섹션 본문 110문단 · 32,022자

(제목 없음)

1This paper is focused on the double-grid integration with interpolation-projection (DoGIP), which is a novel matrix-free discretisation method of variational formulations introduced for Fourier-Galerkin approximation. Here, it is described as a more general approach with an application to the finite element method (FEM) on simplexes. The approach is based on treating the trial and a test function in variational formulation together, which leads to the decomposition of a linear system into interpolation and (block) diagonal matrices. It usually leads to reduced memory demands, especially for higher-order basis functions, but with higher computational requirements. The numerical examples are studied here for two variational formulations: weighted projection and scalar elliptic problem modelling, e.g. diffusion or stationary heat transfer. This paper also opens a room for further investigation, which is discussed in the conclusion.

2Introduction of the DoGIP idea As a model problem, an abstract variational setting discretised with Galerkin approximation is assumed: find trial function u from some finite dimensional vector space V such that

3This problem, which naturally arises in many engineering applications, is defined via a positive definite continuous bilinear form a : V × V → R and linear functional F : V → R representing a source term. The solution, which is expressed as a linear combination of basis functions u(x) = V i=1 u i φ i (x) with V = dim V, is determined by the vector of coefficients u = (u i ) V i=1 that can be calculated from a corresponding linear system

4The properties of the matrix A are fundamental for the decision about a linear solver and consequently for computational and memory requirements. The FEM builds on the basis functions with a local support, which results in a sparse matrix.

5The idea in the DoGIP approach, first used for the spectral Fourier-Galerkin method [2,1], is based on expressing the trial and the test function as a product on a double-grid space, i.e. uv ∈ W or ∇u ∇v in the case of the weighted projection and the scalar elliptic equation with differential operator. Particularly, the double-grid space W is composed of the polynomials with the doubled order.

6The DoGIP approach allows to decompose the linear system

7Here, the diagonal (or block-diagonal) matrix A DoGIP expresses the weights obtained by integration of material-like coefficients with respect to a basis of the double-grid space. Despite the bigger double-grid size W > V , the memory requirements to store A DoGIP are typically reduced compared to the original matrix A. Usually it is impossible to fully avoid assembling matrix A because of the high number of integration points for general material coefficients, whose evaluation can be also computationally demanding.

8Matrices B, C, that can equal one another, represent interpolation-projection operators from the original to the double-grid space and depend on the approximation spaces only. Those matrices are not stored because the required matrix-vector multiplication can be substituted with an efficient numerical routine. Particularly, the interpolation-projection matrix in the Fourier-Galerkin method is evaluated very efficiently with the fast Fourier transform using O(N log N ) operations [2,3]. In case of FEM, only the interpolation on the reference element is needed.

9Alternative approaches. There are also many other matrix-free evaluations of discretised differential operators [4,5,6,7,8], which often incorporate orthogonal basis functions within the spectral methods. Instead of the assembling of the system matrix A, these approaches typically rely on the evaluation of integrals on the fly by fast sum factorisation techniques over numerical integration points. It can be demonstrated for the generalised Laplacian with positive definite material coefficients A, i.e. a(u, v) = T T A(x)∇u(x) · ∇v(x) dx expressed over elements T of a FEM mesh. This formulation invokes the element-wise evaluation of the system matrix-vector product Au = T P * T A T P T u, where the operator P T extracts the local degrees of freedom u T from the global vector u. Then the local matrix-vector multiplication A T u T is obtained sequentially by evaluating the integral over integration points x q with corresponding weights w q , i.e.

10where the quantities with the hat · are expressed on the reference element. The matrixvector product is thus composed of the interpolation of the approximate solution over quadrature points, evaluating Jacobians, material coefficients, integration weights, and finally the adjoint interpolation.

11Discretisation. The effectiveness of these approaches depends mainly on the choice of basis functions and of integration points. A traditional approach builds on the Lagrange basis functions, which can be efficiently combined with a special integration technique. Particularly the location of the Lagrange basis at the Gauss-Lobatto quadrature points can significantly reduce the computational cost required for the interpolation [5,8,9]. The spectral approaches [10,11,12] build on orthogonal systems of basis functions, which are generally defined on regular domains, e.g. squares or cubes. The application of the spectral methods to complex geometries [4] can utilise a mapping to a regular domain or a multipatch idea leading to the so-called spectral element method [8,13,14,15] or fictitious domain methods, see [6,16,17] for a comparison.

12A general idea that can significantly reduce the computational costs incorporates the tensor product structure of the basis functions φ(x) = d i=1 φ(x i ), which allows to apply interpolation or differentiation operators separately in each direction. Less attention has been given to the fast evaluation strategies and matrix-free approaches on simplexes (e.g. triangles and tetrahedra) because the crucial tensor product structure is more difficult to apply as it requires an additional transform from the simplex to the d-dimensional cube [18,19]. The matrix-free approaches have to be also accompanied with a suitable iterative solver [20,21,22]. Particularly, an effective parallel implementation is usually required [23].

13Numerical quadrature. Here, integration schemes, over which the matrix-free approaches interpolate, are discussed. Typically special quadrature can be utilised when an additional information about the integrand is provided. Particularly, the Gauss-Legendre integration with k points can be used to exactly integrate a polynomial integrand of order up to 2k − 1 in 1D; the corresponding tensor product integration can be used in higher dimensions. As a general rule, a quadrature is chosen in order to keep the approximation order of the discretised variational formulations. Namely the consistency error in the first Strang's lemma has to be controlled, which typically assumes a smooth integrand, see [24] and [25,Section 26].

14The development of an integration rule on the simplexes is more complicated and has been studied in many publications, e.g. in [26,27,28,29,30,31,32]. The Gaussian tensor product integration rule that is degenerated to the simplex leads to the asymmetric distribution of the points with clustering of the points close to one of the vertices. Although those rules can be applicable to polynomial integrands, a general quadrature requires that (i) points are symmetrically distributed inside of the domain, (ii) integration weights are all positive, and (iii) the truncation error is minimised. A general approach to compute quadrature points and weights with the required properties can be found in the recent publication [32], which also provides an improvement of the previous integration rules [28,31]. However, an optimal quadrature with respect to the position and the number of the integration points remains an open question.

15Although the above discussed quadratures are exact for the polynomials up to some order, they also perform well with general smooth integrands [33,34,35]. However, their performance is poor for functions with singularities or discontinuities, which occur naturally when the material coefficients under the integral are heterogeneous or when a finite element intersects the boundary of the computational domain. Those problems appear in the spectral element [4,17] or in the finite cell method [36,37,38] as they avoid the error-prone mesh generation of complicated domains. Therefore the adaptive integration of rough integrands is needed and can be provided by e.g. the local refinement strategy, which allow to keep the exponential convergence [36,37,38]. Nevertheless, the higher number of integration points is required.

16Applicability of the DoGIP. This paper shows that DoGIP is a promising matrixfree approach with various applications. The method benefits from the fact that only the matrix A DoGIP is stored, which can significantly reduce memory requirements especially for higher order basis functions, and that the interpolation-projection matrix B is independent of material coefficients or mesh distortion, which allows an optimisation for fast matrixvector multiplication.

17The method is suitable for discretisation methods with higher order polynomial approximations (p-version of FEM [6], spectral methods [11,12], finite cell method [39], discontinuous Galerkin methods [40], etc.). Special benefits can be obtained for variational problems when the system matrix has to be solved many times such as in numerical homogenisation [41,42], multiscale problems [43,44,45,46,47], optimisation [48], uncertainty quantification [49,50], inverse problems [51,52], time-dependent problems [53], or fluid dynamics [7,54].

18Outline of the paper In section 2, the methodology of the DoGIP is described for two problems: a weighted projection and a scalar elliptic problem modelling diffusion, stationary heat transfer, etc. Then in section 3, the numerical results are presented along with the discussion of the performance of the DoGIP with respect to the existing matrixfree approaches.

19Notation In the following text, L 2 (Ω) denotes the space of square Lebesgue-integrable functions f : Ω → R, where the computational domain Ω is a bounded open set in R d (d = 2 or 3). The vector-valued and matrix-valued variants of L 2 (Ω) are denoted as L 2 (Ω; R d ) and L 2 (Ω; R d×d ). A Sobolev space H 1 (Ω) is a subspace of L 2 (Ω) with gradients in L 2 (Ω; R d ). Vector and matrix-valued functions are denoted in bold with lower-case u and upper-case letters A. The vectors and matrices storing the coefficients of the discretised vectors are depicted with boldface upright characters u, A.

20For vectors u, v ∈ R d and matrices A, B ∈ R d×d , we define the inner product for vectors u · v ∈ R and matrices A : B ∈ R, and the outer product of two vectors u ⊗ v ∈ R d×d as

212 DoGIP within the finite element method

FEM on simplexes with Lagrange basis functions

22The model problem is considered on an FEM mesh M(Ω) composed of simplexes (e.g. triangles or tetrahedra) with standard properties (non-overlapping elements, no hanging nodes, regular shapes). Vector N denotes a discretisation parameter. The FEM spaces involve polynomials of order k (denoting the highest possible order)

23on each element. Depending on the trial and test spaces (e.g. H 1 (Ω), L 2 (Ω), etc.), the FEM spaces differ in the continuity requirement on the facets 1 of the elements. Here, we take into account continuous and discontinuous finite element spaces

24Each approximation function v ∈ C N ,k can be expressed as a linear combination

25of the Lagrange basis functions (shape functions) φ i : Ω → R. The coefficients v i , as the degrees of freedom, are the function values at the nodal points

26. Those points are suitable for the interpolation of functions, thanks to the Dirac delta property of basis functions

27A technical problem arises in the case of discontinuous approximation space D N ,k because the function values have jumps at the boundary of the elements. Therefore, the function values of v ∈ D N ,k at x i D N ,k are understood as a continuous extension from the element supporting the corresponding i-th basis function, i.e.

28In the latter text, the function values at the nodal points will be used in the above sense. Reference element. It is assumed that all of the elements T are derived from a reference elementT using affine mapping F T (x) :T → T defined as F T (x) = R Tx + S T with invertible matrices R T ∈ R d×d and vectors S T ∈ R d . Consistently the objects on a reference element are denoted with a hat. Global basis functions φ i : Ω → R of a FEM space V are derived from a reference shape functionsφˆi :T → R by a composition with a mapping F T , i.e. φ i (x) =φˆi(F −1 T (x)) for x ∈ T . The relation between localî and global index i = l T (î) is given with an injective map

29The derivative of basis functions is related with the formula obtained by a chain rule

30Later on we also use a discretisation operator D V : V → R V that assigns to each approximation function from space V a corresponding vector of coefficients, i.e.

31with vectors denoted with upright sans-serif font. Note that it is a one-toone mapping between the space of functions V and the space of coefficients R V . Similarly we will also use the local degrees of freedom on an element T as

Weighted projection

32Here, the DoGIP is introduced for the problem of the weighted projection.

33Definition 1 (Weighted projection). Let V be a finite dimensional approximation space, m : Ω → R a uniformly positive integrable function representing e.g. a material field, and f ∈ L 2 (Ω) a function representing e.g. a source term. Then we define the bilinear form a : V × V → R and the linear functional F : V → R as

34Then the weighted projection represents the problem: Find trial function u ∈ V such that

35In the standard approach, the solution of weighted projection

36expressed as a linear combination with respect to the basis of the space V. Then, the vector of coefficients u = (u i ) V i=1 is determined from the following square linear system

37The alternative DoGIP approach relies on the incorporation of the double grid space.

38Lemma 2 (Double-grid space). Let the functions u, v be from a space V = C N ,k and let W = C N ,2k . Then

39Proof. The product uv of two FEM functions is a continuous function and the polynomial order on each element is doubled.

40Theorem 3 (DoGIP for weighted projection). Let V = C N ,k be an approximation space and W = C N ,2k be a double-grid space. Then the standard linear system matrix (3) can be decomposed into

41Remark 4. In the case of the FEM space V = C N ,k composed of the continuous functions, the double-grid space is of the same type but with the doubled polynomial order W = C N ,2k .

42Proof. Since both trial u and test function v belong to the approximation space V, its product uv belongs to W and can be represented with respect to the Lagrangian basis of W as

43The substitution of this formula into the bilinear form (2) reveals an effective evaluation with respect to the basis of W

44from R W store the coefficients of functions u and v at DOFs of W. Here one cannot derive directly a linear system because the test vectors v W do not span the whole space R W . Therefore we express the coefficients u W and v W in terms of DOFs of the original space, i.e.

45at the DOFs of the double-grid space W, which reveals the interpolation-projection matrix B ∈ R W ×V as

46The final formula in Theorem 3 is obtained by a substitution of the interpolation-projection matrix B.

47A special version of the DoGIP is obtained when the decomposition is provided on a level of elements.

48Theorem 5 (Element-wise DoGIP for weighted projection). Let V = C N ,k be an approximation space and W = C N ,2k be a double-grid space. Then the quadratic form corresponding to the system matrix (7) can be decomposed as

49where

50stores the local DOFs on the element T . The arrays A T ∈ R W T ×W T andB ∈ R W T ×V T have the following components

51Proof. The proof is analogical to the one of the previous theorem. The main idea is to split the integral over domain Ω to integrals over elements, i.e.

52where the integrals are nonzero only when the basis functions φ j W have support on T . Moreover, the interpolation

53which is expressed with the reference basis, has nonzero coefficients only if x i W is contained in the support of φ j V . The substitution of the interpolation into (5) and reparametrisation of indices i, j, k, l to local indices leads to the formulas stated in the theorem.

Scalar elliptic equation

54Here, the DoGIP is described for a scalar elliptic equation modelling, e.g. diffusion or stationary heat transfer.

55Definition 6 (Scalar elliptic problem). Let V be a finite dimensional approximation space, f ∈ L 2 (Ω) be a function representing e.g. a source term, and M : Ω → R d×d be an integrable, uniformly positive definite, and bounded matrix function, i.e. ∃c, C ∈ R such that 0 < c ≤ M (x)y · y y ≤ C ∀x ∈ Ω and ∀y ∈ R d .

56Then we define bilinear form a : V × V → R and linear functional F : V → R as

57The Galerkin approximation of the scalar elliptic problem stands for: find trial function u ∈ V such that

58Analogically to the case in the previous section, the standard approach is based on the expression of the approximate solution u = V i=1 u i φ i V with V = dim V as a linear combination with respect to the basis of the space V. The vector of coefficients u = (u i ) V i=1 is determined from the following square linear system

59The DoGIP approach incorporates the double-grid space described in the following lemma.

60Lemma 7 (Double-grid space). Let the functions u, v be from the space V = C N ,k and let W = D N ,2k−2 be the corresponding double-grid space. Then

61Proof. The derivative of a function reduces the polynomial order by one while the continuity of the functions over facets (edges in 2D or faces in 3D) is lost.

62Analogically to the weighted projection problem, there are two variants of the DoGIP approach: the global and the element-wise one. Since the double-grid space is discontinuous, the global variant has benefit only in the special cases of regular grid and isotropic materials. Both variants are presented in the following two theorems.

63Theorem 8 (DoGIP for elliptic problem). Let V = C N ,k be an approximation space and W = D N ,2k−2 be a double-grid space. Then the standard linear system matrix (7) can be decomposed into

64where V = dim V, W = dim W, and the matrices A DoGIP ∈ R d×d×W ×W and B ∈ R d×W ×V have the following components

65Proof. Now we present a method based on the double-grid quadrature and interpolation operator. Albeit both the trial u and the test function v belong to the approximation space V, we express them on the double-grid space W d×d as

66The substitution of this formula in (6) already reveals an effective evaluation of the bilinear form

67∈ R d×W stores the coefficients on the double-grid space, the integral defines the coefficient of the block-diagonal matrix A DoGIP , and the matrix vector multiplication is understood as Here, we cannot derive directly a linear system because the test vectors v do not span the whole space R d×W . Therefore, we need an interpolation-projection operator between V and W d , or rather between their corresponding spaces of coefficients D V [V] and D W [W] d . The derivation of the matrix is based on the evaluation of the gradient of a function

68at the degrees of freedom of the double grid space, i.e. for x = x j W . It can be represented with an interpolation-projection operator B ∈ R d×W ×V as

69for s ∈ {1, . . . , d} and j ∈ {1, . . . , W }.

70To summarise, the bilinear form can be expressed using different vectors of coefficients

71where the B * is the adjoint operator of B. Since the last term holds for arbitrary vectors u V and v V , the required decomposition is established.

72The special case of the theorem arises for isotropic material coefficients: Corollary 9. Assume that M (x) = m(x)I is proportional to the identity matrix I with some uniformly positive and bounded function m : Ω → R. Then, the coefficients of the block-diagonal matrix from previous theorem simplify to

73In particular for d = 2, the matrix A DoGIP can be expressed as block-diagonal operator

74. Theorem 10 (Element-wise DoGIP for the elliptic problem). Let V = C N ,k be an approximation space and W = D N ,k be a double-grid space. Then the quadratic form corresponding to the linear system (7) can be decomposed as

75where u T,l = u l T (l) , v T,k = v l T (k) stores the local DOFs on the element T . The quadratic forms on the element level are evaluated aŝ

76where the arrays A DoGIP

77Proof. Now we present the method based on the double-grid quadrature and interpolation operators. Albeit both the trial u and the test function v belong to the approximation space V, we express their tensor product u ⊗ v on the double-grid space W d×d as

78The substitution of this formula into the bilinear form reveals an effective evaluation

79which is written here as a weighted scalar product between arrays ∇u(x j W )

80. Now, these components will be expressed in the terms of nodal values u k = v(x k V ) of the space V. The formula is based on the interpolation of the gradient of a function u(x) = V k=1 u k φ k V (x) at the DOFs of the double grid space W (i.e. at x = x j W with basis φ j W supported at the element T )

81where the derivatives of the basis functions are expressed with respect to the reference basis function, see (1), andx j

82The substitution into the integral provides the DoGIP evaluation over the finite elements

83The interpolation coefficientsφ k V (x i W ) as well as the integral over T are nonzero only if the support of φ k V and φ i W is on the same element T . Therefore, we can reparametrise the sums over i, j, k, and l to local indices in order to obtain the final formula stated in the theorem.

84The actual matrix-vector multiplication can be provided by the following Algorithm 1.

Algorithm 1 Matrix-vector multiplication for element-wise DoGIP

85allocate v of size like u (N, N, N ) corresponding to the number of elements in each spatial direction; for simplicity the mesh will be denoted as M.

86Now the memory and computational demands are discussed. To store sparse matrices obtained from FEM formulations, the compressed sparse row (CSR) format is considered with memory requirements

87where nnz is a number of non-zero elements and nrows number of rows. This format requires to store all the nonzero elements, all the corresponding column indices in each row, and the number of elements in each row. It is also noted that the values below the threshold 10 −14 are consistently considered as zeros and therefore do not affect the memory requirements.

88The following ratio provides

89between DoGIP and standard approach, where nnz A DoGIP T are non-zero elements of dense matrices A DoGIP T for each element T , and dim M corresponds to the number of elements (2N 2 in 2D and 6N 3 in 3D).

90The computational requirements are directed by the number of operations (real multiplications) for matrix-vector multiplication which is directed by the number of nonzero elements of the system matrix A or item-by-item multiplication with matrixB * A DoGIP TB for each element T of the mesh M. The following ratio provides

91between DoGIP and standard FEM. The multiplication in DoGIP can benefit from the regular structure with multiplication withB that could be optimised for a fast evaluation. Additional costs that are attributed to the multiplication with sparse matrices are not considered here.

Weighted projection

92In the weighted projection, the basis space V is considered to be the space of continuous piecewise-polynomials C N ,k . Then the double-grid space can be considered again as a space of continuous piecewise-polynomials but with the doubled polynomial order, i.e.

93In the numerical test summarised in Tables 1 and 2, the number of elements N (or the characteristic mesh size 1/N ) and polynomial order k have been considered as parameters.

94They are chosen such that they provide the same dimension of the original space V. One Table 1: Comparison of the DoGIP and standard approach for weighted projection in 2D with dim V = 1, 442, 401 for all cases in this table. Here 1/N is the characteristic mesh size, k is a polynomial order, and memory and computational efficiency are defined in (9) and (10 directly observes that the sparsity of the original systems A is significantly reduced with the growing polynomial order k. On the other side, the memory requirements to store the DoGIP matrix A DoGIP are reduced compared to the conventional approach, which makes the DoGIP approach more efficient, especially for higher order polynomials. Particularly, the memory demands for DoGIP in 2D are always smaller (regardless the polynomial order) than for the standard approach with linear polynomials; in 3D it is valid for DoGIP with polynomial order two and higher. The memory effectiveness reaches the value of 0.04 in 2D for k = 8 and the value of 0.10 in 3D for k = 4. On the other side the computational demands are increased for the DoGIP approach but decrease with increasing polynomial order k. The values of computational efficiency, see (10), reach 2.81 for k = 8 in 2D and 4.25 for k = 4 in 3D.

95Note that the memory requirements for the DoGIP approach decrease with increasing polynomial order. It can be explained by the fact that the double grid space is continuous with overlapping degrees of freedom at the interface of the elements, but the DoGIP approach stores the matrices A DoGIP T element-wise. Therefore better results can be achieved for a global variant stated in Theorem 8 because the continuity of the double grid space can be incorporated. This could reduce the memory and computationally requirements for smaller polynomial orders.

Scalar elliptic equation

96In the case of scalar elliptic equation, the initial approximation space is again considered as a space of continuous piece-wise polynomials; however, the double-grid space consists of discontinuous piece-wise polynomials with reduced polynomial order 2(k − 1) because of the gradient, i.e. The numerical results are summarised in Tables 3 and 4 again for two parameters (the characteristic mesh size 1/N and polynomial order k), which are chosen in a way to provide the same dimension of the original space V. Contrary to the weighted projection in the previous subsection, the size of the double-grid space W and thus the size of blockdiagonal matrix A DoGIP grow with polynomial order k; however, the rate is slower than the memory requirements on the original matrix A, which can be seen from the decreasing values of memory effectiveness. Moreover, the memory requirements for DoGIP in 2D are always smaller (regardless the polynomial order) than for the standard approach with linear polynomials. In 3D it is not observed any more, however, the DoGIP is always more memory efficient than the standard approach with polynomial order three. Particularly the memory effectiveness reaches 0.12 for k = 8 in 2D and 0.45 for k = 4 in 3D. Still the memory requirements fail to be beneficial for polynomial order 1 and 2 in 3D. The memory requirements grow with polynomial order k reaching the factor of 10.

Comparison to other matrix-free approaches

97In this section, the DoGIP approach that decomposes the system matrix into the interpolation and element-wise multiplication is compared to the existing matrix-free approaches [4,5,6,7,8]. Their difference lies in the interpolation operator. The conventional matrixfree approaches interpolate over integration points while the DoGIP approach interpolates the trial functions on the double-grid space, which is spanned by the product of the approximation and the test space (possibly with a differential operator).

98Therefore the DoGIP approach is beneficial whenever the dimension of the double grid space W is smaller than the number of integration points. In Figure 2, the dimensions of the approximation and the double-grid space are depicted for different polynomial order k along with the number of integration points of the Gauss type. In the case of weighted projection, the product of the trial and the test function is a polynomial of the doubled order, i.e. 2k. It allows to choose a numerical integration, which is exact for a constant material coefficient. Following [32], the number of quadrature points is significantly lower than the dimension of the double grid space W.

99For sufficiently smooth material coefficients, the Gauss-type integration can still integrate the integrands accurately, however it may require to use higher order integration schemes. For the integration that is exact for polynomials up to order 3k, an efficient numerical integration on the simplexes can be chosen especially for lower order polynomials; higher order integration rules are more difficult to compute. As an example, the number of integration points for the scheme in [14], which is implemented in the software FEniCS for higher order polynomials, is comparable to the dimension of the double grid space in 2D but higher in 3D.

100A totally different situation arises for nonsmooth integrands, which calls for some alternatives to Gauss-like integration rules. Jumps in the functions naturally occur, e.g. when the material coefficients are heterogeneous or when the crack path (or the boundary of the computational domain) intersects a finite element. In those situations a special integration technique has to be used as in the finite cell method [36,37,38] incorporating an adaptive approach to decompose the element into subelements, which are integrated separately. As these techniques require a significantly higher number of integration points than Gauss-like methods, the DoGIP approach provides an advantage compared to the conventional matrix-free approaches.

Conclusion and discussion

101In this paper, the double-grid integration with interpolation-projection (DoGIP) is introduced and compared to the standard Galerkin discretisation of variational formulations. This novel matrix-free discretisation approach introduced for the Fourier-Galerkin method in [1,2] is here recognised to be a more general framework. Here, it is investigated within the finite element method (FEM) on simplexes for the weighted projection and the scalar elliptic equation.

102The main results and observations are summarised: The values nip(2k) and nip(3k) denote the number of integration points for a rule that can integrate exactly polynomials of order 2k or 3k, resp. The rule W&V (Witherden & Vincent) denotes for a regular integration rule presented in [32]. The integration rule implemented in FEniCS [56,57,58] differs for higher polynomial orders as it incorporates the collapsed integration rule presented in [14] by Karniadakis and Sherwin.

103• The DoGIP method is based on a decomposition of the original system matrix into a (block) diagonal A DoGIP and an interpolation-projection matrixB evaluated only on a reference element; interpolation is thus independent of the material coefficients or mesh distortions.

104• The DoGIP approach is typically memory efficient compared to the original system, however the computational demands for FEM on simplexes are higher.

105• The effectiveness of the traditional matrix-free approaches incorporating interpolation over quadrature points depends on the required number of integration points. The DoGIP splits the quadrature and interpolation into separate tasks. Therefore it is suitable for general problems when a higher number of integration points have to be used, e.g. for material coefficients that are discontinuous over elements. For problems with constant or smooth material coefficients, the standard matrix-free approaches remain the first option.

106The proposed DoGIP approach has several possibilities for future research, which is discussed here:

107• Reducing the complexity of the interpolation-projection operators B by a special choice of the basis functions for a primal as well as a double-grid space.

108• Application of the method to different discretisations and approximations such as FEM on quadrilaterals, spectral methods, or wavelets.

109• Effective evaluation of interpolation-projection operator B using e.g. low-rank approximations.

110• Investigation of special linear solvers such as the multigrid that could fit to the structure of the DoGIP systems.

참고문헌 62건

  1. A SET OF SYMMETRIC QUADRATURE RULES ON TRIANGLES AND TETRAHEDRA 2009
  2. VARIATIONAL CRIMES IN THE FINITE ELEMENT METHOD Elsevier eBooks · Elsevier BV · 1972 10.1016/b978-0-12-068650-6.50030-7
  3. An efficient integration technique for the voxel‐based finite cell method International Journal for Numerical Methods in Engineering · Wiley · 2012 10.1002/nme.4269
  4. Guaranteed upper–lower bounds on homogenized properties by FFT-based Galerkin method Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2015 10.1016/j.cma.2015.09.003
  5. Chebyshev and Fourier Spectral Methods 2001
  6. Numerical analysis of spectral methods theory and applications 1977 10.1137/1.9781611970425
  7. High degree efficient symmetrical Gaussian quadrature rules for the triangle International Journal for Numerical Methods in Engineering · Wiley · 1985 10.1002/nme.1620210612
  8. Multiscale Methods for Composites: A Review Archives of Computational Methods in Engineering · Springer Science+Business Media · 2009 10.1007/s11831-008-9028-8
  9. Spectral methods on triangles and other domains Journal of Scientific Computing · Springer Science+Business Media · 1991 10.1007/bf01060030
  10. High-Order Methods for Incompressible Fluid Flow Applied Mechanics Reviews · American Society of Mechanical Engineers · 2003 10.1115/1.1566402
  11. Optimizations for quadrature representations of finite element tensors through automated code generation ACM Transactions on Mathematical Software · Association for Computing Machinery · 2010 10.1145/1644001.1644009
  12. Spectral element-Fourier methods for incompressible turbulent flows Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1990 10.1016/0045-7825(90)90041-j
  13. Spectral methods for problems in complex geometries Journal of Computational Physics · Elsevier BV · 1980 10.1016/0021-9991(80)90005-4
  14. An FFT-based Galerkin method for homogenization of periodic media Computers & Mathematics with Applications · Elsevier BV · 2014 10.1016/j.camwa.2014.05.014
  15. Spectral Element Methods on Unstructured Meshes: Comparisons and Recent Advances Journal of Scientific Computing · Springer Science+Business Media · 2006 10.1007/s10915-005-9048-6
  16. High dimensional integration of smooth functions over cubes Numerische Mathematik · Springer Science+Business Media · 1996 10.1007/s002110050231
  17. A scalable, matrix-free multigrid preconditioner for finite element discretizations of heterogeneous Stokes flow Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2015 10.1016/j.cma.2015.03.014
  18. Symmetric quadrature rules on a triangle Computers & Mathematics with Applications · Elsevier BV · 2003 10.1016/s0898-1221(03)90004-6
  19. A Fast, Matrix-free Implicit Method for Compressible Flows on Unstructured Grids Journal of Computational Physics · Elsevier BV · 1998 10.1006/jcph.1998.6076
  20. A Cardinal Function Algorithm for Computing Multivariate Quadrature Points SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2007 10.1137/050625801
  21. A generic interface for parallel cell-based finite element operator application Computers & Fluids · Elsevier BV · 2012 10.1016/j.compfluid.2012.04.012
  22. On the Convergence Rates of Gauss and Clenshaw--Curtis Quadrature for Functions of Limited Regularity SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2012 10.1137/120869845
  23. Spectral Methods: Fundamentals in Single Domains 2006
  24. Is Gauss Quadrature Better than Clenshaw–Curtis? SIAM Review · Society for Industrial and Applied Mathematics · 2008 10.1137/060659831
  25. Code-coupling strategy for efficient development of computer software in multiscale and multiphysics nonlinear evolution problems in computational mechanics Advances in Engineering Software · Elsevier BV · 2013 10.1016/j.advengsoft.2013.06.014
  26. From Electrostatics to Almost Optimal Nodal Sets for Polynomial Interpolation in a Simplex SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1998 10.1137/s003614299630587x
  27. An implicit matrix-free Discontinuous Galerkin solver for viscous and turbulent aerodynamic simulations Computers & Fluids · Elsevier BV · 2011 10.1016/j.compfluid.2011.06.020
  28. Invariant Integration Formulas for the <i>n</i>-Simplex by Combinatorial Methods SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1978 10.1137/0715019
  29. Galerkin methods for linear and nonlinear elliptic stochastic partial differential equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2004 10.1016/j.cma.2004.05.027
  30. The finite cell method for the J2 flow theory of plasticity Finite Elements in Analysis and Design · Elsevier BV · 2013 10.1016/j.finel.2013.01.006
  31. Stochastic Galerkin Matrices SIAM Journal on Matrix Analysis and Applications · Society for Industrial and Applied Mathematics · 2010 10.1137/080742282
  32. The finite cell method for three-dimensional problems of solid mechanics Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2008 10.1016/j.cma.2008.02.036
  33. A new triangular and tetrahedral basis for high‐order (<i>hp</i>) finite element methods International Journal for Numerical Methods in Engineering · Wiley · 1995 10.1002/nme.1620382204
  34. On the identification of symmetric quadrature rules for finite element methods Computers & Mathematics with Applications · Elsevier BV · 2015 10.1016/j.camwa.2015.03.017
  35. Automating the Finite Element Method Archives of Computational Methods in Engineering · Springer Science+Business Media · 2007 10.1007/s11831-007-9003-9
  36. Theoretical and Numerical Investigation of the Finite Cell Method Journal of Scientific Computing · Springer Science+Business Media · 2015 10.1007/s10915-015-9997-3
  37. From h to p efficiently: Implementing finite and spectral/hp element methods to achieve optimal performance for low- and high-order discretisations Journal of Computational Physics · Elsevier BV · 2010 10.1016/j.jcp.2010.03.031
  38. A comparison of fictitious domain methods appropriate for spectral/hp element discretisations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2008 10.1016/j.cma.2007.11.023
  39. PERFORMANCE OF DIFFERENT INTEGRATION SCHEMES IN FACING DISCONTINUITIES IN THE FINITE CELL METHOD International Journal of Computational Methods · World Scientific · 2013 10.1142/s0219876213500023
  40. Symmetric quadrature formulae for simplexes Mathematics of Computation · American Mathematical Society · 1970 10.1090/s0025-5718-1970-0258283-6
  41. DOLFIN ACM Transactions on Mathematical Software · Association for Computing Machinery · 2010 10.1145/1731022.1731030
  42. The heterogeneous multiscale method Acta Numerica · Cambridge University Press · 2012 10.1017/s0962492912000025
  43. From h to p efficiently: Strategy selection for operator evaluation on hexahedral and tetrahedral elements Computers & Fluids · Elsevier BV · 2010 10.1016/j.compfluid.2010.08.012
  44. A parallel matrix-free conservative solution interpolation on unstructured tetrahedral meshes Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2015 10.1016/j.cma.2015.10.012
  45. Inverse problems: A Bayesian perspective Acta Numerica · Cambridge University Press · 2010 10.1017/s0962492910000061
  46. The FEniCS Project Version 1.5 Department of Earth Sciences EPrints Repository · 2015 10.11588/ans.2015.100.20553
  47. Topology optimization approaches Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2013 10.1007/s00158-013-0978-6
  48. Factorizing the factorization – a spectral-element solver for elliptic equations with linear operation count Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.06.012
  49. FFT‐based homogenization for microstructures discretized by linear hexahedral elements International Journal for Numerical Methods in Engineering · Wiley · 2016 10.1002/nme.5336
  50. Double Grid Integration with Projection (DoGIP): Application to numerical homogenization by Fourier‐Galerkin method PAMM · Wiley · 2016 10.1002/pamm.201610269
  51. A review of predictive nonlinear theories for multiscale modeling of heterogeneous materials Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.10.070
  52. An algorithmically consistent macroscopic tangent operator for FFT‐based computational homogenization International Journal for Numerical Methods in Engineering · Wiley · 2017 10.1002/nme.5627
  53. Fast Matrix-Free Evaluation of Discontinuous Galerkin Finite Element Operators ACM Transactions on Mathematical Software · Association for Computing Machinery · 2019 10.1145/3325864
  54. Robust and efficient discontinuous Galerkin methods for under-resolved turbulent incompressible flows Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.06.037
  55. Accurate Computation of Conditional Expectation for Highly Nonlinear Problems SIAM/ASA Journal on Uncertainty Quantification · Society for Industrial and Applied Mathematics · 2019 10.1137/18m1196674
  56. Parameter estimation via conditional expectation: a Bayesian inversion Advanced Modeling and Simulation in Engineering Sciences · Springer Science+Business Media · 2016 10.1186/s40323-016-0075-7
  57. High-Order Methods for Incompressible Fluid Flow Cambridge University Press eBooks · Cambridge University Press · 2002 10.1017/cbo9780511546792
  58. Improved guaranteed computable bounds on homogenized properties of periodic media by the Fourier-Galerkin method with exact integration International Journal for Numerical Methods in Engineering · Wiley · 2015 10.1002/nme.5199
  59. A SET OF SYMMETRIC QUADRATURE RULES ON TRIANGLES AND TETRAHEDRA 计算数学:英文版 · 2009
  60. Spectral/hp Element Methods for Computational Fluid Dynamics Oxford University Press eBooks · Oxford University Press · 2005 10.1093/acprof:oso/9780198528692.001.0001
  61. Spectral Methods Scientific computation · Springer Nature · 2006 10.1007/978-3-540-30726-6
  62. The Mathematical Foundations of the Finite Element Method with Applications to Partial Differential Equations Elsevier eBooks · Elsevier BV · 1972 10.1016/c2013-0-10319-4