warp.fem.CellBasedGeometryPartition#
- class warp.fem.CellBasedGeometryPartition(geometry, device=None)[source]#
Geometry partition based on a subset of cells. Interior, boundary and frontier sides are automatically categorized.
- Parameters:
geometry (Geometry)
Methods
__init__(geometry[, device])cell_arg_value(device)cell_count()Number of cells that are 'owned' by this partition
cell_index(args, partition_cell_index)Index in the geometry of a partition cell
compute_side_indices_from_cells(...[, ...])fill_cell_arg(args, device)fill_side_arg(args, device)partition_cell_index(args, cell_index)Index of a geometry cell in the partition (or
NULL_ELEMENT_INDEX)side_arg_value(device)Attributes
namegeometryUnderlying geometry
- property SideArg#
- fill_side_arg(args, device)[source]#
- Parameters:
args (<functools.cached_property object at 0x7f873ea5bfb0>)
- side_index = <Function CellBasedGeometryPartition__side_index(args: typing.Any, partition_side_index: int)>#
- boundary_side_index = <Function CellBasedGeometryPartition__boundary_side_index(args: typing.Any, boundary_side_index: int)>#
- frontier_side_index = <Function CellBasedGeometryPartition__frontier_side_index(args: typing.Any, frontier_side_index: int)>#