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)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 sides.
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.
Device function converting cell coordinates to side coordinates.
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.
Device function returning inner-cell coordinates of side points.
Device function returning inner cell indices for sides.
Kind of elements contained in the domain.
Device function returning element measures.
Device function returning element measure ratios.
Device function returning element normals.
Device function returning outer-cell coordinates of side points.
Device function returning outer cell indices for sides.
Device function returning element positions.
nameUnique name of the domain.
geometry_partitionGeometry partition containing the elements of the domain.
geometryUnderlying geometry.
element_partition_indexDevice function for retrieving linearized index in the domain's partition from an
ElementIndex.element_lookupDevice function returning the sample point in the domain's geometry corresponding to a world position.
element_partition_lookupDevice function returning the sample point in the domain's geometry partition corresponding to a world position.
- 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_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_inner_cell_index: Function[source]#
Device function returning inner cell indices for sides.
- property element_outer_cell_index: Function[source]#
Device function returning outer cell indices for sides.
- property element_inner_cell_coords: Function[source]#
Device function returning inner-cell coordinates of side points.
- property element_outer_cell_coords: Function[source]#
Device function returning outer-cell coordinates of side points.
- property cell_to_element_coords: Function[source]#
Device function converting cell coordinates to side coordinates.