MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / h

Method h

python/dolfinx/mesh.py:420–432  ·  view source on GitHub ↗

Geometric size measure of cell entities. Args: dim: Topological dimension of the entities to compute the size measure of. entities: Indices of entities of dimension ``dim`` to compute size measure of. Returns: Size

(self, dim: int, entities: npt.NDArray[np.int32])

Source from the content-addressed store, hash-verified

418 return getattr(basix.CellType, self.topology.cell_name())
419
420 def h(self, dim: int, entities: npt.NDArray[np.int32]) -> npt.NDArray[np.float64]:
421 """Geometric size measure of cell entities.
422
423 Args:
424 dim: Topological dimension of the entities to compute the
425 size measure of.
426 entities: Indices of entities of dimension ``dim`` to
427 compute size measure of.
428
429 Returns:
430 Size measure for each requested entity.
431 """
432 return _cpp.mesh.h(self._cpp_object, dim, entities)
433
434 @property
435 def topology(self) -> Topology:

Callers 4

test_cell_hFunction · 0.80
test_cell_h_prismFunction · 0.80
test_facet_hFunction · 0.80
test_hmin_hmaxFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_cell_hFunction · 0.64
test_cell_h_prismFunction · 0.64
test_facet_hFunction · 0.64
test_hmin_hmaxFunction · 0.64