warp.fem.BoundarySides#

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

A Domain containing boundary sides of the geometry or geometry partition.

Parameters:

geometry (Geometry)

__init__(geometry)[source]#
Parameters:

geometry (Geometry | GeometryPartition)

Methods

__init__(geometry)

cell_domain()

Return the corresponding cell domain.

element_arg_value(device)

Value of the element arguments for device functions.

element_count()

Number of elements in the domain.

element_index_arg_value(device)

Value of the element index arguments for device functions.

fill_element_arg(arg, device)

Fill the element arguments for device functions.

fill_element_index_arg(arg, device)

Fill the element index arguments for device functions.

geometry_element_count()

Number of elements in the underlying geometry.

notify_operator_usage(ops)

Makes the Domain aware that the operators ops will be applied

reference_element()

Reference element for the domain sides.

supports_lookup(device)

Return whether element lookup is supported on the given device.

Attributes

DomainArg

Argument structure combining element geometry and indices.

ElementArg

Structure containing arguments for element geometry.

ElementIndexArg

Structure containing arguments for element indexing.

cell_to_element_coords

Device function converting cell coordinates to side coordinates.

dimension

Dimension of elements in the domain.

domain_cell_arg

Device function mapping domain arguments to cell-domain arguments.

element_closest_point

Device function returning closest points on elements.

element_coordinates

Device function returning element coordinates for a position.

element_deformation_gradient

Device function returning element deformation gradients.

element_index

Device function mapping partition indices to element indices.

element_inner_cell_coords

Device function returning inner-cell coordinates of side points.

element_inner_cell_index

Device function returning inner cell indices for sides.

element_kind

Kind of elements contained in the domain.

element_measure

Device function returning element measures.

element_measure_ratio

Device function returning element measure ratios.

element_normal

Device function returning element normals.

element_outer_cell_coords

Device function returning outer-cell coordinates of side points.

element_outer_cell_index

Device function returning outer cell indices for sides.

element_position

Device function returning element positions.

name

Unique name of the domain.

geometry_partition

Geometry partition containing the elements of the domain.

geometry

Underlying geometry.

element_partition_index

Device function for retrieving linearized index in the domain's partition from an ElementIndex.

element_lookup

Device function returning the sample point in the domain's geometry corresponding to a world position.

element_partition_lookup

Device function returning the sample point in the domain's geometry partition corresponding to a world position.

element_count()[source]#

Number of elements in the domain.

Return type:

int

geometry_element_count()[source]#

Number of elements in the underlying geometry.

Return type:

int

property element_index: Function[source]#

Device function mapping partition indices to element indices.