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

Numerical quadrature for Gregory quads

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Jun Zhou — Bernoulli Institute, University of Groningen, Nijenborgh 9, 9747 AG, Groningen, the Netherlands
  2. Pieter J. Barendrecht — Department of Mathematics and Computer Science, University of Basel, Spiegelgasse 1, 4051 Basel, Switzerland
  3. Michael Bartoň — Basque Center for Applied Mathematics, Alameda Mazarredo 14, 48009 Bilbao, Spain|||Ikerbasque – Basque Foundation for Sciences, María Díaz de Haro 3, 48013 Bilbao, Basque Country, Spain
  4. Jiří Kosinka — Bernoulli Institute, University of Groningen, Nijenborgh 9, 9747 AG, Groningen, the Netherlands
DOI
10.1016/j.amc.2023.128051
저널
Applied Mathematics and Computation
발행년도
2023
발행기관
Elsevier BV
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.amc.2023.128051
토픽
Tribology and Lubrication Engineering
OpenAlex ID
W4382721357

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

We investigate quadrature rules in the context of quadrilateral Gregory patches, in short Gregory quads. We provide numerical and where possible symbolic quadrature rules for the space spanned by the twenty polynomial/rational functions associated with Gregory quads, as well as the derived spaces including derivatives, products, and products of derivatives of these functions. This opens up the possibility for a wider adoption of Gregory quads in numerical simulations.

본문 73,715자

