Quadrature Rules



The library _SourceCode/QuadratureRules contains a list of modules defining each inner and boundary quadrature rules to use when computing the new residuals within the spatial schemes. It also contains the module _SourceCode/Quadratures that interfaces the technical modules with the user wishes and defines a wrapper class containing an inner and inner quadrature rule of the user choice.


Note

Using an artificial wrapper class allows to select quadrature rules issued from different modules or libraries for the boundary and inner quadrature within a same spatial scheme.


Available quadrature modules (each module may contain several qudrature schemes)

  1. The QuadPy module

  2. The HandBased module




Quadratures wrapper class


class 3_LESARD.SourceCode._Solver.QuadratureRules.Quadratures.Quadratures(Mesh, *Params)

Input wrapper for the quadrature scheme within and on the boundary of the considered element.

Note

This interfacing is useful only to allow a type (Quadpy, Handbased) quadrature different for inner and boundary quadratures, otherwise a simple mapper class with specific initialisation parameters would have been enough.

Parameters
  • Mesh (MeshStructure) – the mesh considered for solving the problem

  • Params (string list) – the parameters that selects the type of quadrature to consider according to the mapper class, and their parametersself.

The Params should be of the type [InnerQuadratureParams, BoundaryQuadratureParams] where both InnerQuadratureParams and BoundaryQuadratureParams are strings in the format “int1,param1,param2,…” containing first the index of the wished quadrature type (see Mappers) followed by the parameters required by the selected quadrature type (see each quadrature class to know their respective parameter formats).