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)Return the corresponding cell domain.
element_arg_value(device)Value of the element arguments for device functions.
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.
Number of elements in the underlying geometry.
notify_operator_usage(ops)Makes the Domain aware that the operators ops will be applied
Reference element for the domain cells.
supports_lookup(device)Return whether element lookup is supported on the given device.
Attributes
DomainArgArgument structure combining element geometry and indices.
Structure containing arguments for element geometry.
Structure containing arguments for element indexing.
Dimension of elements in the domain.
Device function mapping domain arguments to cell-domain arguments.
Device function returning closest points on elements.
Device function returning element coordinates for a position.
Device function returning element deformation gradients.
Device function mapping partition indices to element indices.
Kind of elements contained in the domain.
Device function for looking up elements from positions.
Device function returning element measures.
Device function returning element measure ratios.
Device function returning element normals.
Device function mapping element indices to partition indices.
Device function for partition-restricted element lookup.
Device function returning element positions.
nameUnique name of the domain.
geometry_partitionGeometry partition containing the elements of the domain.
geometryUnderlying geometry.
- property element_kind: ElementKind[source]#
Kind of elements contained in the domain.
- property element_index: Function[source]#
Device function mapping partition indices to element indices.
- property element_partition_index: Function[source]#
Device function mapping element indices to partition indices.
- property element_deformation_gradient: Function[source]#
Device function returning element deformation gradients.
- property element_closest_point: Function[source]#
Device function returning closest points on elements.
- property element_coordinates: Function[source]#
Device function returning element coordinates for a position.
- property element_partition_lookup: Function#
Device function for partition-restricted element lookup.