본문 펼치기
# Numerical Quadrature for Gregory Quads Jun Zhou <sup>1</sup>, Pieter J. Barendrecht <sup>2</sup>, Michael Bartoˇn <sup>3,4</sup>, Jiˇr´ı Kosinka <sup>1,∗</sup> 1 _Bernoulli Institute, University of Groningen, Nijenborgh 9, 9747 AG, Groningen, the Netherlands_ 2 _Department of Mathematics and Computer Science, University of Basel, Spiegelgasse 1, 4051 Basel, Switzerland_ 3 _Basque Center for Applied Mathematics, Alameda Mazarredo 14, 48009 Bilbao, Spain_ 4 _Ikerbasque – Basque Foundation for Sciences, Mar´ıa D´ıaz de Haro 3, 48013 Bilbao, Basque Country, Spain_ Abstract We investigate quadrature rules in the context of quadrilateral Gregory patches, in short Gregory quads. We provide numerical and where possible symbolic quadrature rules for the space spanned by the twenty polynomial/rational functions associated with Gregory quads, as well as the derived spaces including derivatives, products, and products of derivatives of these functions. This opens up the possibility for a wider adoption of Gregory quads in numerical simulations. _Keywords:_ Numerical integration, Gregory patches, Gaussian quadrature rules 1. Introduction Numerical quadratures are indispensable in most numerical analyses and simulations. They provide an efficient means of numerically evaluating or approximating integrals of (spline) functions over various domains [1]. In the bivariate setting, a quadrature rule for a function _f_ from a certain space is defined as Ω _f_ ( x ) d x = _m_ _i_ =1 ω _i f_ ( t _i_ ) + _Rm_ ( _f_ ), (1) where Ω ⊂ R <sup>2</sup> represents the domain under consideration, _m_ is the number of quadrature points t _i_ (often called nodes) and their corresponding weights ω _i_, and _Rm_ ( _f_ ) represents the error term of the rule. The rule is said to be exact if the error term vanishes for all elements of a linear function space under consideration. The rule is called Gaussian if there is no numerically exact rule that uses fewer nodes. In this paper, we focus on the basis functions associated with Gregory quads as well as the derived spaces useful in the context of numerical analysis. As isogeometric analysis [2] gained in popularity, so did the search for (Gaussian) quadrature rules for various function and spline spaces. In the fully structured tensor-product setting, the situation is fairly well developed and understood. B-spline quadrature has been studied in [3, 4, 5, 6], NURBS quadrature in [7, 8], and the tensor-product setting has been dealt with in [9, 10, 11, 12]. In contrast, the case of non-tensor product splines and other function spaces has received much less attention. To date, only a few recent advances in this direction have been made. In the case of Catmull-Clark subdivision, an approach to the quadrature for subdivision surfaces based on Catmull-Clark quad meshes was introduced in [13, 14]. This research discussed grouping strategies of quads around extraordinary vertices (EVs), as the surface around EVs has non-tensor product structure. This is an improvement over the naive, per-quad integration. In the area of triangles, the quadrature rules for spline spaces over macro-triangles have been studied in [15, 16]. The Hammer and Stroud ∗Corresponding author _Email address:_ `j.kosinka@rug.nl` (Jiˇr´ı Kosinka) _Preprint submitted to Applied Mathematics and Computation_ _June 6, 2023_ rules generalise to the macro-element spaces of Clough-Tocher and Powell-Sabin provided that some conditions on the split points are met. Quadrature rules for rational (spline) spaces have not received much attention [7]. Gregory quads, the focus of the present paper, which belong to the class of rational surfaces, were used in [17, 18, 19]. The last reference mentions the use of a 4 × 4 quadrature scheme, which is in general non-exact in the given context. We improve on this in this paper. As shown in [20], Gregory patches provide an effective way of constructing globally _G_ <sup>1</sup> surfaces of arbitrary manifold topology defined by quadrilateral meshes, for example as approximations to the more numerically demanding Catmull-Clark subdivision surfaces. This further motivated us to investigate quadrature rules for the space of functions spanned by the basis functions of Gregory quads as well as for the derived spaces needed in (isogeometric) analysis. We start by introducing the concepts and basis functions behind bicubic B´ezier patches and quadrilateral Gregory patches in Section 2, as well as standard techniques for deriving quadrature rules. Our results regarding the quadrature rules for quadrilateral Gregory patches are presented in Section 3 for the basis functions themselves. This is followed by rules for partial derivatives (Section 4) and mixed derivatives (Section 5). In Section 6 we devise a numerical approach to quadrature finding, which we then apply to the cases of basis function products and products of their derivatives in Section 7. Several numerical tests of the quadratures are presented in Section 8. The paper is concluded in Section 9. 2. Preliminaries To fix notation and for the convenience of the reader, we recall here the definitions of bicubic B´ezier patches and the Gaussian quadrature rule for their basis functions (Section 2.1), Gregory quads (Section 2.2), and provide a brief overview of standard methods for deriving quadrature rules (Section 2.3). _2.1._ _Bicubic B´ezier Patches_ A bicubic B´ezier patch is a parametric surface of polynomial bidegree (3, 3) defined over the unit square □ ⊂ R <sup>2</sup> . Let _I_ = {0, 1, 2, 3}. Given 16 control points _pij_, ( _i_, _j_ ) ∈ _I_ <sup>2</sup> (see Figure 1, left), the bicubic B´ezier patch is defined as _p_ ( _u_, _v_ ) = ( _i_, _j_ )∈ _I_ <sup>2</sup> _pi_, _jBi_, _j_ ( _u_, _v_ ), ( _u_, _v_ ) ∈ □, (2) where _Bi_, _j_ ( _u_, _v_ ) = _Bi_ ( _u_ ) _B_ _j_ ( _v_ ) with <u>3!</u> _Bk_ ( _w_ ) = _k_ !(3 − _k_ )! <sup>_wk_</sup> <sup>(1 −</sup> <sup>_w_</sup> <sup>)3−</sup> <sup>_k_</sup> <sup>,</sup> _k_ = 0, . . ., 3 (3) the cubic Bernstein polynomials. The 16 polynomial functions span the linear space B = span - _Bi_, _j_, ( _i_, _j_ ) ∈ _I_ <sup>2�</sup> with dim(B) = 16. Table 1: The four quadrature nodes and weights for bicubic polynomials over the unit square. _i_ _ui_ _vi_ ω _i_ ~~√~~ 1 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> ~~√~~ 3 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> ~~√~~ 3 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> ~~√~~ 3 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> ~~√~~ 3 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> 3 <u>14</u> 1 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> ~~√~~ 3 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> ~~√~~ 3 <u>14</u> 2 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>14</u> ~~√~~ ~~√~~ 2 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>14</u> ~~√~~ ~~√~~ 3 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> 3 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>14</u> 3 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> 3 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>14</u> ~~√~~ ~~√~~ 4 <u>12</u> <sup>+</sup> <u>6</u> <sup><u>1</u></sup> 3 <u>12</u> <sup>−</sup> <sup><u>1</u></sup> <u>6</u> 3 <u>14</u> 2 _p_ 13 _p_ 23 _p_ 33 _p_ 03 _p_ 13 _p_ 23 _p_ 12 _u_ _p_ 22 _u_ _p_ 33 _p_ 03 _p_ 32 _p_ 31 _p_ 22 _v_ _p_ 32 _p_ 31 _p_ 11 _v_ _p_ 22 _p_ 21 _p_ 12 _v_ _p_ 02 _p_ 01 _p_ 00 _p_ 12 _p_ 11 _p_ 30 _p_ 21 _v_ _p_ 11 _u_ _p_ 21 _u_ _p_ 10 _p_ 20 _p_ 10 _p_ 20 _p_ 02 _p_ 01 _p_ 00 _p_ 30 Figure 1: The control net and labeling scheme of a bicubic B´ezier patch (left) and a Gregory patch (right). It is well known that B requires four quadrature nodes, known as the 2 × 2 tensor product Gauss-Legendre rule. Specifically, - 4 ω _iB_ ( _ui_, _vi_ ), (4) _B_ ( _u_, _v_ ) d _u_ d _v_ = 4 _i_ =1 with the nodes ( _ui_, _vi_ ) and weights ω _i_ specified in Table 1, for any function _B_ ( _u_, _v_ ) ∈B. Note the symmetry of the rule with respect to the bimedians and diagonals of □; we will rely on this later on. _2.2._ _Gregory quads_ Quadrilateral Gregory patches [21] are a generalisation of bicubic B´ezier surfaces. At the expense of introducing rational blending functions, they provide the possibility to join patches with _G_ <sup>1</sup> continuity over unstructured quad meshes [20, 22]. This is achieved by separating the two mixed partial derivatives at each of the four patch corners. Each of the four internal control points of a bicubic B´ezier patch is ‘split’ into two control points, and each such pair is blended rationally into one ‘moving’ point according to the ( _u_, _v_ ) ∈ - parameter position. More precisely, _<u>up</u>_ <u>11</u> _<u>u</u>_ <u>+</u> _<u>vp</u>_ <u>11</u> _<u>v</u>_ _p_ 11 = _p_ 11( _u_, _v_ ) =, _u_ + _v_ <u>(1 −</u> _<u>u</u>_ <u>)</u> _<u>p</u>_ <u>21</u> _<u>u</u>_ <u>+</u> _<u>vp</u>_ <u>21</u> _<u>v</u>_ _p_ 21 = _p_ 21( _u_, _v_ ) =, 1 − _u_ + _v_ <u>(1 −</u> _<u>u</u>_ <u>)</u> _<u>p</u>_ <u>22</u> _<u>u</u>_ <u>+ (1 −</u> _<u>v</u>_ <u>)</u> _<u>p</u>_ <u>22</u> _<u>v</u>_ _p_ 22 = _p_ 22( _u_, _v_ ) =, 2 − _u_ - _v_ (5) _<u>up</u>_ <u>12</u> _<u>u</u>_ <u>+ (1 −</u> _<u>v</u>_ <u>)</u> _<u>p</u>_ <u>12</u> _<u>v</u>_ _p_ 12 = _p_ 12( _u_, _v_ ) =, 1 + _u_ - _v_ with removable singularities [23] at the four corners of □. The other 12 control points (along the boundary) are associated with the same basis functions as in the bicubic B´ezier quad. As such, the boundaries of a Gregory quad are cubic B´ezier curves. Note that there exist also _rational_ boundary Gregory patches [24], but these are not considered here. The Gregory quad is thus governed by 20 control points, indexed by the set (see Figure 1, right) _J_ = {00, 01, 02, 03, 10, 13, 20, 23, 30, 31, 32, 33, 11 _u_, 11 _v_, 12 _u_, 12 _v_, 21 _u_, 21 _v_, 22 _u_, 22 _v_ }, and defined as _p jG j_ ( _u_, _v_ ), ( _u_, _v_ ) ∈ □. (6) 3 _q_ ( _u_, _v_ ) = _j_ ∈ _J_ _<mark>G</mark>_ 03 _<mark>G</mark>_ 13 _<mark>G</mark>_ <u>12</u> _u_ Figure 2: Up to symmetries, there are only three basis function shapes in G. From left to right: _G_ 03, _G_ 13, and _G_ 12 _u_ . The 20 functions, some of which are shown in Figure 2, span the linear space -, G = span - _G j_, _j_ ∈ _J_ where _G_ 00 = (1 − _u_ ) <sup>3</sup> (1 − _v_ ) <sup>3</sup>, _G_ 01 = 3(1 − _u_ ) <sup>3</sup> _v_ (1 − _v_ ) <sup>2</sup>, _G_ 02 = 3(1 − _u_ ) <sup>3</sup> _v_ <sup>2</sup> (1 − _v_ ), _G_ 03 = (1 − _u_ ) <sup>3</sup> _v_ <sup>3</sup>, _G_ 10 = 3 _u_ (1 − _u_ ) <sup>2</sup> (1 − _v_ ) <sup>3</sup>, _G_ 13 = 3 _u_ (1 − _u_ ) <sup>2</sup> _v_ <sup>3</sup>, _G_ 20 = 3 _u_ <sup>2</sup> (1 − _u_ )(1 − _v_ ) <sup>3</sup>, _G_ 23 = 3 _u_ <sup>2</sup> (1 − _u_ ) _v_ <sup>3</sup>, _G_ 30 = _u_ <sup>3</sup> (1 − _v_ ) <sup>3</sup>, _G_ 31 = 3 _u_ <sup>3</sup> _v_ (1 − _v_ ) <sup>2</sup>, _G_ 32 = 3 _u_ <sup>3</sup> _v_ <sup>2</sup> (1 − _v_ ), _G_ 33 = _u_ <sup>3</sup> _v_ <sup>3</sup>, _G_ 11 _u_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1−</sup> ( _u_ <sup>_<u>u</u>_</sup> + <sup><u>)2</u></sup> _v_ <sup>_<u>v</u>_</sup> ) <sup><u>(1−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 11 _v_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup><u>(1−</u></sup> <sup>_<u>u</u>_</sup> _u_ <sup><u>)2</u></sup> + <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 21 _u_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1</sup> (1 <sup><u>−</u></sup> - <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> + <sup>_<u>v</u>_</sup> _v_ <sup><u>(1</u></sup> ) <sup><u>−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 21 _v_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1</sup> (1 <sup><u>−</u></sup> - <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>_<u>v</u>_</sup> + <sup>2</sup> _v_ <sup><u>(1</u></sup> ) <sup><u>−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> <sup><u>−</u></sup> ( _u_ <sup>_<u>u</u>_</sup> + <sup><u>)2</u></sup> _v_ <sup>_<u>v</u>_</sup> ) <sup><u>(1−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 11 _v_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup><u>(1−</u></sup> <sup>_<u>u</u>_</sup> _u_ <sup><u>)2</u></sup> + <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> <sup><u>−</u></sup> 2− <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> - <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)</u></sup>, _G_ 22 _v_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1−</sup> 2− <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>_<u>v</u>_</sup> - <sup>2</sup> _v_ <sup><u>(1−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> <sup><u>(1</u></sup> (1 <sup><u>−</u></sup> - <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> + <sup>_<u>v</u>_</sup> _v_ <sup><u>(1</u></sup> ) <sup><u>−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 21 _v_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1</sup> (1 <sup><u>−</u></sup> - <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>_<u>v</u>_</sup> + <sup>2</sup> _v_ <sup><u>(1</u></sup> ) <sup><u>−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> <sup><u>−</u></sup> 1+ <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> - <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)</u></sup>, _G_ 12 _v_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup><u>(1−</u></sup> 1 <sup>_<u>u</u>_</sup> + <sup><u>)2</u></sup> _u_ <sup>_<u>v</u>_</sup> - <sup>2</sup> _v_ <sup><u>(1−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> (1 <sup><u>−</u></sup> - <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>_<u>v</u>_</sup> + <sup>2</sup> _v_ <sup><u>(1</u></sup> ) <sup><u>−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, <sup><u>−</u></sup> 1 <sup>_<u>u</u>_</sup> + <sup><u>)2</u></sup> _u_ <sup>_<u>v</u>_</sup> - <sup>2</sup> _v_ <sup><u>(1−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> . (7) _G_ 22 _u_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1−</sup> 2− <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> - <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)</u></sup> <sup><u>−</u></sup> 2− <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>_<u>v</u>_</sup> - <sup>2</sup> _v_ <sup><u>(1−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 12 _u_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1−</sup> 1+ <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> - <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)</u></sup> _u_ <sup><u>)2</u></sup> + <sup>_<u>v</u>_</sup> _v_ <sup>2(1−</sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup>, _G_ 21 _u_ = <sup><u>9</u></sup> <sup>_<u>u</u>_</sup> <sup>2(1</sup> (1 <sup><u>−</u></sup> - <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _u_ <sup>2</sup> + <sup>_<u>v</u>_</sup> _v_ <sup><u>(1</u></sup> ) <sup><u>−</u></sup> <sup>_<u>v</u>_</sup> <sup><u>)2</u></sup> We now show that these functions are in fact basis functions and that dim(G) = 20. While this may be considered obvious, we have not found a formal proof of this fact in the existing literature. Theorem 2.1. _The twenty Gregory quad functions G j,_ _j_ ∈ _J are linearly independent and therefore_ dim(G) = 20 _._ _Proof._ Suppose for contradiction that <sup>�</sup> _k_ ∈ _J_ <sup>_c_</sup> _k_ <sup>_G_</sup> _k_ <sup>= 0 over □</sup> <sup>where not all</sup> <sup>_c_</sup> _k_ <sup>vanish.</sup> <sup>Using</sup> <sup>_G_</sup> _j_ <sup>also as ‘test’ functions</sup> and integrating over □ gives the 20 × 20 system Nc = 0, where the elements of N have the form �□ <sup>_G jGk_</sup> <sup>d</sup> <sup>_u_</sup> <sup>d</sup> <sup>_v_</sup> <sup>with</sup> _Proof._ Suppose for contradiction that <sup>�</sup> and integrating over □ gives the 20 × 20 system Nc = 0, where the elements of N have the form - <sup>_G jGk_</sup> <sup>d</sup> <sup>_u_</sup> <sup>d</sup> <sup>_v_</sup> <sup>with</sup> _j_, _k_ ∈ _J_ and the elements of c are simply _ck_ . Any solution c must be an element of ker( N ). A direct computation confirms that dim(ker( N )) = 0, which concludes the proof. _2.3._ _Classical Techniques for Deriving Quadratures_ We now review classical quadrature derivation techniques, outline why they are insufficient in our context, and prepare the ground for our contribution in this direction. When considering a univariate function space S spanned by a weighted polynomial basis — that is, a polynomial basis where each function is multiplied by one and the same _weighting function w_ ( _x_ ) — quadratures can be derived by considering polynomials _Pk_ ( _x_ ) that are orthogonal with respect to a known _weighted_ inner product (using the same weighting function as mentioned earlier) on a certain domain Ω. It works by dividing a function _w_ ( _x_ ) _f_ ( _x_ ) ∈S, where _f_ ( _x_ ) is a polynomial of at most degree 2 _d_ - 1, by the polynomial function _Pd_ ( _x_ ) of degree _d_ . This yields _w_ ( _x_ ) _f_ ( _x_ ) = _w_ ( _x_ ) _Q_ ( _x_ ) _Pd_ ( _x_ ) + _w_ ( _x_ ) _R_ ( _x_ ), where both _Q_ ( _x_ ) and _R_ ( _x_ ) are polynomials of at most degree _d_ - 1. Expressing _Q_ ( _x_ ) = <sup>�</sup> _k_ <sup>_c_</sup> _k_ <sup>_P_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>and</sup> <sup>subsequently</sup> <sup>integrating</sup> <sup>over</sup> <sup>Ω</sup> <sup>then</sup> <sup>gives</sup> �Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>d</sup> <sup>_x_</sup> <sup>=</sup> �Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_R_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>d</sup> <sup>_x_</sup> <sup>because</sup> <sup>of</sup> Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>d</sup> <sup>_x_</sup> <sup>=</sup> _k_ <sup>_c_</sup> _k_ <sup>_P_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>and</sup> <sup>subsequently</sup> <sup>integrating</sup> <sup>over</sup> <sup>Ω</sup> <sup>then</sup> <sup>gives</sup> _Q_ ( _x_ ) = <sup>�</sup> _k_ <sup>_c_</sup> _k_ <sup>_P_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>and</sup> <sup>subsequently</sup> <sup>integrating</sup> <sup>over</sup> <sup>Ω</sup> <sup>then</sup> <sup>gives</sup> Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>d</sup> <sup>_x_</sup> <sup>=</sup> Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_R_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>d</sup> <sup>_x_</sup> <sup>because</sup> <sup>of</sup> orthogonality. Finally, expressing _R_ ( _x_ ) in a degree _d_ - 1 Lagrange basis using the _d_ roots _xm_ of _Pd_ ( _x_ ) as nodes, i.e., _R_ ( _x_ ) = <sup>�</sup> _m_ <sup>_d_</sup> _m_ <sup>_L_</sup> _m_ <sup>(</sup> <sup>_x_</sup> <sup>) with</sup> <sup>_d_</sup> _m_ <sup>=</sup> <sup>_R_</sup> <sup>(</sup> <sup>_x_</sup> _m_ <sup>), the integral of</sup> <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) follows as</sup> _m_ <sup>_d_</sup> _m_ <sup>_L_</sup> _m_ <sup>(</sup> <sup>_x_</sup> <sup>) with</sup> <sup>_d_</sup> _m_ <sup>=</sup> <sup>_R_</sup> <sup>(</sup> <sup>_x_</sup> _m_ <sup>), the integral of</sup> <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) follows as</sup> Ω _m_ _m_ _f_ ( _xm_ ) _m_ _f_ ( _xm_ ) _wm_ . _R_ ( _xm_ ) Ω _w_ ( _x_ ) _Lm_ ( _x_ ) d _x_ = _w_ ( _x_ ) _Lm_ ( _x_ ) d _x_ = A familiar example are the Gauss-Legendre rules, which follow from the Legendre basis which is orthogonal with respect to the standard _L_ <sup>2</sup> inner product (with _w_ ( _x_ ) = 1). This means that the resulting quadratures apply to 4 polynomial spaces. Other examples include Gauss-Jacobi and Gauss-Chebyshev quadratures, which are based on the Jacobi and Chebyshev polynomials orthogonal with respect to the inner products using _w_ ( _x_ ) = (1 − _x_ ) <sup>α</sup> (1 + _x_ ) <sup>β</sup> and _w_ ( _x_ ) = ~~√~~ 11− _x_ <sup>2</sup> <sup>, respectively.</sup> In the setting where a weighting function is given but where its associated set of orthogonal polynomials is unknown, another method considering the _moments_ of _w_ ( _x_ ) can be used to derive quadratures. These moments _Mk_ are the values of the integrals Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_xk_</sup> <sup>d</sup> <sup>_x_</sup> <sup>,</sup> <sup>with</sup> <sup>_k_</sup> <sup>∈</sup> <sup>N0.</sup> <sup>With</sup> <sup>_k_</sup> <sup>going</sup> <sup>up</sup> <sup>to</sup> <sup>2</sup> <sup>_d_</sup> <sup>−</sup> <sup>1,</sup> <sup>we</sup> <sup>then</sup> <sup>assume</sup> <sup>the</sup> <sup>exis-</sup> are the values of the integrals Ω <sup>_w_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_xk_</sup> <sup>d</sup> <sup>_x_</sup> <sup>,</sup> <sup>with</sup> <sup>_k_</sup> <sup>∈</sup> <sup>N0.</sup> <sup>With</sup> <sup>_k_</sup> <sup>going</sup> <sup>up</sup> <sup>to</sup> <sup>2</sup> <sup>_d_</sup> <sup>−</sup> <sup>1,</sup> <sup>we</sup> <sup>then</sup> <sup>assume</sup> <sup>the</sup> <sup>exis-</sup> tence of _d_ nodes _xm_ and associated weights _wm_ such that _Mk_ = <sup>�</sup> _m_ <sup>_x_</sup> _m_ <sup>_k_</sup> <sup>_wm_</sup> <sup>∀</sup> <sup>_k_</sup> <sup>∈{0, . . ., 2</sup> <sup>_d_</sup> <sup>−</sup> <sup>1}.</sup> <sup>Next,</sup> <sup>we</sup> <sup>define</sup> tence of _d_ nodes _xm_ and associated weights _wm_ such that _Mk_ = <sup>�</sup> _m_ <sup>_x_</sup> _m_ <sup>_k_</sup> <sup>_wm_</sup> <sup>∀</sup> <sup>_k_</sup> <sup>∈{0, . . ., 2</sup> <sup>_d_</sup> <sup>−</sup> <sup>1}.</sup> <sup>Next,</sup> <sup>we</sup> <sup>define</sup> a polynomial _Pd_ ( _x_ ) = <sup>�</sup> _m_ <sup>(</sup> <sup>_x_</sup> <sup>−</sup> <sup>_x_</sup> _m_ <sup>)</sup> <sup>=</sup> <sup>_xd_</sup> <sup>+</sup> <sup>�</sup> _m_ <sup>α</sup> _m_ <sup>_xm_</sup> <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>α</sup> _m_ <sup>now</sup> <sup>have</sup> <sup>become</sup> <sup>the</sup> <sup>unknowns.</sup> <sup>In</sup> <sup>order</sup> _m_ <sup>(</sup> <sup>_x_</sup> <sup>−</sup> <sup>_x_</sup> _m_ <sup>)</sup> <sup>=</sup> <sup>_xd_</sup> <sup>+</sup> <sup>�</sup> _m_ <sup>_x_</sup> _m_ <sup>_k_</sup> a polynomial _Pd_ ( _x_ ) = <sup>�</sup> _m_ <sup>(</sup> <sup>_x_</sup> <sup>−</sup> <sup>_x_</sup> _m_ <sup>)</sup> <sup>=</sup> <sup>_xd_</sup> <sup>+</sup> <sup>�</sup> _m_ <sup>α</sup> _m_ <sup>_xm_</sup> <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>α</sup> _m_ <sup>now</sup> <sup>have</sup> <sup>become</sup> <sup>the</sup> <sup>unknowns.</sup> <sup>In</sup> <sup>order</sup> to solve for these unknowns, we use them to define _d_ weighted combinations _Cn_ of the moments _Mk_ as follows: _Cn_ = _Md_ + _n_ + <sup>�</sup> _m_ <sup>α</sup> _m_ <sup>_M_</sup> _m_ + _n_ <sup>= �</sup> _l_ <sup>_x_</sup> _l_ <sup>_nwl_</sup> - _xl_ <sup>_d_</sup> <sup>+ �</sup> _m_ <sup>α</sup> _m_ <sup>_x_</sup> _l_ <sup>_m_</sup> - = 0 for _n_ ∈{0, . . ., _d_ - 1}. This yields the linear system _l_ <sup>_x_</sup> _l_ <sup>_nwl_</sup> - _xl_ <sup>_d_</sup> <sup>+ �</sup> _m_ <sup>α</sup> _m_ <sup>_x_</sup> _l_ <sup>_m_</sup> - = 0 for _n_ ∈{0, . . ., _d_ - 1}. This yields the linear system _M_ 0 _M_ 1 . . . _Md_ −1 α0 _Md_ _M_ 1 _M_ 2 . . . _Md_ α1 _Md_ +1 ... ... ... ... ... = − ...,       . . . _l_ _l_ <sup>_x_</sup> _l_ <sup>_n_</sup> _m_ <sup>α</sup> _m_ <sup>_M_</sup> _m_ + _n_ <sup>= �</sup> _l_ <sup>_nwl_</sup> _m_ <sup>α</sup> _m_ <sup>_x_</sup> _l_ <sup>_m_</sup> - _xl_ <sup>_d_</sup> _l_ <sup>_d_</sup> <sup>+ �</sup> _M_ 0 _M_ 1 . . . _Md_ −1 _M_ 1 _M_ 2 . . . _Md_ ... ... ... ... _Md_ −1 _Md_ . . . _M_ 2 _d_ −2 _Md_ _Md_ +1 ... _M_ 2 _d_ −1    ... α _d_ −1 α0 α1  , (8)  = − whose solvability is discussed for instance in [25, Chapter 19]. Upon solving for the α _m_, we know _Pd_ ( _x_ ) and can solve for its _d_ roots _xm_ . Finally, we can form another linear system using the equations for _Mk_ for _k_ ∈{0, _d_ - 1} to solve for the _d_ weights _wm_ . An example using the above procedure is _w_ ( _x_ ) = − ln( _x_ ), which yields the _logarithmic_ quadratures used in the 2D collocation boundary element method [26]. The notion of orthogonal functions can be extended to the multivariate setting. However, the quadrature derivation method based on these does not directly apply to the Gregory setting: there is no common factor that can be extracted from these 20 functions (acting as the weighting function), and clearly there is no bivariate orthogonal _polynomial_ basis spanning the same space as G. Similarly, the method based on moments of the weighting function ( _w_ ( _x_ ) = 1 in our setting) does not apply as we are in a rational setting (rather than polynomial, allowing the use of moments in the first place). As such, another method must be devised, which we describe in Section 6, to derive quadrature rules for the challenging case of products of (derivatives of) Gregory basis functions. However, before that, we investigate the simpler cases first. 3. Gaussian quadrature for Gregory quads We now prove that the quadrature for bicubic B´ezier patches (see Table 1) is also exact for Gregory patches. In other words, the quadrature of (4) is exact not only for B but also for G. Naturally, this can be proved directly by checking that all 20 basis functions _G j_ ( _u_, _v_ ) in (6) are integrated exactly by it. However, this offers no insight into the structure of the basis. Therefore, we now provide a more geometric proof. We first observe that, due to symmetry, it holds _B_ 12 = _G_ 12 _u_ + _G_ 12 _v_, _B_ 11 = _G_ 11 _v_ + _G_ 11 _u_, _B_ 21 = _G_ 21 _u_ + _G_ 21 _v_, _B_ 22 = _G_ 22 _v_ + _G_ 22 _u_ . (9) This, unsurprisingly, shows that B ⊂G. The next step is to find four ‘convenient’ linearly independent functions _Di_, _i_ ∈ _I_ that extend the basis of B to a basis of G. By convenient, we mean the following: the four functions _Di_ should have vanishing integrals over - based on the four nodes listed in Table 1. As the 8 rational basis functions in (7), again due to symmetry, share the same integral over □ (the actual value is not important but, for the curious reader, it equals 1/32), we can simply take _D_ 12 = _G_ 12 _u_ - _G_ 12 _v_, _D_ 11 = _G_ 11 _v_ - _G_ 11 _u_, _D_ 21 = _G_ 21 _u_ - _G_ 21 _v_, _D_ 22 = _G_ 22 _v_ - _G_ 22 _u_ . (10) One of these blends, _D_ 11, is shown in Figure 3. Note that it is, by construction, anti-symmetric with respect to one of the diagonals of □. It follows that all four _D_ functions are anti-symmetric with respect to one of the diagonals of □. Further, for each of them, the values at the four quadrature nodes are either 0 or pair-wise opposite to each other; this is the case due to the symmetry of the quadrature and anti-symmetry of the _Di_ . It remains to show linear independence. 5 _<mark>G</mark>_ 11 _v_ _<mark>B</mark>_ <u>11</u> _<mark>D</mark>_ <u>11</u> _<mark>G</mark>_ <u>11</u> _u_ Figure 3: Basis functions _G_ 11 _v_ (top) and _G_ 11 _u_ (bottom), their sum _B_ 11 (left) and their difference _D_ 11 (right), all scaled up by a factor of 4 for visualization purposes. Note that _D_ 11 is antisymmetric with respect to the dashed diagonal of □ (along which it vanishes). Lemma 3.1. _It holds that_ G = B ⊕ span( _D_ 12, _D_ 11, _D_ 21, _D_ 22). (11) _Proof._ The two equations (9) and (10) can be understood as a change of basis, going from 12 polynomial and 8 rational functions to 16 polynomial and 4 rational functions. It thus suffices to show that the corresponding change of basis matrix M is regular. Indeed, I 12×12 O 12×8 ,  M =  O 8×12 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 −1 0 0 0 0 0 0 0 0 1 −1 0 0 0 0 0 0 0 0 1 −1 0 0 0 0 0 0 0 0 1 −1 where I and O are the unit and zero matrices of suitable sizes, respectively. This leads to det( M ) = 16, which completes the proof. All combined, and given the fact that exact quadrature is a linear operator, we have proved the following Theorem 3.2. _For any function G_ ( _u_, _v_ ) ∈G _it holds that_ _G_ ( _u_, _v_ ) d _u_ d _v_ = 4 _i_ =1 ω _iG_ ( _ui_, _vi_ ), (12) _with the nodes_ ( _ui_, _vi_ ) _and weights_ ω _i_ _specified in Table 1._ _The quadrature is Gaussian._ Furthermore, a symbolic computation in Maple shows that this is the only exact four-node quadrature for G that exists. 4. Quadrature for partial derivatives - <u>∂</u> _<u>G j</u>_ We now turn our attention to the space G _u_ = span ∂ _u_ <sup>,</sup> <sup>_j_</sup> <sup>∈</sup> <sup>_J_</sup>, i.e., the space spanned by the 20 partial derivatives of the Gregory quad basis functions with respect to _u_ . Analogous results, due to symmetry, hold for the partials in the _v_ direction. We now turn our attention to the space G _u_ = span - <u>∂</u> _<u>G j</u>_ ∂ _u_ <sup>,</sup> <sup>_j_</sup> <sup>∈</sup> <sup>_J_</sup> 6 The 20 functions giving G _u_ do not form a basis. That is apparent from Lemma 3.1: B _u_ (defined analogously to G _u_ ) does not have dimension 16, but rather only 12 as the space is spanned by tensor-product polynomials of degree 3 in _v_ and degree 2 in _u_ . Indeed, when using the approach taken in the proof of Theorem 2.1, we obtain dim(ker( N _u_ )) = 4 with N _u_ now constructed with respect to G _u_, which confirms that dim G _u_ = dim G _v_ = 16. The search for quadrature for this space leads to equations of the form _m_ - ω _i_ _i_ =1 ∂ _G_ _j_ ( _u_, _v_ ) ∂ _u_ ∂ _G_ _j_ ( _u_, _v_ ) d _u_ d _v_ = ∂ _u_ ���( _u_, _v_ )=( _ui_, _vi_ ), _j_ ∈ _J_ (13) with ω _i_ and ( _ui_, _vi_ ) as unknowns. Due to dim G _u_ = 16 it is sufficient to consider only 16 linearly independent equations. As G _u_ contains all biquadratic polynomials, one cannot expect the existence of a quadrature with fewer than four nodes. We thus first set _m_ = 4. Using the computer algebra system Maple and the Gr¨obner basis computation it provides (after converting the rational equations in the system to polynomial ones) shows that the system admits no solution. We thus conclude that there is no four-node quadrature rule for G _u_ . Next up, we investigate the case when _m_ = 5. We first observe that the derivatives in G _u_ exhibit, as a set, (only) one-fold symmetry: that with respect to _v_ = 1/2. We thus set _v_ 1 = 1/2 and set the remaining four nodes as corners of a rectangle symmetric with respect to _v_ = 1/2. Using Maple shows again that this leads to no solutions. Although an asymmetric solution is unlikely, we tried to find one both using Maple and numerically using Python (following the approach described in Section 6). The numerical approach did not converge to a solution from any of our random initialisations, and Maple’s computation with fully generic nodes and weights ran out of memory (64GB). We thus conjecture that the system admits no solution when _m_ = 5. Finally, we set _m_ = 6, which does lead to solutions. Not unexpectedly, Maple is not able to handle the system (13) in full generality or even with the _v_ = 1/2 symmetry built in. We therefore turned to our numerical approach again, which delivered multiple solutions. Upon inspection, it led us to the case _u_ 2 = _u_ 1, _u_ 3 = _u_ 4 = 1 ~~√~~ - _u_ 1, _u_ 5 = _u_ 6 = <sup><u>1</u></sup> 2 _u_ 2 = _u_ 1, _u_ 3 = _u_ 4 = 1 ~~√~~ - _u_ 1, _u_ 5 = _u_ 6 = <sup><u>1</u></sup> 2 <sup>;</sup> _v_ 1 = _v_ 3 = _v_ 5 = <sup><u>1</u></sup> 2 <sup>+</sup> 63 <sup>,</sup> <sup>_v_</sup> <sup>2</sup> <sup>=</sup> <sup>_v_</sup> <sup>4</sup> <sup>=</sup> <sup>_v_</sup> <sup>6</sup> <sup>= 1</sup> ~~√~~ <sup><u>1</u></sup> 2 <sup>+</sup> 6 <sup>_v_</sup> <sup>6</sup> <sup>= 1 −</sup> <sup>_v_</sup> <sup>1;</sup> (14) 2 <sup><u>1</u></sup> <sup>−</sup> <sup>2ω1.</sup> _v_ 1 = _v_ 3 = _v_ 5 = <sup><u>1</u></sup> 2 <sup>+</sup> 63 <sup>,</sup> <sup>_v_</sup> <sup>2</sup> <sup>=</sup> <sup>_v_</sup> <sup>4</sup> <sup>=</sup> <sup>_v_</sup> <sup>6</sup> <sup>= 1 −</sup> <sup>_v_</sup> <sup>1;</sup> ω1 = ω2 = ω3 = ω4, ω5 = ω6 = 2 <sup><u>1</u></sup> <sup>−</sup> <sup>2ω1.</sup> The last line of equalities follows from symmetry and the fact that the weights have to sum to one. This leaves only _u_ 1 and ω1 as unknowns. The Gr¨obner basis of the system, according to Maple, is 38123712ω <sup>3</sup> 1 <sup>+ 1260</sup> <sup>_u_</sup> 1 <sup>2</sup> <sup>−</sup> <sup>6994016ω2</sup> 1 <sup>−</sup> <sup>1260</sup> <sup>_u_</sup> <sup>1 + 315440ω1 −</sup> <sup>4887,</sup> 152494848ω <sup>4</sup> 1 <sup>−</sup> <sup>27976064ω3</sup> 1 <sup>+ 1261760ω</sup> 1 <sup>2</sup> <sup>−</sup> <sup>20808ω1 + 105.</sup> Maple is able to solve this in radical form, but the expressions are far too long to be useful. With the precision of 30 digits, one obtains the following solution: _u_ 1 = 0.0934779568755708578531910506923, ω1 = 0.126063849132135287691741790291, which yields, when combined with (14), a 6-node symmetric quadrature for G _u_ . 5. Gaussian Quadrature for Mixed Partial Derivatives The mixed partial derivatives <sup><u>∂</u></sup> ∂ <sup>2</sup> _u_ <sup>_<u>G</u>_</sup> ∂ _v_ <sup>_<u>j</u>_</sup> <sup><u>∂</u></sup> ∂ <sup>2</sup> _u_ <sup>_<u>G</u>_</sup> ∂ _v_ <sup>_<u>j</u>_</sup> <sup>,</sup> <sup>_j_</sup> <sup>∈</sup> <sup>_J_</sup> <sup>of</sup> <sup>the</sup> <sup>Gregory</sup> <sup>quad</sup> <sup>basis</sup> <sup>functions</sup> <sup>exhibit</sup> <sup>two-fold</sup> <sup>symmetry</sup> <sup>when</sup> - <u>∂</u> <sup>2</sup> _<u>G j</u>_ considered as a set. Let G _uv_ = span ∂ _u_ ∂ _v_ <sup>,</sup> <sup>_j_</sup> <sup>∈</sup> <sup>_J_</sup> . Using Lemma 3.1 again, it is clear that the dimension of G _uv_ is at most 9 + 4 = 13, where the 9 comes from biquadratic polynomials spanning B _uv_ . Turning again to the proof of Theorem 2.1, one obtains that dim(ker( N _uv_ )) = 7 with N _uv_ constructed according to G _uv_, confirming that dim G _uv_ = 13. - <u>∂</u> <sup>2</sup> _<u>G j</u>_ ∂ _u_ ∂ _v_ <sup>,</sup> <sup>_j_</sup> <sup>∈</sup> <sup>_J_</sup> considered as a set. Let G _uv_ = span We approached the problem of quadrature-finding for G _uv_ as in Section 4. To our surprise, we found a solution in the very first step, using only four nodes. And more surprisingly still, the quadrature rule for mixed derivatives of Gregory quads is the same as the one for Gregory quads; see Table 1. Further, a Gr¨obner basis computation confirms that this is the only solution with two-fold symmetry and four nodes (although 4 non-symmetric four-node solutions exist; see Figure 4). Since G _uv_ contains biquadratic polynomials, this quadrature is optimal. We have thus proved the following 7 Theorem 5.1. _For any function H_ ( _u_, _v_ ) ∈G _uv_ _it holds that_ _H_ ( _u_, _v_ ) d _u_ d _v_ = 4 _i_ =1 ω _iH_ ( _ui_, _vi_ ), (15) _with the nodes_ ( _ui_, _vi_ ) _and weights_ ω _i_ _specified in Table 1._ _The quadrature is Gaussian._ Upon closer inspection, the result is actually not that surprising after all. Lemma 3.1 allows us to focus only on the mixed partial derivatives of the _D_ -functions defined in (10); the other functions are simply biquadratic and thus integrated exactly by the rule. And thus again, the symmetry of the quadrature rule and the anti-symmetry of these functions allows us to arrive at Theorem 5.1. 6. Numerical optimisation using Python Before moving on to developing/deriving quadratures for products of the Gregory functions or their first-order partial derivatives, we describe a general numerical method that can be used to obtain quadratures for virtually any set of functions on a given domain Ω. This follows the approach of [27] and similar non-linear optimisation schemes. Given _n_ bivariate functions _f j_ ( _u_, _v_ ), we assume the existence of _m_ quadrature nodes ( _uk_, _vk_ ) and weights ω _k_ such that _f_ 1( _u_ 1, _v_ 1) _f_ 1( _u_ 2, _v_ 2) . . . _f_ 1( _um_, _vm_ ) ω1 _f_ 1( _u_, _v_ ) _f_ 2( _u_ 1, _v_ 1) _f_ 2( _u_ 2, _v_ 2) . . . _f_ 2( _um_, _vm_ ) ω2 - _f_ 2( _u_, _v_ ) = d _u_ d _v_ . (16) ... ... ... ... ... - ...       . . . _f_ 1( _u_ 1, _v_ 1) _f_ 1( _u_ 2, _v_ 2) . . . _f_ 1( _um_, _vm_ ) _f_ 2( _u_ 1, _v_ 1) _f_ 2( _u_ 2, _v_ 2) . . . _f_ 2( _um_, _vm_ ) ... ... ... ... _fn_ ( _u_ 1, _v_ 1) _fn_ ( _u_ 2, _v_ 2) . . . _fn_ ( _um_, _vm_ )   ω1 ω2 ... ω _m_  _f_ 1( _u_, _v_ ) _f_ 2( _u_, _v_ ) ... _fn_ ( _u_, _v_ )  = d _u_ d _v_ . (16)  Unlike the two approaches described Section 2.3, the quadrature nodes and weights must now be solved for _si-_ _multaneously_ . This can be done using a nonlinear least-squares approach, for which we use Python’s SciPy library: `scipy.optimize.least_squares` with the trust region reflective (trf) minimisation algorithm and numerical approximations of Jacobians. Writing the system of equations above as _F_ ω = I, we define the _n_ residuals _r_ _j_ = <sup>�</sup> _k_ <sup>_f_</sup> _j_ <sup>(</sup> <sup>_u_</sup> _k_ <sup>,</sup> <sup>_v_</sup> _k_ <sup>)ω</sup> _k_ <sup>−I</sup> _j_ <sup>.</sup> <sup>Their</sup> partial derivatives with respect to the unknowns _uk_, _vk_ and ω _k_ required for the optimisation procedure are therefore = <sup>∂</sup> <sup>_f_</sup> <sup>_j_</sup> ∂ _r_ _j_ ∂ _v_ <sup>(</sup> <sup>_uk_</sup> <sup>,</sup> <sup>_vk_</sup> <sup>)ω</sup> <sup>_k_</sup> <sup>,</sup> ∂ω _k_ ∂ _r_ _j_ ∂ _uk_ = <sup>∂</sup> <sup>_f_</sup> <sup>_j_</sup> ∂ _r_ _j_ ∂ _u_ <sup>(</sup> <sup>_uk_</sup> <sup>,</sup> <sup>_vk_</sup> <sup>)ω</sup> <sup>_k_</sup> <sup>,</sup> ∂ _vk_ = _f_ _j_ ( _uk_, _vk_ ). (17) The values of the exact integrals I _j_ can be computed using e.g. Python’s SymPy library or using Maple. This only has to be done once. There are multiple challenges in solving for the _m_ triples ( _uk_, _vk_, ω _k_ ). First, there is the choice of _m_ . On the one hand, it is desirable to set this as low as possible (we note that lower bounds on _m_ are only known for specific cases, which means that in other cases they have to be estimated). On the other hand, a _symmetric_ rule potentially using a slightly higher number of nodes/weights might be preferred. We get back to this point below. Secondly, as is usually the case in the context of optimisation, an initial guess is required. For a decent initial guess reasonably close to a solution (note that there might indeed be multiple solutions), we need to have extra insights. Without these, the only resort is a random initial guess, which does not come with any guarantee of convergence. Remark 1. _While the random guesses may not seem to be the best initialization, it is an option that allows us to quickly_ _explore_ _the_ _solution_ _spaces_ _with_ _the_ _least_ _number_ _of_ _quadrature_ _points._ _One_ _could_ _eventually_ _follow_ _the_ _approach_ _of_ _[28]_ _and_ _initialise_ _the_ _quadratures,_ _for_ _example,_ _via_ _the_ _pivoted_ _Gram–Schmidt_ _method,_ _starting_ _with_ _a_ _higher_ _degree tensor product Gauss rule and eliminating those quadrature points with the smallest positive weight._ _However,_ _such a search requires an excessive number of initial quadrature points, and does not guarantee to find a quadrature_ _with the least possible quadrature points (see Table 1 in [28])._ _In contrast, we impose symmetry assumptions, which_ _greatly reduces the search space, as we detail below._ 8 Figure 4: From left to right: Quadrature for _G_, two quadratures for G _u_ and G _v_ combined, and five quadratures for G _uv_ . The colours of the nodes correspond to different quadrature rules. In all cases, these are the only quadratures found given the specific number of nodes. The nodes are scaled proportionally to their associated weights. Finally, there is the matter of accuracy. Although symbolical solutions are arguably the best outcome, numerical solutions that are accurate to `float64` machine precision are certainly an acceptable alternative. After all, it is likely that the obtained quadratures will be used in a numerical setting, where exact integration is not required. The tolerance we use is ∥ _Fw_ −I∥∞ < 1 _e_ - 16, which we achieve by using Python’s NumPy’s `longdouble` format for all computations. In order to test the implementation, we set _f_ = G and _m_ = 4. Unfortunately, without further insight, we initialise the triples ( _uk_, _vk_, ω _k_ ) with random values in (0, 1) <sup>3</sup> . Running the script 10.000 times resulted (somewhat surprisingly) in an equal number of successfully converged runs. The 4-node solution, which Maple confirms to be unique, is shown in a single scatter plot in Figure 4 (left). Next, setting _f_ = G _u_, we get converging runs starting from _m_ = 6. There appear to be many different solutions. The results of 1000 successfully converged runs are plotted in a single scatter plot (semi-transparently using an alpha/blending value of 1001 <sup>), which we refer to as a</sup> <sup>_density scatter plot_</sup> <sup>, shown in Figure 5 (left).</sup> <sup>One of these solutions</sup> was mentioned/discussed in Section 4. We note that not all runs converged satisfactorily; about 25 of them did not. Likewise, for _f_ = G _v_ we obtain the density scatter plot shown in Figure 5 (right). Out of curiosity, we also considered _f_ = G _u_ ∪G _v_ . We obtain converging runs for _m_ = 7. Interestingly enough, there appear to be just two solutions integrating all 40 functions; see Figure 4 (middle). Still using random initialisation, in addition to 1000 successfully converged runs, we get about 350 that do not converge satisfactorily (to local minima or saddle points). Finally, we return to _m_ = 4 to check the uniqueness of the quadrature rules for _f_ = G _uv_ . There turn out to be four (mutually symmetric) solutions in addition to the 2 × 2 Gauss-Legendre rule mentioned and verified in Section 5; see Figure 4 (right). We note that in this case convergence is problematic; only about 1 in every 45 runs converges successfully. _6.1._ _Exploiting symmetry_ Up to this point, no symmetry has been enforced in the optimisation process. However, when moving on to deriving quadratures for products of (derivatives of) functions, as described in the next section, the numbers of functions and quadrature nodes/weights generally increase considerably. In such a setting, restricting the set of feasible solutions to symmetric quadratures can greatly speed up the optimisation process. A slight drawback is that potentially more efficient non-symmetric quadrature rules remain undiscovered. However, this potential drawback is outweighed by the independence/invariance with respect to the orientation of the quadrilateral element and the more efficient storage of symmetric quadratures. Moreover, it is a common assumption that, when dealing with a symmetric parametric domain, the corresponding quadrature is expected to be symmetric as well [28, 29]. The symmetries of the unit square are rather straightforward. For a point _not_ on a bimedian or diagonal, we have an 8-fold symmetry. For those that _do_ lie on a bimedian or diagonal, there is only 4-fold symmetry (though by using 9 Figure 5: Density scatter plots for 1000 successfully converged runs (see also [14]) for G _u_ and G _v_ . An alpha value of 1001 <sup>was used.</sup> a pair of points, it could be interpreted as an 8-fold symmetry again). As such, we now consider the functions _g_ _j_ ( _u_, _v_ ) = _f j_ ( _u_, _v_ ) + _f j_ (1 − _u_, _v_ ) + _f j_ (1 − _v_, _u_ ) + _f j_ (1 − _v_, 1 − _u_ ) + _f j_ (1 − _u_, 1 − _v_ ) + _f_ _j_ ( _u_, 1 − _v_ ) + _f_ _j_ ( _v_, 1 − _u_ ) + _f_ _j_ ( _v_, _u_ ). (18) For nodes that move to a location on a bimedian or diagonal, this symmetry approach results in a pair of overlapping nodes. Note that this comes with a certain challenge: a tolerance to decide whether nodes indeed overlap or not. Rather than setting up such tolerances, we add the option to explicitly constrain nodes to a bimedian or diagonal. That is, for ( _uk_, _vk_ ) on a bimedian, we consider the functions �1 − _v_, <sup><u>1</u></sup> 2 + _f j_ - <u>1</u> 2 <sup>, 1 −</sup> <sup>_v_</sup> + _f_ _j_ - _v_, <sup><u>1</u></sup> 2 , (19) _g_ <sup>+</sup> _j_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) =</sup> <sup>_f_</sup> <sup>_j_</sup> _g_ <sup>+</sup> _j_ - <u>1</u> 2 <sup>,</sup> <sup>_v_</sup> + _f j_ whereas for ( _uk_, _vk_ ) on a diagonal, we consider the functions _g_ <sup>×</sup> _j_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) =</sup> <sup>_f j_</sup> <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_u_</sup> <sup>) +</sup> <sup>_f j_</sup> <sup>(1 −</sup> <sup>_u_</sup> <sup>,</sup> <sup>_u_</sup> <sup>) +</sup> <sup>_f j_</sup> <sup>(1 −</sup> <sup>_u_</sup> <sup>, 1 −</sup> <sup>_u_</sup> <sup>) +</sup> <sup>_f j_</sup> <sup>(</sup> <sup>_u_</sup> <sup>, 1 −</sup> <sup>_u_</sup> <sup>).</sup> (20) Naturally, this introduces a different issue, which is the _a-priori_ choice of the numbers of nodes on a bimedian, diagonal or ‘ordinary’ position. It is very difficult to obtain a good initial guess for a non-linear optimisation problem of this kind. Unlike in the case of spline spaces (and tensor products built upon them), where one can deduce the number of quadrature points lying in each particular knot span, see e.g. [30], in our case the support of all the involved functions is the whole unit square. Another common initialisation strategy, namely a uniform distribution of quadrature points and equal weights, which is simple for a 1D domain, is impossible over the unit square for a given number of nodes such as _m_ = 7 not forming a perfect square. Therefore, we opted for random initial guesses, which turned out to be a good choice in our setting. Next, an important observation is that there might be certain sets of basis functions satisfying the same symmetries. That is, we could have e.g. _fp_ ( _u_, _v_ ) = _fq_ (1 − _u_, _v_ ), which would then allow us to remove either _fp_ or _fq_ from the system of equations. Although this does not influence the space of feasible solutions, it can considerably speed up the optimisation. We have implemented this function elimination procedure symbolically in Maple (using parameter substitutions such as _u_ ← (1− _u_ ) and detecting scaled versions by division) to reduce the number of functions involved in the optimisations to the _relevant_ functions forming a set with no symmetries and scaled copies left. The resulting system of equations (here, as an example, using a single point on a bimedian and another on a diagonal, _s_ as the number of relevant functions and _t_ as the number of symmetric quadrature points) is now as follows:  _g_ <sup>+</sup> 1 _g_ <sup>+</sup> 1 <sup>(</sup> 2 <sup><u>1</u></sup> <sup>,</sup> <sup>_v_</sup> <sup>1)</sup> _g_ <sup>×</sup> 1 <sup>(</sup> <sup>_u_</sup> <sup>2,</sup> <sup>_u_</sup> <sup>2)</sup> _g_ 1( _u_ 3, _v_ 3) . . . _g_ 1( _ut_, _vt_ ) ... ... ... ... _g_ <sup>+</sup> _s_ <sup>(</sup> <sup><u>1</u></sup> 2 <sup>,</sup> <sup>_v_</sup> <sup>1)</sup> _g_ <sup>×</sup> _s_ <sup>(</sup> <sup>_u_</sup> <sup>2,</sup> <sup>_u_</sup> <sup>2)</sup> _gs_ ( _u_ 3, _v_ 3) . . . _gs_ ( _ut_, _vt_ ) <sup>+</sup> 1 <sup>(</sup> 2 <sup><u>1</u></sup> <sup>,</sup> <sup>_v_</sup> <sup>1)</sup> _g_ <sup>×</sup> 1 <sup>+</sup> _s_ <sup>(</sup> <sup><u>1</u></sup> 2 <sup><u>1</u></sup> 2 <sup>,</sup> <sup>_v_</sup> <sup>1)</sup> _g_ <sup>×</sup> _s_  ω1 ... ω _t_  = I. (21) <sup>×</sup> _s_ <sup>(</sup> <sup>_u_</sup> <sup>2,</sup> <sup>_u_</sup> <sup>2)</sup> _gs_ ( _u_ 3, _v_ 3) . . . _gs_ ( _ut_, _vt_ )  10 Table 2: An overview for the spaces GG, G _u_ G _u_, G _u_ G _v_, and GG _u_ . The second column lists the number of _relevant_ functions in each space (thus up to symmetries and scaling), which is followed by the counts of nodes on bimedians, diagonals, and general nodes over □. The final column lists the <u>total number of nodes in the quadratures.</u> <u>Relevant products</u> <u>Bimedial nodes</u> <u>Diagonal nodes</u> <u>Ordinary nodes</u> <u>Total nodes</u> GG <u>29</u> <u>1</u> <u>1</u> <u>4</u> <u>1 · 4 + 1 · 4 + 4 · 8 = 40</u> G _<u>u</u>_ G _<u>u</u>_ <u>56</u> <u>2</u> <u>2</u> <u>4</u> <u>2 · 4 + 2 · 4 + 4 · 8 = 48</u> G _<u>u</u>_ G _<u>v</u>_ <u>51</u> <u>1</u> <u>1</u> <u>4</u> <u>1 · 4 + 1 · 4 + 4 · 8 = 40</u> GG _<u>u</u>_ <u>87</u> <u>2</u> <u>1</u> <u>5</u> <u>2 · 4 + 1 · 4 + 5 · 8 = 52</u> Without bimedial or diagonal nodes, the partial derivatives of the residuals _r_ _j_ = <sup>�</sup> _k_ <sup>_g_</sup> _j_ <sup>(</sup> <sup>_u_</sup> _k_ <sup>,</sup> <sup>_v_</sup> _k_ <sup>)ω</sup> _k_ <sup>−I</sup> _j_ <sup>now corre-</sup> spond to <sup>∂</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> <sup>(1 −</sup> <sup>_vk_</sup> <sup>,</sup> <sup>_uk_</sup> <sup>) −</sup> <sup>∂</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> <sup>(1 −</sup> <sup>_vk_</sup> <sup>, 1 −</sup> <sup>_uk_</sup> <sup>) −</sup> ∂ _r_ _j_ ∂ _uk_ = - ∂∂ _uf_ _j_ <sup>(</sup> <sup>_uk_</sup> <sup>,</sup> <sup>_vk_</sup> <sup>) −</sup> <sup>∂</sup> ∂ _u_ <sup>_f_</sup> <sup>_j_</sup> <sup>∂</sup> ∂ _u_ <sup>_f_</sup> <sup>_j_</sup> <sup>(1 −</sup> <sup>_uk_</sup> <sup>,</sup> <sup>_vk_</sup> <sup>) +</sup> <sup>∂</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> ∂∂ _uf_ _j_ <sup>(1 −</sup> <sup>_uk_</sup> <sup>, 1 −</sup> <sup>_vk_</sup> <sup>) +</sup> <sup>∂</sup> ∂ _u_ <sup>_f_</sup> <sup>_j_</sup> <sup>∂</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> <sup>(</sup> <sup>_vk_</sup> <sup>, 1 −</sup> <sup>_uk_</sup> <sup>) +</sup> <sup>∂</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> <sup>(</sup> <sup>_vk_</sup> <sup>,</sup> <sup>_uk_</sup> <sup>)</sup> ∂ _f_ _j_ <sup>∂</sup> ∂ _u_ <sup>_f_</sup> <sup>_j_</sup> <sup>(</sup> <sup>_uk_</sup> <sup>, 1 −</sup> <sup>_vk_</sup> <sup>) −</sup> <sup>∂</sup> ∂ <sup>_f_</sup> _v_ <sup>_j_</sup> ω _k_ . (22) Note that due to the chain rule, half of the terms come with a negative sign. In addition, half of the entries are partial derivatives of _f j_ with respect to _v_ rather than _u_ . The partial derivatives with respect to _vk_ are obtained similarly. As for the partials w.r.t. ω _k_, these are just the functions _g_ _j_ (similar to the ordinary setting; see (17)). The partial derivatives of the residuals involving _g_ <sup>+</sup> _j_ <sup>or</sup> <sup>_g_</sup> <sup>×</sup> _j_ <sup>are</sup> <sup>slightly</sup> <sup>different.</sup> <sup>For</sup> <sup>bimedial</sup> <sup>nodes,</sup> <sup>only</sup> <sup>the</sup> partial derivative w.r.t. _vk_ matters (and consists of four terms rather than eight). As for diagonal nodes, only the partial derivative w.r.t. _uk_ matters (and again consists of four terms, which are generally more complex in this setting as it involves the product rule). Using the above approach to derive quadratures for G, while restraining the (now single) quadrature point to a diagonal, we indeed obtain the same result as obtained in Section 3 (that is, the 2×2 Gauss-Legendre rule). In addition, note that there are merely three (rather than twenty) _relevant_ functions in the symmetric setting; see Figure 2. The function spaces G _u_, G _v_, and G _uv_, already addressed in Sections 4 and 5, were not considered in this symmetric context. 7. Integrating products and products of derivatives The partial derivatives of the residuals involving _g_ <sup>+</sup> _j_ <sup>+</sup> _j_ <sup>or</sup> <sup>_g_</sup> <sup>×</sup> _j_ In this section, we describe our main numerical contribution of the paper: symmetric quadrature rules for the product of G with itself, G _u_ = <sup><u>∂</u></sup> ∂ <sup><u>G</u></sup> _u_ <sup>with itself, G</sup> <sup>_u_</sup> <sup>G</sup> <sup>_v_</sup> <sup>=</sup> <sup><u>∂</u></sup> ∂ <sup><u>G</u></sup> _u_ <u>∂∂G</u> _v_ <sup>, as well as the mixed product space GG</sup> <sup>_u_</sup> <sup>.</sup> <sup><u>∂</u></sup> ∂ <sup><u>G</u></sup> _u_ <sup>with itself, G</sup> <sup>_u_</sup> <sup>G</sup> <sup>_v_</sup> <sup>=</sup> <sup><u>∂</u></sup> ∂ <sup><u>G</u></sup> _u_ <u>∂G</u> product of G with itself, G _u_ = <sup><u>∂</u></sup> ∂ <sup><u>G</u></sup> _u_ <sup>with itself, G</sup> <sup>_u_</sup> <sup>G</sup> <sup>_v_</sup> <sup>=</sup> <sup><u>∂</u></sup> ∂ <sup><u>G</u></sup> _u_ <u>∂∂G</u> _v_ <sup>, as well as the mixed product space GG</sup> <sup>_u_</sup> <sup>.</sup> The first step is to combine the product of functions with the notion of symmetry as described in the previous section. For two functions _fp_ ( _u_, _v_ ) and _fq_ ( _u_, _v_ ), we define ∂ _u_ _hpq_ ( _u_, _v_ ) = _fp_ ( _u_, _v_ ) _fq_ ( _u_, _v_ ) + _fp_ (1 − _u_, _v_ ) _fq_ (1 − _u_, _v_ ) + _fp_ (1 − _v_, _u_ ) _fq_ (1 − _v_, _u_ ) + _fp_ (1 − _v_, 1 − _u_ ) _fq_ (1 − _v_, 1 − _u_ ) + _fp_ (1 − _u_, 1 − _v_ ) _fq_ (1 − _u_, 1 − _v_ ) + _fp_ ( _u_, 1 − _v_ ) _fq_ ( _u_, 1 − _v_ ) + _fp_ ( _v_, 1 − _u_ ) _fq_ ( _v_, 1 − _u_ ) + _fp_ ( _v_, _u_ ) _fq_ ( _v_, _u_ ). (23) Note that _hpq_ ( _u_, _v_ ) - _gp_ ( _u_, _v_ ) _gq_ ( _u_, _v_ ), as the _g_ _j_ ( _u_, _v_ ) are sums of functions rather than factors (in which case we would have had _hpq_ = _gp_ - _gq_ ). The functions _h_ <sup>+</sup> _pq_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) and</sup> <sup>_h_</sup> <sup>×</sup> _pq_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) are defined analogously, but with symmetries with</sup> <sup>+</sup> _pq_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) and</sup> <sup>_h_</sup> <sup>×</sup> _pq_ would have had _hpq_ = _gp_ - _gq_ ). The functions _h_ <sup>+</sup> _pq_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) and</sup> <sup>_h_</sup> <sup>×</sup> _pq_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>) are defined analogously, but with symmetries with</sup> respect to the bimedians and the diagonals of □, respectively. As for symmetries of products, note that to start with, we have <sup>_<u>n</u>_</sup> <sup><u>(</u></sup> <sup>_<u>n</u>_</sup> 2 <sup><u>−1)</u></sup> pairs of functions that are pairwise identical. In other words, and focusing on our setting, for _n_ = 20 we obtain a 20 × 20 matrix of products, for which all 190 entries below (or above) the diagonal can be ignored/removed. In addition, following the same symmetry detection approach as described above, we can remove scaled and/or symmetrical versions of functions. In the case of GG, we are left with merely 29 of the 400 products. For the other two cases, the number of relevant products turns out to be 56 and 51, respectively; see the second column of Table 2. 11 As for symmetries of products, note that to start with, we have <sup>_<u>n</u>_</sup> <sup><u>(</u></sup> <sup>_<u>n</u>_</sup> 2 <sup><u>−1)</u></sup> GG G _u_ G _u_ G _u_ G _v_ GG _u_ Figure 6: Quadratures for the spaces GG (we conjecture this one to be unique), G _u_ G _u_, G _u_ G _v_, and GG _u_ . The highlighted nodes are listed in Tables 3–6, respectively. The nodes are again scaled proportionally to their associated weights. The system of equations has the same structure as (21), which we now express using the shorthand notation _Hw_ = J, where J contains the exact integrals of the _relevant_ products of functions (computed symbolically using Maple). The partial derivatives of the residuals are more involved in this setting, as every term now triggers the product rule (and those of _h_ <sup>×</sup> _pq_ <sup>even a</sup> <sup>_quadruple_</sup> <sup>product rule).</sup> <sup>As the resulting expressions do not have much added</sup> value, they are omitted from the paper. With everything now in place, we resort to educated guesses for the number of bimedial, diagonal, and ordinary nodes which we denote as triples ( _b_, _d_, _o_ ), and initialise them randomly. For GG, we have found rules satisfying the same tolerance as before, i.e. ∥ _Hw_ −J∥∞ < 1 _e_ - 16, starting from ( _b_, _d_, _o_ ) = (1, 1, 4). Moreover, the rule using this nodal count appears to be unique. As for the cases of G _u_ G _u_ and G _u_ G _v_, we obtained results starting from (2, 2, 4) and (1, 1, 4), respectively. In both cases there appear to be a small number of different rules. For the mixed space GG _u_ we obtained several results with at least 5 regular nodes with additional bimedial and diagonal ones, such as with the (2, 1, 5) node configuration. We selected the ones which appear the most uniform, i.e. have a fair distribution of nodes with gradually changing associated weights. The results are summarised in Table 2 and Figure 6. Individual quadratures are listed in Tables 3–6. Note that all nodes are safely away from the corners of □, thus avoiding any potential numerical instabilities in the quadratures when evaluating the functions near the singularities in the four corners of the domain. 12 Table 3: A 40-node quadrature for the space GG. Only the 6 dark nodes as shown in Figure 6, top left, are listed; the remaining nodes are obtained by symmetry. _<u>i</u>_ _<u>ui</u>_ _<u>vi</u>_ ω _<u>i</u>_ 1 <sup>+</sup> 0.5000 0000 0000 0000 0.0905 6973 0284 8170 0.0262 0952 9693 9717 2 <sup>×</sup> 0.3956 8294 1869 1628 0.3956 8294 1869 1628 0.0422 4139 6527 7472 3 0.3322 2167 8051 4396 0.0214 9440 2913 3952 0.0169 0274 6523 0801 4 0.0874 7945 9811 0069 0.0248 3028 9629 3109 0.0100 4208 4122 3864 5 0.3723 3639 6980 4577 0.2090 9808 5379 9072 0.0380 6215 8608 4612 <u>6</u> <u>0.2151 5319 7700 8579</u> <u>0.1098 3319 4339 1384</u> <u>0.0257 6754 7635 2129</u> Table 4: A 48-node quadrature for the space G _u_ G _u_ . Only the 8 dark nodes as shown in Figure 6, top right, are listed; the remaining nodes are obtained by symmetry. _<u>i</u>_ _<u>ui</u>_ _<u>vi</u>_ ω _<u>i</u>_ 1 <sup>+</sup> 0.5000 0000 0000 0000 0.1980 2558 3676 8669 0.0381 8500 8024 3771 2 <sup>+</sup> 0.5000 0000 0000 0000 0.0069 2954 8015 9801 0.0080 4075 9349 4086 3 <sup>×</sup> 0.3852 8526 4554 8323 0.3852 8526 4554 8323 0.0492 3319 5133 8609 4 <sup>×</sup> 0.0196 5851 0592 8419 0.0196 5851 0592 8419 0.0044 0136 6886 6572 5 0.3740 2402 1950 8236 0.0641 0217 6265 1844 0.0227 1943 2876 4887 6 0.1875 5392 3242 2541 0.0114 5761 5415 7695 0.0079 1293 7497 2532 7 0.2825 6546 7480 4259 0.1783 7707 0249 5502 0.0292 2893 5498 3503 <u>8</u> <u>0.1464 5385 7917 5176</u> <u>0.0704 1415 0570 9511</u> <u>0.0152 0852 9430 7559</u> 8. Numerical tests We perform several preliminary numerical tests on how the proposed quadrature rules perform on functions outside the considered linear spaces. To this end, we define the following three test functions _F_ 1 = _u_ ( _u_ + 7) <sup>2</sup> ( _u_ - 1) <sup>4</sup> _v_ <sup>3</sup> ( _v_ + 4)( _v_ + 1) <sup>3</sup>, (24) _F_ 2 = sin( _u_ ) cos( _v_ ), (25) _F_ 3 = ln ( _u_ <sup>2</sup> + _v_ <sup>2</sup> + 1), (26) which are shown over the unit square domain in Figure 7. Their exact integrals and the errors induced by a selection of our rules are summarised in Table 7. To gain insight into the behaviour of the quadrature errors under refinement of the domain, as is often the case in adaptive (isogeometric) methods, we proceed as follows. We recursively (and uniformly) split the original domain □ into four smaller squares, and apply our quadrature rules, appropriately shifted and scaled, to the sub-squares and sum all contributions, and compute the error with respect to the exact integral at each refinement step. Figure 8 shows, on a logarithmic scale, the result of this test using _F_ 1 and _F_ 2 across several of our rules. The results for _F_ 3 are similar to those for _F_ 2 and thus not reported. As expected, the absolute error goes down with every refinement step, at least until we hit the limits of our numerical precision, after which we do not see any improvement. Note that the GG rule integrates _F_ 1, a bi-degree 7 function, numerically exactly. For instance in the case of G _u_ G _v_, the error gets approximately 4 <sup>3</sup> = 64 times smaller with each refinement step, and for G and G _u_ this ratio is approximately 4 <sup>2</sup> = 16 for both _F_ 1 and _F_ 2. The corresponding exact rates 4 <sup>_r_</sup> are marked by _r_ in the figure next to the dotted triangles indicating these rates. It is worth noting that since the rules for the spaces G and G _uv_ are the standard 2 × 2 Gauss-Legendre rules, the known error estimates apply to them. The error analysis of our other rules when applied to functions outside our 13 Table 5: A 40-node quadrature for the space G _u_ G _v_ . Only the 6 dark nodes as shown in Figure 6, bottom left, are listed; the remaining nodes are obtained by symmetry. _<u>i</u>_ _<u>ui</u>_ _<u>vi</u>_ ω _<u>i</u>_ 1 <sup>+</sup> 0.5000 0000 0000 0000 0.3157 2647 0938 0255 0.0661 8307 2480 3311 2 <sup>×</sup> 0.2313 5808 6087 5473 0.2313 5808 6087 5473 0.0421 6084 1052 3185 3 0.3747 0407 1613 1695 0.1176 0911 5179 6072 0.0341 0492 8716 6164 4 0.0756 2648 4653 5047 0.0059 7387 7968 0662 0.0039 9869 6548 3779 5 0.1381 5104 9787 4147 0.0604 6459 5332 7444 0.0165 8001 9777 0600 <u>6</u> <u>0.3486 9754 3316 0818</u> <u>0.0209 4942 1639 7607</u> <u>0.0161 4439 8191 6209</u> Table 6: A 52-node quadrature for the space GG _u_ . Only the 8 dark nodes as shown in Figure 6, bottom right, are listed; the remaining nodes are obtained by symmetry. _<u>i</u>_ _<u>ui</u>_ _<u>vi</u>_ ω _<u>i</u>_ 1 <sup>+</sup> 0.5000 0000 0000 0000 0.1378 8683 8924 4187 0.0261 1995 4444 1711 2 <sup>+</sup> 0.5000 0000 0000 0000 0.3351 0974 8939 8083 0.0532 8115 2206 7506 3 <sup>∗</sup> 0.0256 6732 7768 5628 0.0256 6732 7768 5628 0.0052 0634 0490 9486 4 0.1624 1893 7090 3416 0.0843 2729 4874 7703 0.0171 9715 6125 6456 5 0.3458 7872 6304 7543 0.0769 2552 6392 5755 0.0166 6548 4597 7532 6 0.3087 4726 6512 8944 0.2068 5052 4243 3376 0.0312 2475 6754 2992 7 0.3909 8690 0739 4927 0.0183 4638 3648 7645 0.0103 2974 5659 9723 <u>8</u> <u>0.1594 9740 7996 5401</u> <u>0.0129 8539 8490 4721</u> <u>0.0072 7913 3291 3946</u> function spaces goes beyond the scope of the current paper. One could mimic the approach of [31, Theorem 5.2-3] and construct the corresponding uni- and bivariate kernels. However, the analysis in [31] assumes the exactness of the rule for the space of polynomials, while our spaces are rational. Another issues is that some of our rules were computed numerically, so up to some error, and since the quadrature points and weights appear in the estimates, the inaccuracy of the points/weights would affect also the estimates. 9. Conclusion and future work We have explored quadrature rules for the space G spanned by the 20 basis functions of Gregory quads, but also for the derived spaces G _u_ and G _uv_ . We have found symbolic quadratures for these three spaces. In the cases of G and Table 7: The integrals _Ii_ = �□ <sup>_Fi_</sup> <sup>d</sup> <sup>_u_</sup> <sup>d</sup> <sup>_v_</sup> <sup>,</sup> <sup>_i_</sup> <sup>∈{1, 2, 3} of the test functions are</sup> <sup>_I_</sup> <sup>1</sup> <sup>= 12.79,</sup> <sup>_I_</sup> <sup>2</sup> <sup>= 0.3868, and</sup> <sup>_I_</sup> <sup>3</sup> <sup>= 0.4790, reported with four significant</sup> digits. The corresponding errors _ei_ = _Ii_ - <sup>�</sup> <sup>_m_</sup> _j_ =1 <sup>ω</sup> <sup>_jFi_</sup> <sup>(</sup> <sup>_u_</sup> <sup>_j_</sup> <sup>,</sup> <sup>_v_</sup> <sup>_j_</sup> <sup>) introduced by the approximations computed by the rules presented in this paper are</sup> Table 7: The integrals _Ii_ = digits. The corresponding errors _ei_ = _Ii_ - <sup>�</sup> <sup>_m_</sup> _j_ =1 <sup>ω</sup> <sup>_jFi_</sup> <sup>(</sup> <sup>_u_</sup> <sup>_j_</sup> <sup>,</sup> <sup>_v_</sup> <sup>_j_</sup> <sup>) introduced by the approximations computed by the rules presented in this paper are</sup> listed. _<u>e</u>_ <u>1</u> _<u>e</u>_ <u>2</u> _<u>e</u>_ <u>3</u> G −1.897 <u>0.0001849</u> <u>0.00009486</u> G _<u>u</u>_ <u>1.483</u> <u>0.00007112</u> <u>0.00001085</u> GG −5.692 · 10 <sup>−15</sup> <u>1.903 · 10</u> <sup>−11</sup> <u>9.038 · 10</u> <sup>−8</sup> G _<u>u</u>_ G _<u>u</u>_ −8.785 · 10 <sup>−9</sup> −1.370 · 10 <sup>−11</sup> −6.368 · 10 <sup>−8</sup> G _<u>u</u>_ G _<u>v</u>_ <u>0.0006126</u> −2.258 · 10 <sup>−9</sup> −1.820 · 10 <sup>−7</sup> GG _<u>u</u>_ −2.467 · 10 <sup>−10</sup> −5.857 · 10 <sup>−12</sup> −2.627 · 10 <sup>−8</sup> 14 _<mark>F</mark>_ <u>1</u> _<mark>F</mark>_ <u>2</u> _<mark>F</mark>_ 3 Figure 7: Our test functions. From left to right: _F_ 1, _F_ 2, and _F_ 3, all plotted over the unit square domain □. log10| _e_ 1| log10| _e_ 2| 2 3 2 3 6 4 Refinement level Refinement level G G _u_ GG G _u_ G _u_ G _u_ G _v_ GG _u_ Figure 8: Plots of the logarithm of the absolute value of the error/difference _ei_ between the exact integral _Ii_ = Figure 8: Plots of the logarithm of the absolute value of the error/difference _ei_ between the exact integral _Ii_ = - <sup>_Fi_</sup> <sup>d</sup> <sup>_u_</sup> <sup>d</sup> <sup>_v_</sup> <sup>of</sup> <sup>_F_</sup> <sup>1</sup> <sup>(left)</sup> <sup>and</sup> <sup>_F_</sup> <sup>2</sup> (right) over the unit square and the progressively finer approximation obtained by applying our quadrature rules over the recursively refined unit square. Due to numerical precision limitations, the error stops decreasing after a certain number of refinement steps. Each dotted triangle, marked with its associated _r_, indicates the slope corresponding to error improvement rate of 4 <sup>_r_</sup> . G _uv_, the standard 2 × 2 Gauss-Legendre quadrature is exact and Gaussian. We have provided a 6-node quadrature for G _u_ and conjectured that a 5-node quadrature for this space does not exist. We have also investigated quadratures for the product spaces GG, G _u_ G _u_, G _u_ G _v_, as well as GG _v_ . Using numerical optimisation and heavily relying on symmetry, we have found numerical quadratures for these three spaces. Our investigation is, however, not complete; it provides several directions for future investigation. One concerns finding optimal quadrature rules in the case of the product spaces: the ones we have found are likely not Gaussian. Another direction is quadratures for higher-order derivatives, which may arise in higher-order problems. The secondorder derivatives of the 20 Gregory functions are square integrable, which opens up this possibility. It would also be interesting to apply these new quadrature rules to solve actual problems using Gregory patches, in the vein of [17, 18, 19]. Further, on top of our initial tests presented in Section 8, it would be useful to investigate the errors that our quadratures introduce when applied to functions outside the spaces they were designed for. Finally, focusing on the case of triangular Gregory patches is a natural continuation of our investigations into quadratures for Gregory patches. Acknowledgements The first author thanks the Chinese Scholarship Council for financial support. This research was in part supported by the Swiss National Science Foundation (SNSF) under grant 200021 ~~1~~ 92041. 15 References [1] F. B. Hildebrand, Introduction to numerical analysis, Courier Corporation, 1987. [2] J. A. Cottrell, T. J. Hughes, Y. Bazilevs, Isogeometric analysis: toward integration of CAD and FEA, John Wiley & Sons, 2009. [3] M. Bartoˇn, V. M. Calo, Gaussian quadrature for splines via homotopy continuation: rules for _C_ <sup>2</sup> cubic splines, Journal of Computational and Applied Mathematics 296 (2016) 709–723. [4] M. Bartoˇn, V. M. Calo, Optimal quadrature rules for odd-degree spline spaces and their application to tensor-product-based isogeometric analysis, Computer Methods in Applied Mechanics and Engineering 305 (2016) 217–240. [5] M. Bartoˇn, R. Ait-Haddou, V. M. Calo, Gaussian quadrature rules for _C_ <sup>1</sup> quintic splines with uniform knot vectors, Journal of Computational and Applied Mathematics 322 (2017) 57–70. [6] M. Bartoˇn, V. M. Calo, Gauss–Galerkin quadrature rules for quadratic and cubic spline spaces and their application to isogeometric analysis, Computer-Aided Design 82 (2017) 57–67. [7] T. J. Hughes, A. Reali, G. Sangalli, Efficient quadrature for NURBS-based isogeometric analysis, Computer methods in applied mechanics and engineering 199 (5-8) (2010) 301–313. [8] F. Auricchio, F. Calabro, T. J. Hughes, A. Reali, G. Sangalli, A simple algorithm for obtaining nearly optimal quadrature rules for NURBS based isogeometric analysis, Computer Methods in Applied Mechanics and Engineering 249 (2012) 15–27. [9] F. Calabro, G. Sangalli, M. Tani, Fast formation of isogeometric Galerkin matrices by weighted quadrature, Computer Methods in Applied Mechanics and Engineering 316 (2017) 606–622. [10] R. R. Hiemstra, F. Calabro, D. Schillinger, T. J. Hughes, Optimal and reduced quadrature rules for tensor product and hierarchically refined splines in isogeometric analysis, Computer Methods in Applied Mechanics and Engineering 316 (2017) 966–1004. [11] K. A. Johannessen, Optimal quadrature for univariate and tensor product splines, Computer Methods in Applied Mechanics and Engineering 316 (2017) 84–99. [12] G. Sangalli, M. Tani, Matrix-free weighted quadrature for a computationally efficient isogeometric _k_ -method, Computer Methods in Applied Mechanics and Engineering 338 (2018) 117–133. [13] P. J. Barendrecht, M. Bartoˇn, J. Kosinka, Efficient quadrature rules for subdivision surfaces in isogeometric analysis, Computer Methods in Applied Mechanics and Engineering 340 (2018) 1–23. [14] P. Barendrecht, Splines for engineers: with selected applications in numerical methods and computer graphics, Ph.D. thesis, University of Groningen (2019). [15] J. Kosinka, M. Bartoˇn, Gaussian quadrature for _C_ <sup>1</sup> cubic Clough–Tocher macro-triangles, Journal of Computational and Applied Mathematics 351 (2019) 6–13. [16] M. Bartoˇn, J. Kosinka, On numerical quadrature for _C_ <sup>1</sup> quadratic Powell–Sabin 6-split macro-triangles, Journal of Computational and Applied Mathematics 349 (2019) 239–250. [17] L. Greco, M. Cuomo, An implicit strong _G_ <sup>1</sup> -conforming formulation for the analysis of the Kirchhoff plate model, Continuum Mech. Ther modyn. 32 (2020) 621–645. [18] L. Greco, M. Cuomo, An implicit _G_ <sup>1</sup> -conforming bi-cubic interpolation for the analysis of smooth and folded Kirchhoff-Love shell assem blies, Computer Methods in Applied Mechanics and Engineering 373 (2021) 113476. [19] L. Greco, M. Cuomo, L. Contrafatto, A quadrilateral _G_ <sup>1</sup> -conforming finite element for the Kirchhoff plate model, Computer Methods in Applied Mechanics and Engineering 346 (2019) 913–951. [20] C. Loop, S. Schaefer, T. Ni, I. Castano, Approximating subdivision surfaces with Gregory patches for hardware tessellation, in: ACM SIGGRAPH Asia 2009 papers, 2009, pp. 1–9. [21] J. A. Gregory, Smooth interpolation without twist constraints, in: Computer aided geometric design, Elsevier, 1974, pp. 71–87. [22] G. J. Hettinga, J. Kosinka, Multisided generalisations of Gregory patches, Computer Aided Geometric Design 62 (2018) 166–180. [23] K. Ueda, A method for removing the singularities from Gregory surfaces, in: T. Lyche, L. L. Schumaker (Eds.), Mathematical Methods in Computer Aided Geometric Design II, Academic Press, 1992, pp. 597–606. [24] H. Chiyokura, T. Takamura, K. Konno, T. Harada, _G_ <sup>1</sup> surface interpolation over irregular meshes with rational curves, NURBS for Curve and Surface Design (1991) 15–34. [25] R. Hamming, Numerical Methods for Scientists and Engineers, Dover Publications Inc., 1962. [26] J. H. Kane, Boundary Element Analysis in Engineering Continuum Mechanics, Prentice Hall, 1994. [27] J. Bremer, Z. Gimbutas, V. Rokhlin, A nonlinear optimization procedure for generalized Gaussian quadratures, SIAM Journal on Scientific Computing 32 (4) (2010) 1761–1788. [28] H. Xiao, Z. Gimbutas, A numerical algorithm for the construction of efficient quadrature rules in two and higher dimensions, Computers & mathematics with applications 59 (2) (2010) 663–676. [29] S. Mousavi, H. Xiao, N. Sukumar, Generalized gaussian quadrature rules on arbitrary polygons, International Journal for Numerical Methods in Engineering 82 (1) (2010) 99–113. [30] G. Nikolov, On certain definite quadrature formulae, Journal of computational and applied mathematics 75 (2) (1996) 329–343. [31] A. H. Stroud, Approximate calculation of multiple integrals, Prentice-Hall, 1971. 16

