warp.fem.Sides#

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

A Domain containing all (interior and boundary) sides of the geometry or geometry partition

Parameters:

geometry (Geometry)

__init__(geometry)[source]#
Parameters:

geometry (Geometry | GeometryPartition)

Methods

__init__(geometry)

cell_domain()

element_arg_value(device)

element_count()

element_index_arg_value(device)

fill_element_arg(arg, device)

fill_element_index_arg(arg, device)

geometry_element_count()

notify_operator_usage(ops)

Makes the Domain aware that the operators ops will be applied

reference_element()

supports_lookup(device)

Attributes

DomainArg

ElementArg

ElementIndexArg

cell_to_element_coords

dimension

domain_cell_arg

element_closest_point

element_coordinates

element_deformation_gradient

element_index

element_inner_cell_coords

element_inner_cell_index

element_kind

element_measure

element_measure_ratio

element_normal

element_outer_cell_coords

element_outer_cell_index

element_position

name

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

supports_lookup(device)[source]#
property element_kind: ElementKind[source]#
property dimension: int[source]#
reference_element()[source]#
Return type:

Element

element_count()[source]#
Return type:

int

geometry_element_count()[source]#
Return type:

int

property ElementIndexArg: Struct[source]#
element_index_arg_value(device)[source]#
Parameters:

device (Device | str | None)

Return type:

StructInstance

fill_element_index_arg(arg, device)[source]#
Parameters:
  • arg (ElementIndexArg)

  • device (Device | str | None)

property element_index: Function[source]#
property ElementArg: Struct[source]#
element_arg_value(device)[source]#
Parameters:

device (Device | str | None)

Return type:

StructInstance

fill_element_arg(arg, device)[source]#
Parameters:
  • arg (ElementArg)

  • device (Device | str | None)

property element_position: Function[source]#
property element_deformation_gradient: Function[source]#
property element_measure: Function[source]#
property element_measure_ratio: Function[source]#
property element_normal: Function[source]#
property element_closest_point: Function[source]#
property element_coordinates: Function[source]#
property element_inner_cell_index: Function[source]#
property element_outer_cell_index: Function[source]#
property element_inner_cell_coords: Function[source]#
property element_outer_cell_coords: Function[source]#
property cell_to_element_coords: Function[source]#
property domain_cell_arg: Function#
cell_domain()[source]#