warp.fem.SpaceRestriction#
- class warp.fem.SpaceRestriction(
- space_partition,
- domain,
- device=None,
- temporary_store=None,
Restriction of a space partition to a given GeometryDomain
- Parameters:
space_partition (SpacePartition)
domain (GeometryDomain)
temporary_store (TemporaryStore | None)
- __init__(
- space_partition,
- domain,
- device=None,
- temporary_store=None,
- Parameters:
space_partition (SpacePartition)
domain (GeometryDomain)
temporary_store (TemporaryStore | None)
Methods
__init__(space_partition, domain[, device, ...])fill_node_arg(arg, device)node_arg_value(device)Upper bound for the node count, use node_count_sync to get the actual value
Ensures that the node count is synchronized with the device and returns it
rebuild([device, temporary_store])Attributes
Partition of the function space nodes that will be restricted
Topology of the full function space
Domain to which the space partition is being restricted
- space_partition: SpacePartition#
Partition of the function space nodes that will be restricted
- space_topology: SpaceTopology#
Topology of the full function space
- domain: GeometryDomain#
Domain to which the space partition is being restricted
- rebuild(device=None, temporary_store=None)[source]#
- Parameters:
temporary_store (TemporaryStore | None)
- node_count_sync()[source]#
Ensures that the node count is synchronized with the device and returns it
- Return type:
- node_count()[source]#
Upper bound for the node count, use node_count_sync to get the actual value
- Return type:
- NodeArg = <warp._src.codegen.Struct object>#
- node_partition_index = <Function SpaceRestriction__node_partition_index(args: warp._src.fem.space.restriction.SpaceRestriction.NodeArg, restriction_node_index: int)>#
- Parameters:
args (NodeArg)
restriction_node_index (int)
- node_partition_index_from_element_offset = <Function SpaceRestriction__node_partition_index_from_element_offset(args: warp._src.fem.space.restriction.SpaceRestriction.NodeArg, element_offset: int)>#
- Parameters:
args (NodeArg)
element_offset (int)