섹션 본문 103문단 · 37,191자

(제목 없음)

1We investigate quadrature rules in the context of quadrilateral Gregory patches, in short Gregory quads.We provide numerical and where possible symbolic quadrature rules for the space spanned by the twenty polynomial/rational functions associated with Gregory quads, as well as the derived spaces including derivatives, products, and products of derivatives of these functions.This opens up the possibility for a wider adoption of Gregory quads in numerical simulations.

Introduction

2Numerical quadratures are indispensable in most numerical analyses and simulations.They provide an efficient means of numerically evaluating or approximating integrals of (spline) functions over various domains [1].In the bivariate setting, a quadrature rule for a function f from a certain space is defined as

3where Ω ⊂ R 2 represents the domain under consideration, m is the number of quadrature points t i (often called nodes) and their corresponding weights ω i , and R m ( f ) represents the error term of the rule.The rule is said to be exact if the error term vanishes for all elements of a linear function space under consideration.The rule is called Gaussian if there is no numerically exact rule that uses fewer nodes.In this paper, we focus on the basis functions associated with Gregory quads as well as the derived spaces useful in the context of numerical analysis.

4As isogeometric analysis [2] gained in popularity, so did the search for (Gaussian) quadrature rules for various function and spline spaces.In the fully structured tensor-product setting, the situation is fairly well developed and understood.B-spline quadrature has been studied in [3,4,5,6], NURBS quadrature in [7,8], and the tensor-product setting has been dealt with in [9,10,11,12].

