Degree of freedom (DOF) descriptions#

class grudge.dof_desc.DTAG_SCALAR[source]#

A domain tag denoting scalar values.

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.

__eq__(other)[source]#

Return self==value.

__ne__(other)[source]#

Return self!=value.

__hash__()[source]#

Return hash(self).

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 appropriate DOFDesc 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
is_scalar()[source]#
is_discretized()[source]#
is_volume()[source]#
is_boundary_or_partition_interface()[source]#
is_trace()[source]#
uses_quadrature()[source]#
with_discr_tag(discr_tag)[source]#
with_dtag(dtag)[source]#
__eq__(other)[source]#

Return self==value.

__ne__(other)[source]#

Return self!=value.

__hash__()[source]#

Return hash(self).

grudge.dof_desc.as_dofdesc(dd)[source]#
grudge.dof_desc.DD_SCALAR#
grudge.dof_desc.DD_VOLUME#
grudge.dof_desc.DD_VOLUME_MODAL#