Degree of freedom (DOF) descriptions#
- class grudge.dof_desc.DTAG_VOLUME_ALL[source]#
A domain tag denoting values defined in all cell volumes.
- class grudge.dof_desc.DTAG_BOUNDARY(tag)[source]#
A domain tag describing the values on element boundaries which are adjacent to elements of another
Mesh
.- tag#
- __init__(tag)[source]#
- Parameters
tag – One of the following:
BTAG_ALL
,BTAG_NONE
,BTAG_REALLY_ALL
,BTAG_PARTITION
.
- class grudge.dof_desc.DISCR_TAG_BASE[source]#
A discretization tag indicating the use of a basic discretization grid. This tag is used to distinguish the base discretization from quadrature (e.g. overintegration) or modal (
DISCR_TAG_MODAL
) discretizations.
- class grudge.dof_desc.DISCR_TAG_QUAD[source]#
A discretization tag indicating the use of a quadrature discretization grid. This tag is used to distinguish the quadrature discretization (e.g. overintegration) from modal (
DISCR_TAG_MODAL
) or base (DISCR_TAG_BASE
) discretizations.For working with multiple quadrature grids, it is recommended to create appropriate subclasses of
DISCR_TAG_QUAD
and define appropriateDOFDesc
objects corresponding to each subclass. For example:class CustomQuadTag(DISCR_TAG_QUAD): "A custom quadrature discretization tag." dd = DOFDesc(DTAG_VOLUME_ALL, CustomQuadTag)
- class grudge.dof_desc.DISCR_TAG_MODAL[source]#
A discretization tag indicating the use of a basic discretization grid with modal degrees of freedom. This tag is used to distinguish the modal discretization from the base (nodal) discretization (e.g.
DISCR_TAG_BASE
) or discretizations on quadrature grids (DISCR_TAG_QUAD
).
- class grudge.dof_desc.DOFDesc(domain_tag, discretization_tag=None, quadrature_tag=None)[source]#
Describes the meaning of degrees of freedom.
- domain_tag#
- discretization_tag#
- __init__(domain_tag, discretization_tag=None, quadrature_tag=None)[source]#
- Parameters
domain_tag – One of the following:
DTAG_SCALAR
(or the string"scalar"
),DTAG_VOLUME_ALL
(or the string"vol"
) for the default volume discretization,FACE_RESTR_ALL
(or the string"all_faces"
), orFACE_RESTR_INTERIOR
(or the string"int_faces"
), or one ofBTAG_ALL
,BTAG_NONE
,BTAG_REALLY_ALL
,BTAG_PARTITION
, or None to indicate that the geometry is not yet known.discretization_tag – None or
DISCR_TAG_BASE
to indicate the use of the basic discretization grid,DISCR_TAG_MODAL
to indicate a modal discretization, orDISCR_TAG_QUAD
to indicate the use of a quadrature grid.
- grudge.dof_desc.DD_SCALAR#
- grudge.dof_desc.DD_VOLUME#
- grudge.dof_desc.DD_VOLUME_MODAL#