5In contrast, the case of non-tensor product splines and other function spaces has received much less attention.To date, only a few recent advances in this direction have been made.In the case of Catmull-Clark subdivision, an approach to the quadrature for subdivision surfaces based on Catmull-Clark quad meshes was introduced in [13,14].This research discussed grouping strategies of quads around extraordinary vertices (EVs), as the surface around EVs has non-tensor product structure.This is an improvement over the naive, per-quad integration.In the area of triangles, the quadrature rules for spline spaces over macro-triangles have been studied in [15,16].The Hammer and Stroud rules generalise to the macro-element spaces of Clough-Tocher and Powell-Sabin provided that some conditions on the split points are met.

6Quadrature rules for rational (spline) spaces have not received much attention [7].Gregory quads, the focus of the present paper, which belong to the class of rational surfaces, were used in [17,18,19].The last reference mentions the use of a 4 × 4 quadrature scheme, which is in general non-exact in the given context.We improve on this in this paper.

7As shown in [20], Gregory patches provide an effective way of constructing globally G 1 surfaces of arbitrary manifold topology defined by quadrilateral meshes, for example as approximations to the more numerically demanding Catmull-Clark subdivision surfaces.This further motivated us to investigate quadrature rules for the space of functions spanned by the basis functions of Gregory quads as well as for the derived spaces needed in (isogeometric) analysis.

