Degree of freedom (DOF) descriptions¶
DOF Descriptor¶
- class grudge.dof_desc.DOFDesc(domain_tag: Any, discretization_tag: type[type[_DiscretizationTag]] | None = None)[source]¶
Describes the meaning of degrees of freedom.
- domain_tag¶
- discretization_tag¶
- __init__(domain_tag: Any, discretization_tag: type[type[_DiscretizationTag]] | None = None) None [source]¶
- trace(btag: Hashable) DOFDesc [source]¶
Return a
DOFDesc
for the restriction of the volume descriptor self to the boundary named by btag.An error is raised if this method is called on a non-volume instance of
DOFDesc
.
- untrace() DOFDesc [source]¶
Return a
DOFDesc
for the volume associated with the boundary descriptor self.An error is raised if this method is called on a non-boundary instance of
DOFDesc
.
- with_boundary_tag(btag: Hashable) DOFDesc [source]¶
Return a
DOFDesc
representing a boundary named by btag on the same volume as self.An error is raised if this method is called on a non-boundary instance of
DOFDesc
.
- __eq__(other)¶
Return self==value.
- __ne__(value, /)¶
Return self!=value.
- __hash__()¶
Return hash(self).
- grudge.dof_desc.as_dofdesc(domain: Any, discretization_tag: type[_DiscretizationTag] | None = None, *, _contextual_volume_tag: Hashable | None = None) DOFDesc [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.
Shortcuts¶
- grudge.dof_desc.DD_SCALAR¶
- grudge.dof_desc.DD_VOLUME_ALL¶
- grudge.dof_desc.DD_VOLUME_ALL_MODAL¶
Internal things that are visble due to type annotations¶
- class grudge.dof_desc.ConvertibleToDOFDesc[source]¶
Anything that is convertible to a
DOFDesc
viaas_dofdesc()
.