pymor.discretizers.builtin.grids.referenceelements¶
Classes
- class pymor.discretizers.builtin.grids.referenceelements.Line[source]¶
Bases:
ReferenceElementMethods
Attributes
- mapped_diameter(A)[source]¶
Return the diameter after transformation.
The diameter of the reference element after transforming it with the matrix
A(vectorized).
- quadrature(order=None, npoints=None, quadrature_type='default')[source]¶
Return quadrature points and weights.
Returns tuple
(P, W)wherePis an array of quadrature points with corresponding weightsW.The quadrature is of order
orderor hasnpointsintegration points.
- quadrature_info()[source]¶
Return quadrature information.
Returns a tuple of dicts
(O, N)whereO[quadrature_type]is a list of orders which are implemented forquadrature_typeandN[quadrature_type]is a list of the corresponding numbers of integration points.
- subentities(codim, subentity_codim)[source]¶
Return subentities.
subentities(c,sc)[i,j]is, with respect to the indexing inside the reference element, the index of thej-th codim-subentity_codimsubentity of thei-th codim-codimsubentity of the reference element.
- subentity_embedding(subentity_codim)[source]¶
Return subentity embedding.
Returns a tuple
(A, B)which defines the embedding of the codim-subentity_codimsubentities into the reference element.For
subentity_codim > 1, the embedding is by default given recursively viasubentity_embedding(subentity_codim - 1)andsub_reference_element(subentity_codim - 1).subentity_embedding(1)choosing always the superentity with smallest index.
- class pymor.discretizers.builtin.grids.referenceelements.Point[source]¶
Bases:
ReferenceElementMethods
Attributes
- mapped_diameter(A)[source]¶
Return the diameter after transformation.
The diameter of the reference element after transforming it with the matrix
A(vectorized).
- quadrature(order=None, npoints=None, quadrature_type='default')[source]¶
Return quadrature points and weights.
Returns tuple
(P, W)wherePis an array of quadrature points with corresponding weightsW.The quadrature is of order
orderor hasnpointsintegration points.
- quadrature_info()[source]¶
Return quadrature information.
Returns a tuple of dicts
(O, N)whereO[quadrature_type]is a list of orders which are implemented forquadrature_typeandN[quadrature_type]is a list of the corresponding numbers of integration points.
- subentities(codim, subentity_codim)[source]¶
Return subentities.
subentities(c,sc)[i,j]is, with respect to the indexing inside the reference element, the index of thej-th codim-subentity_codimsubentity of thei-th codim-codimsubentity of the reference element.
- subentity_embedding(subentity_codim)[source]¶
Return subentity embedding.
Returns a tuple
(A, B)which defines the embedding of the codim-subentity_codimsubentities into the reference element.For
subentity_codim > 1, the embedding is by default given recursively viasubentity_embedding(subentity_codim - 1)andsub_reference_element(subentity_codim - 1).subentity_embedding(1)choosing always the superentity with smallest index.
- class pymor.discretizers.builtin.grids.referenceelements.Square[source]¶
Bases:
ReferenceElementMethods
Attributes
- mapped_diameter(A)[source]¶
Return the diameter after transformation.
The diameter of the reference element after transforming it with the matrix
A(vectorized).
- quadrature(order=None, npoints=None, quadrature_type='default')[source]¶
Return quadrature points and weights.
Returns tuple
(P, W)wherePis an array of quadrature points with corresponding weightsW.The quadrature is of order
orderor hasnpointsintegration points.
- quadrature_info()[source]¶
Return quadrature information.
Returns a tuple of dicts
(O, N)whereO[quadrature_type]is a list of orders which are implemented forquadrature_typeandN[quadrature_type]is a list of the corresponding numbers of integration points.
- subentities(codim, subentity_codim)[source]¶
Return subentities.
subentities(c,sc)[i,j]is, with respect to the indexing inside the reference element, the index of thej-th codim-subentity_codimsubentity of thei-th codim-codimsubentity of the reference element.
- subentity_embedding(subentity_codim)[source]¶
Return subentity embedding.
Returns a tuple
(A, B)which defines the embedding of the codim-subentity_codimsubentities into the reference element.For
subentity_codim > 1, the embedding is by default given recursively viasubentity_embedding(subentity_codim - 1)andsub_reference_element(subentity_codim - 1).subentity_embedding(1)choosing always the superentity with smallest index.
- class pymor.discretizers.builtin.grids.referenceelements.Triangle[source]¶
Bases:
ReferenceElementMethods
Attributes
- mapped_diameter(A)[source]¶
Return the diameter after transformation.
The diameter of the reference element after transforming it with the matrix
A(vectorized).
- quadrature(order=None, npoints=None, quadrature_type='default')[source]¶
Return quadrature points and weights.
Returns tuple
(P, W)wherePis an array of quadrature points with corresponding weightsW.The quadrature is of order
orderor hasnpointsintegration points.
- quadrature_info()[source]¶
Return quadrature information.
Returns a tuple of dicts
(O, N)whereO[quadrature_type]is a list of orders which are implemented forquadrature_typeandN[quadrature_type]is a list of the corresponding numbers of integration points.
- subentities(codim, subentity_codim)[source]¶
Return subentities.
subentities(c,sc)[i,j]is, with respect to the indexing inside the reference element, the index of thej-th codim-subentity_codimsubentity of thei-th codim-codimsubentity of the reference element.
- subentity_embedding(subentity_codim)[source]¶
Return subentity embedding.
Returns a tuple
(A, B)which defines the embedding of the codim-subentity_codimsubentities into the reference element.For
subentity_codim > 1, the embedding is by default given recursively viasubentity_embedding(subentity_codim - 1)andsub_reference_element(subentity_codim - 1).subentity_embedding(1)choosing always the superentity with smallest index.