8We start by introducing the concepts and basis functions behind bicubic Bézier patches and quadrilateral Gregory patches in Section 2, as well as standard techniques for deriving quadrature rules.Our results regarding the quadrature rules for quadrilateral Gregory patches are presented in Section 3 for the basis functions themselves.This is followed by rules for partial derivatives (Section 4) and mixed derivatives (Section 5).In Section 6 we devise a numerical approach to quadrature finding, which we then apply to the cases of basis function products and products of their derivatives in Section 7. Several numerical tests of the quadratures are presented in Section 8.The paper is concluded in Section 9.

Preliminaries

9To fix notation and for the convenience of the reader, we recall here the definitions of bicubic Bézier patches and the Gaussian quadrature rule for their basis functions (Section 2.1), Gregory quads (Section 2.2), and provide a brief overview of standard methods for deriving quadrature rules (Section 2.3).

Bicubic Bézier Patches

10A bicubic Bézier patch is a parametric surface of polynomial bidegree (3, 3) defined over the unit square □ ⊂ R 2 .Let I = {0, 1, 2, 3}.Given 16 control points p i j , (i, j) ∈ I 2 (see Figure 1, left), the bicubic Bézier patch is defined as

11where

12the cubic Bernstein polynomials.The 16 polynomial functions span the linear space It is well known that B requires four quadrature nodes, known as the 2 × 2 tensor product Gauss-Legendre rule.Specifically,

