warp.fem.GeometryDomain#
- class warp.fem.GeometryDomain(geometry)[source]#
Interface class for domains, i.e. (partial) views of elements in a Geometry
- Parameters:
geometry (Geometry)
- __init__(geometry)[source]#
- Parameters:
geometry (Geometry | GeometryPartition)
Methods
__init__(geometry)element_arg_value(device)Value of the argument to be passed to device functions
Number of elements in the domain
element_index_arg_value(device)Value of the argument to be passed to device functions
fill_element_arg(arg, device)fill_element_index_arg(arg, device)Number of elements in the underlying geometry
Makes the Domain aware that the operators ops will be applied
Type of reference element
Attributes
Dimension of the elements of the domain
Kind of elements that this domain contains (cells or sides)
Geometry partition containing the elements of the domain
Underlying geometry
Structure containing arguments to be passed to device functions computing element indices
Device function for retrieving an ElementIndex from a linearized index
Device function for retrieving linearized index in the domain's partition from an ElementIndex
Structure containing arguments to be passed to device functions computing element geometry
Device function returning the measure determinant (e.g. volume, area) at a given point.
Device function returning the ratio of the measure of a side to that of its neighbour cells
Device function returning the element position at a sample point
Device function returning the gradient of the position with respect to the element's reference space
Device function returning the element normal at a sample point
Device function returning the coordinates of the closest point in a given element to a world position
Device function returning the coordinates corresponding to a world position in a given element reference system
Device function returning the sample point in the domain's geometry corresponding to a world position
Device function returning the sample point in the domain's geometry partition corresponding to a world position
- geometry_partition: GeometryPartition#
Geometry partition containing the elements of the domain
- property element_kind: ElementKind[source]#
Kind of elements that this domain contains (cells or sides)
- ElementIndexArg: Struct#
Structure containing arguments to be passed to device functions computing element indices
- element_partition_index: Function#
Device function for retrieving linearized index in the domain’s partition from an ElementIndex
- ElementArg: Struct#
Structure containing arguments to be passed to device functions computing element geometry
- element_measure: Function#
Device function returning the measure determinant (e.g. volume, area) at a given point
- element_measure_ratio: Function#
Device function returning the ratio of the measure of a side to that of its neighbour cells
- element_deformation_gradient: Function#
Device function returning the gradient of the position with respect to the element’s reference space
- element_closest_point: Function#
Device function returning the coordinates of the closest point in a given element to a world position
- element_coordinates: Function#
Device function returning the coordinates corresponding to a world position in a given element reference system
- element_lookup: Function#
Device function returning the sample point in the domain’s geometry corresponding to a world position
- element_partition_lookup: Function#
Device function returning the sample point in the domain’s geometry partition corresponding to a world position
- property DomainArg#