ElementTriple¶
- class fuse.triples.ElementTriple(cell, spaces, dof_gen, perm=True)¶
Bases:
objectClass to represent the three core parts of the element
- Param:
cell: CellComplex
- Param:
spaces: Pair of spaces: (PolynomialSpace, InterpolationSpace). The pullback is not given: it is induced by the kernels’ actions (see
pullback()).- Param:
dof_gen: Generator Triple to generate the degrees of freedom.
- __init__(cell, spaces, dof_gen, perm=True)¶
Methods
__init__(cell, spaces, dof_gen[, perm])compute_dense_matrix(ref_el, entity_ids, ...)dict_id()generate()get_dof_info(dof[, tikz])get_value_shape()mapping(g)A matrix describing how the symmetry
gof the cell transforms the DOFs.num_dofs()plot([filename])Generates Matplotlib code for the element diagrams.
pullback()The name of the map taking the element from the reference cell to a physical cell.
reverse_dof_perms(matrices)setup_ids_and_nodes()Builds the orientation matrices, the transformations of the DOFs under a reorientation of the entity.
The name of the Sobolev space the element lies in.
to_fiat()to_tikz([show, scale])Generates tikz code for the element diagram
to_ufl()Attributes
degreeThe degree of differential form this element represents.
- property form_degree¶
The degree of differential form this element represents.
The DOFs of a k-form are integrals over k-dimensional entities, so the form degree is the dimension of the lowest dimensional entity carrying a DOF.
- mapping(g)¶
A matrix describing how the symmetry
gof the cell transforms the DOFs. For an element triple, this is the direct sum of the generators’ mappings. The ith column is the image of the ith DOF (in generation order) under the symmetryg.
- plot(filename='temp.png')¶
Generates Matplotlib code for the element diagrams.
- pullback()¶
The name of the map taking the element from the reference cell to a physical cell. For the currently supported elements, this is induced by the kernel action. FUSE is currently restricted to standard pullbacks, where all DOFs are transformed in the same way.
- setup_matrices()¶
Builds the orientation matrices, the transformations of the DOFs under a reorientation of the entity. Structure: `` matrices[dimension][entity_id][orientation_key]`` Each matrix only transforms the DOFs on the entity referred to.
The inverse matrices are also provided.
- sobolev_space()¶
The name of the Sobolev space the element lies in.
An element whose kernels are k-forms is in H(d^k) only if it has DOFs on the k-dimensional entities (vertices for H1, edges for HCurl, facets for HDiv); otherwise it is only in L2. This is necessary, not sufficient, for conformity.
- to_tikz(show=True, scale=3)¶
Generates tikz code for the element diagram
Requires the usetikzlibrary{arrows.meta} library