13with the nodes (u i , v i ) and weights ω i specified in Table 1, for any function B(u, v) ∈ B. Note the symmetry of the rule with respect to the bimedians and diagonals of □; we will rely on this later on.

Gregory quads

14Quadrilateral Gregory patches [21] are a generalisation of bicubic Bézier surfaces.At the expense of introducing rational blending functions, they provide the possibility to join patches with G 1 continuity over unstructured quad meshes [20,22].This is achieved by separating the two mixed partial derivatives at each of the four patch corners.Each of the four internal control points of a bicubic Bézier patch is 'split' into two control points, and each such pair is blended rationally into one 'moving' point according to the (u, v) ∈ □ parameter position.More precisely,

15with removable singularities [23] at the four corners of □.The other 12 control points (along the boundary) are associated with the same basis functions as in the bicubic Bézier quad.As such, the boundaries of a Gregory quad are cubic Bézier curves.Note that there exist also rational boundary Gregory patches [24], but these are not considered here.The Gregory quad is thus governed by 20 control points, indexed by the set (see Figure 1, right) J = {00, 01, 02, 03, 10, 13, 20, 23, 30, 31, 32, 33, 11u, 11v, 12u, 12v, 21u, 21v, 22u, 22v}, and defined as The 20 functions, some of which are shown in Figure 2, span the linear space

16where

17,

18We now show that these functions are in fact basis functions and that dim(G) = 20.While this may be considered obvious, we have not found a formal proof of this fact in the existing literature.

19Theorem 2.1.The twenty Gregory quad functions G j , j ∈ J are linearly independent and therefore dim(G) = 20.

20Proof.Suppose for contradiction that k∈J c k G k = 0 over □ where not all c k vanish.Using G j also as 'test' functions and integrating over □ gives the 20 × 20 system Nc = 0, where the elements of N have the form □ G j G k du dv with j, k ∈ J and the elements of c are simply c k .Any solution c must be an element of ker(N).A direct computation confirms that dim(ker(N)) = 0, which concludes the proof.

Classical Techniques for Deriving Quadratures

21We now review classical quadrature derivation techniques, outline why they are insufficient in our context, and prepare the ground for our contribution in this direction.

22When considering a univariate function space S spanned by a weighted polynomial basis -that is, a polynomial basis where each function is multiplied by one and the same weighting function w(x) -quadratures can be derived by considering polynomials P k (x) that are orthogonal with respect to a known weighted inner product (using the same weighting function as mentioned earlier) on a certain domain Ω.It works by dividing a function w(x) f (x) ∈ S, where f (x) is a polynomial of at most degree 2d − 1, by the polynomial function P d (x) of degree d.This yields w(x) f (x) = w(x)Q(x)P d (x) + w(x)R(x), where both Q(x) and R(x) are polynomials of at most degree d − 1. Expressing Q(x) = k c k P k (x) and subsequently integrating over Ω then gives Ω w(x) f (x) dx = Ω w(x)R(x) dx because of orthogonality.Finally, expressing R(x) in a degree d − 1 Lagrange basis using the d roots x m of P d (x) as nodes, i.e.,

