warp.fem.SpaceTopology#
- class warp.fem.SpaceTopology(geometry, max_nodes_per_element)[source]#
Interface class for defining the topology of a function space.
The topology only considers the indices of the nodes in each element, and as such, the connectivity pattern of the function space. It does not specify the actual location of the nodes within the elements, or the valuation function.
Methods
__init__(geometry, max_nodes_per_element)element_node_count(geo_arg, topo_arg, ...)Returns the actual number of nodes in a given element
element_node_index(geo_arg, topo_arg, ...)Global node index for a given node in a given element
element_node_indices([out])Returns a temporary array containing the global index for each node of each element
fill_topo_arg(arg, device)Returns the full space topology from which this topology is derived
is_derived_from(other)Checks whether two topologies are equal, or self is the trace of other
Variant of side neighbor node counts that can be used for topologies with varying node counts per element.
Number of nodes in the interpolation basis
side_neighbor_node_counts(side_arg, ...)Returns the number of nodes for both the inner and outer cells of a given sides
topo_arg_value(device)trace()Trace of the function space over lower-dimensional elements of the geometry
Attributes
Underlying geometry
Whether this topology is defined on the trace of the geometry
Embedding dimension of the function space
maximum number of interpolation nodes per element of the geometry.
- TopologyArg = <warp._src.codegen.Struct object>#
- MAX_NODES_PER_ELEMENT: int#
maximum number of interpolation nodes per element of the geometry.
Note
This will change to be defined per-element in future versions
- property name#
- static element_node_count(geo_arg, topo_arg, element_index)[source]#
Returns the actual number of nodes in a given element
- static element_node_index(
- geo_arg,
- topo_arg,
- element_index,
- node_index_in_elt,
Global node index for a given node in a given element
- static side_neighbor_node_counts(
- side_arg,
- topo_arg,
- side_index,
Returns the number of nodes for both the inner and outer cells of a given sides
- element_node_indices(out=None)[source]#
Returns a temporary array containing the global index for each node of each element
- trace()[source]#
Trace of the function space over lower-dimensional elements of the geometry
- Return type:
TraceSpaceTopology
- full_space_topology()[source]#
Returns the full space topology from which this topology is derived
- Return type:
- is_derived_from(other)[source]#
Checks whether two topologies are equal, or self is the trace of other
- Parameters:
other (SpaceTopology)
- Return type: