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)

__init__(geometry, device=None)[source]#
Parameters:

geometry (Geometry)

Methods

__init__(geometry[, device])

boundary_side_count()

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)

frontier_side_count()

partition_cell_index(args, cell_index)

Index of a geometry cell in the partition (or NULL_ELEMENT_INDEX)

side_arg_value(device)

side_count()

Attributes

property SideArg#
side_count()[source]#
Return type:

int

boundary_side_count()[source]#
Return type:

int

frontier_side_count()[source]#
Return type:

int

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)>#
Parameters:
  • args (Any)

  • partition_side_index (int)

boundary_side_index = <Function CellBasedGeometryPartition__boundary_side_index(args: typing.Any, boundary_side_index: int)>#
Parameters:
  • args (Any)

  • boundary_side_index (int)

frontier_side_index = <Function CellBasedGeometryPartition__frontier_side_index(args: typing.Any, frontier_side_index: int)>#
Parameters:
  • args (Any)

  • frontier_side_index (int)

compute_side_indices_from_cells(
cell_arg_value,
cell_inclusion_test_func,
device,
max_side_count=-1,
temporary_store=None,
)[source]#
Parameters:
side_to_cell_arg = <Function CellBasedGeometryPartition__side_to_cell_arg(side_arg: typing.Any)>#
Parameters:

side_arg (Any)