23A familiar example are the Gauss-Legendre rules, which follow from the Legendre basis which is orthogonal with respect to the standard L 2 inner product (with w(x) = 1).This means that the resulting quadratures apply to polynomial spaces.Other examples include Gauss-Jacobi and Gauss-Chebyshev quadratures, which are based on the Jacobi and Chebyshev polynomials orthogonal with respect to the inner products using w(x) = (1 − x) α (1 + x) β and w(x) = 1 √ 1−x 2 , respectively.In the setting where a weighting function is given but where its associated set of orthogonal polynomials is unknown, another method considering the moments of w(x) can be used to derive quadratures.These moments M k are the values of the integrals Ω w(x)x k dx, with k ∈ N 0 .With k going up to 2d − 1, we then assume the existence of d nodes x m and associated weights w m such that M k = m x k m w m ∀k ∈ {0, . . ., 2d − 1}.Next, we define a polynomial P d (x) = m (x − x m ) = x d + m α m x m , where the α m now have become the unknowns.In order to solve for these unknowns, we use them to define d weighted combinations C n of the moments M k as follows:

24This yields the linear system

25whose solvability is discussed for instance in [25,Chapter 19].Upon solving for the α m , we know P d (x) and can solve for its d roots x m .Finally, we can form another linear system using the equations for M k for k ∈ {0, d − 1} to solve for the d weights w m .An example using the above procedure is w(x) = − ln(x), which yields the logarithmic quadratures used in the 2D collocation boundary element method [26].

26The notion of orthogonal functions can be extended to the multivariate setting.However, the quadrature derivation method based on these does not directly apply to the Gregory setting: there is no common factor that can be extracted from these 20 functions (acting as the weighting function), and clearly there is no bivariate orthogonal polynomial basis spanning the same space as G. Similarly, the method based on moments of the weighting function (w(x) = 1 in our setting) does not apply as we are in a rational setting (rather than polynomial, allowing the use of moments in the first place).As such, another method must be devised, which we describe in Section 6, to derive quadrature rules for the challenging case of products of (derivatives of) Gregory basis functions.However, before that, we investigate the simpler cases first.

Gaussian quadrature for Gregory quads

27We now prove that the quadrature for bicubic Bézier patches (see Table 1) is also exact for Gregory patches.In other words, the quadrature of (4) is exact not only for B but also for G. Naturally, this can be proved directly by checking that all 20 basis functions G j (u, v) in ( 6) are integrated exactly by it.However, this offers no insight into the structure of the basis.Therefore, we now provide a more geometric proof.

28We first observe that, due to symmetry, it holds

29This, unsurprisingly, shows that B ⊂ G.The next step is to find four 'convenient' linearly independent functions D i , i ∈ I that extend the basis of B to a basis of G.By convenient, we mean the following: the four functions D i should have vanishing integrals over □ based on the four nodes listed in Table 1.As the 8 rational basis functions in (7), again due to symmetry, share the same integral over □ (the actual value is not important but, for the curious reader, it equals 1/32), we can simply take

30One of these blends, D 11 , is shown in Figure 3.Note that it is, by construction, anti-symmetric with respect to one of the diagonals of □.It follows that all four D functions are anti-symmetric with respect to one of the diagonals of □.Further, for each of them, the values at the four quadrature nodes are either 0 or pair-wise opposite to each other; this is the case due to the symmetry of the quadrature and anti-symmetry of the D i .It remains to show linear independence.

31Proof.The two equations ( 9) and ( 10) can be understood as a change of basis, going from 12 polynomial and 8 rational functions to 16 polynomial and 4 rational functions.It thus suffices to show that the corresponding change of basis matrix M is regular.Indeed,

321 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 −1 0 0 0 0 0 0 0 0 1 −1 0 0 0 0 0 0 0 0 1 −1 0 0 0 0 0 0 0 0 1 −1

33, where I and O are the unit and zero matrices of suitable sizes, respectively.This leads to det(M) = 16, which completes the proof.

34All combined, and given the fact that exact quadrature is a linear operator, we have proved the following

35with the nodes (u i , v i ) and weights ω i specified in Table 1.The quadrature is Gaussian.

36Furthermore, a symbolic computation in Maple shows that this is the only exact four-node quadrature for G that exists.

Quadrature for partial derivatives

37We now turn our attention to the space G u = span ∂G j ∂u , j ∈ J , i.e., the space spanned by the 20 partial derivatives of the Gregory quad basis functions with respect to u. Analogous results, due to symmetry, hold for the partials in the v direction.

38The 20 functions giving G u do not form a basis.That is apparent from Lemma 3.1: B u (defined analogously to G u ) does not have dimension 16, but rather only 12 as the space is spanned by tensor-product polynomials of degree 3 in v and degree 2 in u.Indeed, when using the approach taken in the proof of Theorem 2.1, we obtain dim(ker(N u )) = 4 with N u now constructed with respect to G u , which confirms that dim

39The search for quadrature for this space leads to equations of the form

40with ω i and (u i , v i ) as unknowns.Due to dim G u = 16 it is sufficient to consider only 16 linearly independent equations.As G u contains all biquadratic polynomials, one cannot expect the existence of a quadrature with fewer than four nodes.We thus first set m = 4.Using the computer algebra system Maple and the Gröbner basis computation it provides (after converting the rational equations in the system to polynomial ones) shows that the system admits no solution.We thus conclude that there is no four-node quadrature rule for G u .

41Next up, we investigate the case when m = 5.We first observe that the derivatives in G u exhibit, as a set, (only) one-fold symmetry: that with respect to v = 1/2.We thus set v 1 = 1/2 and set the remaining four nodes as corners of a rectangle symmetric with respect to v = 1/2.Using Maple shows again that this leads to no solutions.Although an asymmetric solution is unlikely, we tried to find one both using Maple and numerically using Python (following the approach described in Section 6).The numerical approach did not converge to a solution from any of our random initialisations, and Maple's computation with fully generic nodes and weights ran out of memory (64GB).We thus conjecture that the system admits no solution when m = 5.

42Finally, we set m = 6, which does lead to solutions.Not unexpectedly, Maple is not able to handle the system (13) in full generality or even with the v = 1/2 symmetry built in.We therefore turned to our numerical approach again, which delivered multiple solutions.Upon inspection, it led us to the case

43The last line of equalities follows from symmetry and the fact that the weights have to sum to one.This leaves only u 1 and ω 1 as unknowns.The Gröbner basis of the system, according to Maple, is

44Maple is able to solve this in radical form, but the expressions are far too long to be useful.With the precision of 30 digits, one obtains the following solution: u 1 = 0.0934779568755708578531910506923, ω 1 = 0.126063849132135287691741790291, which yields, when combined with ( 14), a 6-node symmetric quadrature for G u .

Gaussian Quadrature for Mixed Partial Derivatives

45The mixed partial derivatives ∂ 2 G j ∂u∂v , j ∈ J of the Gregory quad basis functions exhibit two-fold symmetry when considered as a set.Let G uv = span ∂ 2 G j ∂u∂v , j ∈ J .Using Lemma 3.1 again, it is clear that the dimension of G uv is at most 9 + 4 = 13, where the 9 comes from biquadratic polynomials spanning B uv .Turning again to the proof of Theorem 2.1, one obtains that dim(ker(N uv )) = 7 with N uv constructed according to G uv , confirming that dim G uv = 13.

46We approached the problem of quadrature-finding for G uv as in Section 4. To our surprise, we found a solution in the very first step, using only four nodes.And more surprisingly still, the quadrature rule for mixed derivatives of Gregory quads is the same as the one for Gregory quads; see Table 1.Further, a Gröbner basis computation confirms that this is the only solution with two-fold symmetry and four nodes (although 4 non-symmetric four-node solutions exist; see Figure 4).Since G uv contains biquadratic polynomials, this quadrature is optimal.We have thus proved the following Theorem 5.1.For any function H(u, v) ∈ G uv it holds that

47with the nodes (u i , v i ) and weights ω i specified in Table 1.The quadrature is Gaussian.

48Upon closer inspection, the result is actually not that surprising after all.Lemma 3.1 allows us to focus only on the mixed partial derivatives of the D-functions defined in (10); the other functions are simply biquadratic and thus integrated exactly by the rule.And thus again, the symmetry of the quadrature rule and the anti-symmetry of these functions allows us to arrive at Theorem 5.1.

Numerical optimisation using Python

49Before moving on to developing/deriving quadratures for products of the Gregory functions or their first-order partial derivatives, we describe a general numerical method that can be used to obtain quadratures for virtually any set of functions on a given domain Ω.This follows the approach of [27] and similar non-linear optimisation schemes.

50Given n bivariate functions f j (u, v), we assume the existence of m quadrature nodes (u k , v k ) and weights

51Unlike the two approaches described Section 2.3, the quadrature nodes and weights must now be solved for simultaneously.This can be done using a nonlinear least-squares approach, for which we use Python's SciPy library: scipy.optimize.least_squareswith the trust region reflective (trf) minimisation algorithm and numerical approximations of Jacobians.

52Writing the system of equations above as Fω = I, we define the n residuals r j = k f j (u k , v k )ω k − I j .Their partial derivatives with respect to the unknowns u k , v k and ω k required for the optimisation procedure are therefore

53The values of the exact integrals I j can be computed using e.g.Python's SymPy library or using Maple.This only has to be done once.

54There are multiple challenges in solving for the m triples (u k , v k , ω k ).First, there is the choice of m.On the one hand, it is desirable to set this as low as possible (we note that lower bounds on m are only known for specific cases, which means that in other cases they have to be estimated).On the other hand, a symmetric rule potentially using a slightly higher number of nodes/weights might be preferred.We get back to this point below.

55Secondly, as is usually the case in the context of optimisation, an initial guess is required.For a decent initial guess reasonably close to a solution (note that there might indeed be multiple solutions), we need to have extra insights.Without these, the only resort is a random initial guess, which does not come with any guarantee of convergence.

56Remark 1.While the random guesses may not seem to be the best initialization, it is an option that allows us to quickly explore the solution spaces with the least number of quadrature points.One could eventually follow the approach of [28] and initialise the quadratures, for example, via the pivoted Gram-Schmidt method, starting with a higher degree tensor product Gauss rule and eliminating those quadrature points with the smallest positive weight.However, such a search requires an excessive number of initial quadrature points, and does not guarantee to find a quadrature with the least possible quadrature points (see Table 1 in [28]).In contrast, we impose symmetry assumptions, which greatly reduces the search space, as we detail below.Finally, there is the matter of accuracy.Although symbolical solutions are arguably the best outcome, numerical solutions that are accurate to float64 machine precision are certainly an acceptable alternative.After all, it is likely that the obtained quadratures will be used in a numerical setting, where exact integration is not required.The tolerance we use is ∥Fw − I∥ ∞ < 1e − 16, which we achieve by using Python's NumPy's longdouble format for all computations.

57In order to test the implementation, we set f = G and m = 4. Unfortunately, without further insight, we initialise the triples (u k , v k , ω k ) with random values in (0, 1) 3 .

58Running the script 10.000 times resulted (somewhat surprisingly) in an equal number of successfully converged runs.The 4-node solution, which Maple confirms to be unique, is shown in a single scatter plot in Figure 4 (left).

59Next, setting f = G u , we get converging runs starting from m = 6.There appear to be many different solutions.The results of 1000 successfully converged runs are plotted in a single scatter plot (semi-transparently using an alpha/blending value of 1 100 ), which we refer to as a density scatter plot, shown in Figure 5 (left).One of these solutions was mentioned/discussed in Section 4. We note that not all runs converged satisfactorily; about 25 of them did not.Likewise, for f = G v we obtain the density scatter plot shown in Figure 5 (right).

60Out of curiosity, we also considered f = G u ∪G v .We obtain converging runs for m = 7. Interestingly enough, there appear to be just two solutions integrating all 40 functions; see Figure 4 (middle).Still using random initialisation, in addition to 1000 successfully converged runs, we get about 350 that do not converge satisfactorily (to local minima or saddle points).

61Finally, we return to m = 4 to check the uniqueness of the quadrature rules for f = G uv .There turn out to be four (mutually symmetric) solutions in addition to the 2 × 2 Gauss-Legendre rule mentioned and verified in Section 5; see Figure 4 (right).We note that in this case convergence is problematic; only about 1 in every 45 runs converges successfully.

Exploiting symmetry

62Up to this point, no symmetry has been enforced in the optimisation process.However, when moving on to deriving quadratures for products of (derivatives of) functions, as described in the next section, the numbers of functions and quadrature nodes/weights generally increase considerably.In such a setting, restricting the set of feasible solutions to symmetric quadratures can greatly speed up the optimisation process.A slight drawback is that potentially more efficient non-symmetric quadrature rules remain undiscovered.However, this potential drawback is outweighed by the independence/invariance with respect to the orientation of the quadrilateral element and the more efficient storage of symmetric quadratures.Moreover, it is a common assumption that, when dealing with a symmetric parametric domain, the corresponding quadrature is expected to be symmetric as well [28,29].

63The symmetries of the unit square are rather straightforward.For a point not on a bimedian or diagonal, we have an 8-fold symmetry.For those that do lie on a bimedian or diagonal, there is only 4-fold symmetry (though by using Figure 5: Density scatter plots for 1000 successfully converged runs (see also [14]) for G u and G v .An alpha value of 1 100 was used.

64a pair of points, it could be interpreted as an 8-fold symmetry again).

65As such, we now consider the functions

66For nodes that move to a location on a bimedian or diagonal, this symmetry approach results in a pair of overlapping nodes.Note that this comes with a certain challenge: a tolerance to decide whether nodes indeed overlap or not.Rather than setting up such tolerances, we add the option to explicitly constrain nodes to a bimedian or diagonal.That is, for (u k , v k ) on a bimedian, we consider the functions

67whereas for (u k , v k ) on a diagonal, we consider the functions

68Naturally, this introduces a different issue, which is the a-priori choice of the numbers of nodes on a bimedian, diagonal or 'ordinary' position.It is very difficult to obtain a good initial guess for a non-linear optimisation problem of this kind.Unlike in the case of spline spaces (and tensor products built upon them), where one can deduce the number of quadrature points lying in each particular knot span, see e.g.[30], in our case the support of all the involved functions is the whole unit square.Another common initialisation strategy, namely a uniform distribution of quadrature points and equal weights, which is simple for a 1D domain, is impossible over the unit square for a given number of nodes such as m = 7 not forming a perfect square.Therefore, we opted for random initial guesses, which turned out to be a good choice in our setting.

69Next, an important observation is that there might be certain sets of basis functions satisfying the same symmetries.That is, we could have e.g.f p (u, v) = f q (1 − u, v), which would then allow us to remove either f p or f q from the system of equations.Although this does not influence the space of feasible solutions, it can considerably speed up the optimisation.We have implemented this function elimination procedure symbolically in Maple (using parameter substitutions such as u ← (1−u) and detecting scaled versions by division) to reduce the number of functions involved in the optimisations to the relevant functions forming a set with no symmetries and scaled copies left.

