warp.fem.GeometryPartition#

class warp.fem.GeometryPartition(geometry)[source]#

Base class for geometry partitions, i.e. subset of cells and sides

Parameters:

geometry (Geometry)

__init__(geometry)[source]#
Parameters:

geometry (Geometry)

Methods

__init__(geometry)

boundary_side_count()

Number of geo-boundary sides that are 'owned' by this partition

boundary_side_index(args, boundary_side_index)

Boundary side to side index

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

fill_cell_arg(args, device)

fill_side_arg(args, device)

frontier_side_count()

Number of sides with neighbors owned by this and another partition

frontier_side_index(args, frontier_side_index)

Frontier side to side index

partition_cell_index(args, cell_index)

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

side_arg_value(device)

side_count()

Number of sides that are 'owned' by this partition

side_index(args, partition_side_index)

Partition side to side index

Attributes

name

geometry

Underlying geometry

class CellArg[source]#
class SideArg[source]#
geometry: Geometry#

Underlying geometry

cell_count()[source]#

Number of cells that are ‘owned’ by this partition

Return type:

int

side_count()[source]#

Number of sides that are ‘owned’ by this partition

Return type:

int

boundary_side_count()[source]#

Number of geo-boundary sides that are ‘owned’ by this partition

Return type:

int

frontier_side_count()[source]#

Number of sides with neighbors owned by this and another partition

Return type:

int

property name: str[source]#
cell_arg_value(device)[source]#
fill_cell_arg(args, device)[source]#
Parameters:

args (CellArg)

side_arg_value(device)[source]#
fill_side_arg(args, device)[source]#
Parameters:

args (SideArg)

static cell_index(args, partition_cell_index)[source]#

Index in the geometry of a partition cell

Parameters:
static partition_cell_index(args, cell_index)[source]#

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

Parameters:
static side_index(args, partition_side_index)[source]#

Partition side to side index

Parameters:
static boundary_side_index(args, boundary_side_index)[source]#

Boundary side to side index

Parameters:
static frontier_side_index(args, frontier_side_index)[source]#

Frontier side to side index

Parameters: