warp.fem.Cells#

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

A Domain containing all cells 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

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 (<property object at 0x7f873e2c1a80>)

  • device (Device | str | None)

property element_index: Function[source]#
property element_partition_index: Function[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 ElementArg: Struct[source]#
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_lookup: Function[source]#
property element_partition_lookup: Function#
supports_lookup(device)[source]#
property domain_cell_arg: Function[source]#
cell_domain()[source]#