70The resulting system of equations (here, as an example, using a single point on a bimedian and another on a diagonal, s as the number of relevant functions and t as the number of symmetric quadrature points) is now as follows:

71Figure 6: Quadratures for the spaces GG (we conjecture this one to be unique), G u G u , G u G v , and GG u .The highlighted nodes are listed in Tables 3-6, respectively.The nodes are again scaled proportionally to their associated weights.

72Without bimedial or diagonal nodes, the partial derivatives of the residuals r j = k g j (u k , v k )ω k − I j now correspond to

73Note that due to the chain rule, half of the terms come with a negative sign.In addition, half of the entries are partial derivatives of f j with respect to v rather than u.The partial derivatives with respect to v k are obtained similarly.As for the partials w.r.t.ω k , these are just the functions g j (similar to the ordinary setting; see (17)).

74The partial derivatives of the residuals involving g + j or g × j are slightly different.For bimedial nodes, only the partial derivative w.r.t.v k matters (and consists of four terms rather than eight).As for diagonal nodes, only the partial derivative w.r.t.u k matters (and again consists of four terms, which are generally more complex in this setting as it involves the product rule).

75Using the above approach to derive quadratures for G, while restraining the (now single) quadrature point to a diagonal, we indeed obtain the same result as obtained in Section 3 (that is, the 2×2 Gauss-Legendre rule).In addition, note that there are merely three (rather than twenty) relevant functions in the symmetric setting; see Figure 2. The function spaces G u , G v , and G uv , already addressed in Sections 4 and 5, were not considered in this symmetric context.Table 2: An overview for the spaces GG, G u G u , G u G v , and GG u .The second column lists the number of relevant functions in each space (thus up to symmetries and scaling), which is followed by the counts of nodes on bimedians, diagonals, and general nodes over □.The final column lists the total number of nodes in the quadratures.

Relevant products Bimedial nodes Diagonal nodes Ordinary nodes

76Total nodes

Integrating products and products of derivatives

77In this section, we describe our main numerical contribution of the paper: symmetric quadrature rules for the product of G with itself, G u = ∂G ∂u with itself, G u G v = ∂G ∂u ∂G ∂v , as well as the mixed product space GG u .The first step is to combine the product of functions with the notion of symmetry as described in the previous section.For two functions f p (u, v) and f q (u, v), we define

78Note that h pq (u, v) g p (u, v)g q (u, v), as the g j (u, v) are sums of functions rather than factors (in which case we would have had h pq = g p • g q ).The functions h + pq (u, v) and h × pq (u, v) are defined analogously, but with symmetries with respect to the bimedians and the diagonals of □, respectively.

79As for symmetries of products, note that to start with, we have n(n−1) 2 pairs of functions that are pairwise identical.In other words, and focusing on our setting, for n = 20 we obtain a 20 × 20 matrix of products, for which all 190 entries below (or above) the diagonal can be ignored/removed.

80In addition, following the same symmetry detection approach as described above, we can remove scaled and/or symmetrical versions of functions.In the case of GG, we are left with merely 29 of the 400 products.For the other two cases, the number of relevant products turns out to be 56 and 51, respectively; see the second column of Table 2.

81The system of equations has the same structure as (21), which we now express using the shorthand notation Hw = J, where J contains the exact integrals of the relevant products of functions (computed symbolically using Maple).The partial derivatives of the residuals are more involved in this setting, as every term now triggers the product rule (and those of h × pq even a quadruple product rule).As the resulting expressions do not have much added value, they are omitted from the paper.

82With everything now in place, we resort to educated guesses for the number of bimedial, diagonal, and ordinary nodes which we denote as triples (b, d, o), and initialise them randomly.

83For GG, we have found rules satisfying the same tolerance as before, i.e. ∥Hw − J∥ ∞ < 1e − 16, starting from (b, d, o) = (1, 1, 4).Moreover, the rule using this nodal count appears to be unique.As for the cases of G u G u and G u G v , we obtained results starting from (2, 2, 4) and (1, 1, 4), respectively.In both cases there appear to be a small number of different rules.For the mixed space GG u we obtained several results with at least 5 regular nodes with additional bimedial and diagonal ones, such as with the (2, 1, 5) node configuration.We selected the ones which appear the most uniform, i.e. have a fair distribution of nodes with gradually changing associated weights.

84The results are summarised in Table 2 and Figure 6.Individual quadratures are listed in Tables 3-6.Note that all nodes are safely away from the corners of □, thus avoiding any potential numerical instabilities in the quadratures when evaluating the functions near the singularities in the four corners of the domain.

Numerical tests

85We perform several preliminary numerical tests on how the proposed quadrature rules perform on functions outside the considered linear spaces.To this end, we define the following three test functions

86which are shown over the unit square domain in Figure 7. Their exact integrals and the errors induced by a selection of our rules are summarised in Table 7.

87To gain insight into the behaviour of the quadrature errors under refinement of the domain, as is often the case in adaptive (isogeometric) methods, we proceed as follows.We recursively (and uniformly) split the original domain □ into four smaller squares, and apply our quadrature rules, appropriately shifted and scaled, to the sub-squares and sum all contributions, and compute the error with respect to the exact integral at each refinement step.Figure 8 shows, on a logarithmic scale, the result of this test using F 1 and F 2 across several of our rules.The results for F 3 are similar to those for F 2 and thus not reported.As expected, the absolute error goes down with every refinement step, at least until we hit the limits of our numerical precision, after which we do not see any improvement.Note that the GG rule integrates F 1 , a bi-degree 7 function, numerically exactly.

88For instance in the case of G u G v , the error gets approximately 4 3 = 64 times smaller with each refinement step, and for G and G u this ratio is approximately 4 2 = 16 for both F 1 and F 2 .The corresponding exact rates 4 r are marked by r in the figure next to the dotted triangles indicating these rates.

89It is worth noting that since the rules for the spaces G and G uv are the standard 2 × 2 Gauss-Legendre rules, the known error estimates apply to them.The error analysis of our other rules when applied to functions outside our function spaces goes beyond the scope of the current paper.One could mimic the approach of [31, Theorem 5.2-3] and construct the corresponding uni-and bivariate kernels.However, the analysis in [31] assumes the exactness of the rule for the space of polynomials, while our spaces are rational.Another issues is that some of our rules were computed numerically, so up to some error, and since the quadrature points and weights appear in the estimates, the inaccuracy of the points/weights would affect also the estimates.

Conclusion and future work

90We have explored quadrature rules for the space G spanned by the 20 basis functions of Gregory quads, but also for the derived spaces G u and G uv .We have found symbolic quadratures for these three spaces.In the cases of G and G uv , the standard 2 × 2 Gauss-Legendre quadrature is exact and Gaussian.We have provided a 6-node quadrature for G u and conjectured that a 5-node quadrature for this space does not exist.We have also investigated quadratures for the product spaces GG, G u G u , G u G v , as well as GG v .Using numerical optimisation and heavily relying on symmetry, we have found numerical quadratures for these three spaces.

91Our investigation is, however, not complete; it provides several directions for future investigation.One concerns finding optimal quadrature rules in the case of the product spaces: the ones we have found are likely not Gaussian.Another direction is quadratures for higher-order derivatives, which may arise in higher-order problems.The secondorder derivatives of the 20 Gregory functions are square integrable, which opens up this possibility.It would also be interesting to apply these new quadrature rules to solve actual problems using Gregory patches, in the vein of [17,18,19].Further, on top of our initial tests presented in Section 8, it would be useful to investigate the errors that our quadratures introduce when applied to functions outside the spaces they were designed for.Finally, focusing on the case of triangular Gregory patches is a natural continuation of our investigations into quadratures for Gregory patches.

Figure 1 :

92Figure 1: The control net and labeling scheme of a bicubic Bézier patch (left) and a Gregory patch (right).

Figure 2 :

93Figure 2: Up to symmetries, there are only three basis function shapes in G. From left to right: G 03 , G 13 , and G 12u .

Figure 3 :

94Figure 3: Basis functions G 11v (top) and G 11u (bottom), their sum B 11 (left) and their difference D 11 (right), all scaled up by a factor of 4 for visualization purposes.Note that D 11 is antisymmetric with respect to the dashed diagonal of □ (along which it vanishes).Lemma 3.1.It holds that G = B ⊕ span(D 12 , D 11 , D 21 , D 22 ).(11)

Figure 4 :

95Figure 4: From left to right: Quadrature for G, two quadratures for G u and G v combined, and five quadratures for G uv .The colours of the nodes correspond to different quadrature rules.In all cases, these are the only quadratures found given the specific number of nodes.The nodes are scaled proportionally to their associated weights.

Figure 7 :

96Figure 7: Our test functions.From left to right: F 1 , F 2 , and F 3 , all plotted over the unit square domain □.

Figure 8 :

97Figure8: Plots of the logarithm of the absolute value of the error/difference e i between the exact integral I i = □ F i du dv of F 1 (left) and F 2 (right) over the unit square and the progressively finer approximation obtained by applying our quadrature rules over the recursively refined unit square.Due to numerical precision limitations, the error stops decreasing after a certain number of refinement steps.Each dotted triangle, marked with its associated r, indicates the slope corresponding to error improvement rate of 4 r .

Table 1 :

98The four quadrature nodes and weights for bicubic polynomials over the unit square.

Table 3 :

99A 40-node quadrature for the space GG.Only the 6 dark nodes as shown in Figure6, top left, are listed; the remaining nodes are obtained by symmetry.

Table 4 :

100A 48-node quadrature for the space G u G u .Only the 8 dark nodes as shown in Figure6, top right, are listed; the remaining nodes are obtained by symmetry.

Table 5 :

101A 40-node quadrature for the space G u G v .Only the 6 dark nodes as shown in Figure6, bottom left, are listed; the remaining nodes are obtained by symmetry.

Table 6 :

102A 52-node quadrature for the space GG u .Only the 8 dark nodes as shown in Figure6, bottom right, are listed; the remaining nodes are obtained by symmetry.

Table 7 :

103The integrals I i = □ F i du dv, i ∈ {1, 2, 3} of the test functions are I 1 = 12.79,I 2 = 0.3868, and I 3 = 0.4790, reported with four significant digits.The corresponding errors e i = I i − m j=1 ω j F i (u j , v j ) introduced by the approximations computed by the rules presented in this paper are listed.G u −8.785 • 10 −9 −1.370 • 10 −11 −6.368 • 10 −8 G u G v 0.0006126 −2.258 • 10 −9 −1.820 • 10 −7 GG u −2.467 • 10 −10 −5.857 • 10 −12 −2.627 • 10 −8

참고문헌 30건

  1. Computer Aided Geometric Design Elsevier eBooks · Elsevier BV · 1974 10.1016/c2013-0-10333-9
  2. Isogeometric Analysis: Toward Integration of CAD and FEA 2009
  3. Boundary Element Analysis in Engineering Continuum Mechanics 1994
  4. Gaussian quadrature for splines via homotopy continuation: Rules for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si57.gif" display="inline" overflow="scroll"><mml:msup><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math> cubic splines Journal of Computational and Applied Mathematics · Elsevier BV · 2015 10.1016/j.cam.2015.09.036
  5. On the approximate calculation of multiple integrals Journal of Complexity · Elsevier BV · 2015 10.1016/j.jco.2014.12.003
  6. On certain definite quadrature formulae Journal of Computational and Applied Mathematics · Elsevier BV · 1996 10.1016/s0377-0427(96)00086-6
  7. A Nonlinear Optimization Procedure for Generalized Gaussian Quadratures SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2010 10.1137/080737046
  8. Introduction to Numerical Analysis. American Mathematical Monthly · Taylor & Francis · 1968 10.2307/2313474
  9. A numerical algorithm for the construction of efficient quadrature rules in two and higher dimensions Computers & Mathematics with Applications · Elsevier BV · 2009 10.1016/j.camwa.2009.10.027
  10. Generalized Gaussian quadrature rules on arbitrary polygons International Journal for Numerical Methods in Engineering · Wiley · 2009 10.1002/nme.2759
  11. Efficient quadrature for NURBS-based isogeometric analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2008 10.1016/j.cma.2008.12.004
  12. A simple algorithm for obtaining nearly optimal quadrature rules for NURBS-based isogeometric analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2012 10.1016/j.cma.2012.04.014
  13. Optimal quadrature rules for odd-degree spline spaces and their application to tensor-product-based isogeometric analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.02.034
  14. Fast formation of isogeometric Galerkin matrices by weighted quadrature Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.09.013
  15. Optimal quadrature for univariate and tensor product splines Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.04.030
  16. Optimal and reduced quadrature rules for tensor product and hierarchically refined splines in isogeometric analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.10.049
  17. Gaussian quadrature rules for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si54.gif" display="inline" overflow="scroll"><mml:msup><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:math> quintic splines with uniform knot vectors Journal of Computational and Applied Mathematics · Elsevier BV · 2017 10.1016/j.cam.2017.02.022
  18. Multisided generalisations of Gregory patches Computer Aided Geometric Design · Elsevier BV · 2018 10.1016/j.cagd.2018.03.005
  19. Matrix-free weighted quadrature for a computationally efficient isogeometric <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="mml109" display="inline" overflow="scroll" altimg="si109.gif"><mml:mi>k</mml:mi></mml:math>-method Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.04.029
  20. Numerical Methods for Scientists and Engineers. Journal of the Royal Statistical Society Series A (General) · Wiley · 1962 10.2307/2982636
  21. Efficient quadrature rules for subdivision surfaces in isogeometric analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.05.017
  22. On numerical quadrature for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="mml63" display="inline" overflow="scroll" altimg="si4.gif"><mml:msup><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:math> quadratic Powell–Sabin 6-split macro-triangles Journal of Computational and Applied Mathematics · Elsevier BV · 2018 10.1016/j.cam.2018.07.051
  23. An implicit strong $$\mathrm {G}^{1}$$-conforming formulation for the analysis of the Kirchhoff plate model Continuum Mechanics and Thermodynamics · Springer Science+Business Media · 2018 10.1007/s00161-018-0701-3
  24. A quadrilateral<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="mml196" display="inline" overflow="scroll" altimg="si196.gif"><mml:msup><mml:mrow><mml:mi mathvariant="normal">G</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:math>-conforming finite element for the Kirchhoff plate model Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.09.028
  25. Gaussian quadrature for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll" id="d1e812" altimg="si44.gif"><mml:msup><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:math> cubic Clough–Tocher macro-triangles Journal of Computational and Applied Mathematics · Elsevier BV · 2018 10.1016/j.cam.2018.10.036
  26. Gauss–Galerkin quadrature rules for quadratic and cubic spline spaces and their application to isogeometric analysis Computer-Aided Design · Elsevier BV · 2016 10.1016/j.cad.2016.07.003
  27. Splines for engineers: with selected applications in numerical methods and computer graphics 2019 10.33612/diss.102688532
  28. Mathematical Methods in Computer Aided Geometric Design II Elsevier eBooks · Elsevier BV · 1992 10.1016/c2013-0-11107-5
  29. An implicit <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" id="d1e3758" altimg="si145.svg"><mml:msup><mml:mrow><mml:mi mathvariant="normal">G</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:math>-conforming bi-cubic interpolation for the analysis of smooth and folded Kirchhoff–Love shell assemblies Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113476
  30. ACM SIGGRAPH Asia 2009 papers 2009 10.1145/1661412