pymor.discretizers.builtin.grids.referenceelements
¶
Module Contents¶
Classes¶
Defines a reference element. |
|
Defines a reference element. |
|
Defines a reference element. |
|
Defines a reference element. |
Attributes¶
- class pymor.discretizers.builtin.grids.referenceelements.Point[source]¶
Bases:
pymor.discretizers.builtin.grids.interfaces.ReferenceElement
Defines a reference element.
All reference elements have the property that all subentities of a given codimension are of the same type. I.e. a three-dimensional reference element cannot have triangles and rectangles as faces at the same time.
- subentities(self, codim, subentity_codim)[source]¶
subentities(c,sc)[i,j]
is, with respect to the indexing inside the reference element, the index of thej
-th codim-subentity_codim
subentity of thei
-th codim-codim
subentity of the reference element.
- subentity_embedding(self, subentity_codim)[source]¶
Returns a tuple
(A, B)
which defines the embedding of the codim-subentity_codim
subentities into the reference element.For
subentity_codim > 1', the embedding is by default given recursively via `subentity_embedding(subentity_codim - 1)
andsub_reference_element(subentity_codim - 1).subentity_embedding(1)
choosing always the superentity with smallest index.
- sub_reference_element(self, codim)[source]¶
Returns the reference element of the codim-
codim
subentities.
- unit_outer_normals(self)[source]¶
retval[e]
is the unit outer-normal vector to the codim-1 subentity with indexe
.
- mapped_diameter(self, A)[source]¶
The diameter of the reference element after transforming it with the matrix
A
(vectorized).
- class pymor.discretizers.builtin.grids.referenceelements.Line[source]¶
Bases:
pymor.discretizers.builtin.grids.interfaces.ReferenceElement
Defines a reference element.
All reference elements have the property that all subentities of a given codimension are of the same type. I.e. a three-dimensional reference element cannot have triangles and rectangles as faces at the same time.
- subentities(self, codim, subentity_codim)[source]¶
subentities(c,sc)[i,j]
is, with respect to the indexing inside the reference element, the index of thej
-th codim-subentity_codim
subentity of thei
-th codim-codim
subentity of the reference element.
- subentity_embedding(self, subentity_codim)[source]¶
Returns a tuple
(A, B)
which defines the embedding of the codim-subentity_codim
subentities into the reference element.For
subentity_codim > 1', the embedding is by default given recursively via `subentity_embedding(subentity_codim - 1)
andsub_reference_element(subentity_codim - 1).subentity_embedding(1)
choosing always the superentity with smallest index.
- sub_reference_element(self, codim)[source]¶
Returns the reference element of the codim-
codim
subentities.
- unit_outer_normals(self)[source]¶
retval[e]
is the unit outer-normal vector to the codim-1 subentity with indexe
.
- mapped_diameter(self, A)[source]¶
The diameter of the reference element after transforming it with the matrix
A
(vectorized).
- class pymor.discretizers.builtin.grids.referenceelements.Square[source]¶
Bases:
pymor.discretizers.builtin.grids.interfaces.ReferenceElement
Defines a reference element.
All reference elements have the property that all subentities of a given codimension are of the same type. I.e. a three-dimensional reference element cannot have triangles and rectangles as faces at the same time.
- subentities(self, codim, subentity_codim)[source]¶
subentities(c,sc)[i,j]
is, with respect to the indexing inside the reference element, the index of thej
-th codim-subentity_codim
subentity of thei
-th codim-codim
subentity of the reference element.
- subentity_embedding(self, subentity_codim)[source]¶
Returns a tuple
(A, B)
which defines the embedding of the codim-subentity_codim
subentities into the reference element.For
subentity_codim > 1', the embedding is by default given recursively via `subentity_embedding(subentity_codim - 1)
andsub_reference_element(subentity_codim - 1).subentity_embedding(1)
choosing always the superentity with smallest index.
- sub_reference_element(self, codim)[source]¶
Returns the reference element of the codim-
codim
subentities.
- unit_outer_normals(self)[source]¶
retval[e]
is the unit outer-normal vector to the codim-1 subentity with indexe
.
- mapped_diameter(self, A)[source]¶
The diameter of the reference element after transforming it with the matrix
A
(vectorized).
- class pymor.discretizers.builtin.grids.referenceelements.Triangle[source]¶
Bases:
pymor.discretizers.builtin.grids.interfaces.ReferenceElement
Defines a reference element.
All reference elements have the property that all subentities of a given codimension are of the same type. I.e. a three-dimensional reference element cannot have triangles and rectangles as faces at the same time.
- subentities(self, codim, subentity_codim)[source]¶
subentities(c,sc)[i,j]
is, with respect to the indexing inside the reference element, the index of thej
-th codim-subentity_codim
subentity of thei
-th codim-codim
subentity of the reference element.
- subentity_embedding(self, subentity_codim)[source]¶
Returns a tuple
(A, B)
which defines the embedding of the codim-subentity_codim
subentities into the reference element.For
subentity_codim > 1', the embedding is by default given recursively via `subentity_embedding(subentity_codim - 1)
andsub_reference_element(subentity_codim - 1).subentity_embedding(1)
choosing always the superentity with smallest index.
- sub_reference_element(self, codim)[source]¶
Returns the reference element of the codim-
codim
subentities.
- unit_outer_normals(self)[source]¶
retval[e]
is the unit outer-normal vector to the codim-1 subentity with indexe
.
- mapped_diameter(self, A)[source]¶
The diameter of the reference element after transforming it with the matrix
A
(vectorized).