pymor.discretizers.builtin.quadratures

Classes

GaussQuadratures

Gauss quadrature on the interval [0, 1].

class pymor.discretizers.builtin.quadratures.GaussQuadratures[source]

Bases: object

Gauss quadrature on the interval [0, 1].

classmethod iter_quadrature(order=None, npoints=None)[source]

Iterate over a quadrature tuple-wise.

Parameters:
  • order – Integration order.

  • npoints – Number of integration points.

classmethod maxpoints()[source]
classmethod quadrature(order=None, npoints=None)[source]

Return Gauss points with corresponding weights.

Parameters:
  • order – Integration order.

  • npoints – Number of integration points.

Returns:

  • points – Array of Gauss points.

  • weights – Integration weights.

a = array([0.02358767, 0.05346966, 0.08003916, 0.10158371, 0.11674627,        0.12457352, 0.12457352, 0.11674627, 0.10158371, 0.08003916,        0.05346966, 0.02358767])[source]
order_map = array([ 0,  0,  1,  1,  2,  2,  3,  3,  4,  4,  5,  5,  6,  6,  7,  7,  8,         8,  9,  9, 10, 10, 11, 11])[source]
orders = array([ 1,  3,  5,  7,  9, 11, 13, 15, 17, 19, 21, 23])[source]
points = (array([0.5]), array([0.21132487, 0.78867513]), array([0.11270167, 0.5       , 0.88729833]), array([0.06943184, 0.33000948, 0.66999052, 0.93056816]), array([0.04691008, 0.23076534, 0.5       , 0.76923466, 0.95308992]), array([0.03376524, 0.16939531, 0.38069041, 0.61930959, 0.83060469,        0.96623476]), array([0.02544604, 0.12923441, 0.29707742, 0.5       , 0.70292258,        0.87076559, 0.97455396]), array([0.01985507, 0.10166676, 0.2372338 , 0.40828268, 0.59171732,        0.7627662 , 0.89833324, 0.98014493]), array([0.01591988, 0.08198445, 0.19331428, 0.33787329, 0.5       ,        0.66212671, 0.80668572, 0.91801555, 0.98408012]), array([0.01304674, 0.06746832, 0.16029522, 0.2833023 , 0.42556283,        0.57443717, 0.7166977 , 0.83970478, 0.93253168, 0.98695326]), array([0.01088567, 0.0564687 , 0.134924  , 0.24045194, 0.36522842,        0.5       , 0.63477158, 0.75954806, 0.865076  , 0.9435313 ,        0.98911433]), array([0.00921968, 0.04794137, 0.11504866, 0.20634102, 0.31608425,        0.4373833 , 0.5626167 , 0.68391575, 0.79365898, 0.88495134,        0.95205863, 0.99078032]))[source]
weights = (array([1.]), array([0.5, 0.5]), array([0.27777778, 0.44444444, 0.27777778]), array([0.17392742, 0.32607258, 0.32607258, 0.17392742]), array([0.11846344, 0.23931434, 0.28444444, 0.23931434, 0.11846344]), array([0.08566225, 0.18038079, 0.23395697, 0.23395697, 0.18038079,        0.08566225]), array([0.06474248, 0.1398527 , 0.19091503, 0.20897959, 0.19091503,        0.1398527 , 0.06474248]), array([0.05061427, 0.11119052, 0.15685332, 0.18134189, 0.18134189,        0.15685332, 0.11119052, 0.05061427]), array([0.04063719, 0.09032408, 0.13030535, 0.15617354, 0.16511968,        0.15617354, 0.13030535, 0.09032408, 0.04063719]), array([0.03333567, 0.07472567, 0.10954318, 0.13463336, 0.14776211,        0.14776211, 0.13463336, 0.10954318, 0.07472567, 0.03333567]), array([0.02783428, 0.06279018, 0.09314511, 0.11659688, 0.13140227,        0.13646254, 0.13140227, 0.11659688, 0.09314511, 0.06279018,        0.02783428]), array([0.02358767, 0.05346966, 0.08003916, 0.10158371, 0.11674627,        0.12457352, 0.12457352, 0.11674627, 0.10158371, 0.08003916,        0.05346966, 0.02358767]))[source]