dolfinx.cpp.geometry

Geometry module

Functions

compute_closest_entity(*args, **kwargs)

Overloaded function.

compute_colliding_cells(*args, **kwargs)

Overloaded function.

compute_collisions_points(*args, **kwargs)

Overloaded function.

compute_collisions_trees(*args, **kwargs)

Overloaded function.

compute_distance_gjk(*args, **kwargs)

Overloaded function.

create_midpoint_tree(*args, **kwargs)

Overloaded function.

determine_point_ownership(*args, **kwargs)

Overloaded function.

squared_distance(*args, **kwargs)

Overloaded function.

Classes

BoundingBoxTree_float32(self, mesh, dim, ...)

BoundingBoxTree_float64(self, mesh, dim, ...)

class dolfinx.cpp.geometry.BoundingBoxTree_float32(self: dolfinx.cpp.geometry.BoundingBoxTree_float32, mesh: dolfinx.cpp.mesh.Mesh_float32, dim: int, entities: numpy.ndarray[numpy.int32], padding: float)

Bases: pybind11_object

create_global_tree(self: dolfinx.cpp.geometry.BoundingBoxTree_float32, comm: MPICommWrapper) dolfinx.cpp.geometry.BoundingBoxTree_float32
get_bbox(self: dolfinx.cpp.geometry.BoundingBoxTree_float32, i: int) numpy.ndarray[numpy.float32]
property num_bboxes
class dolfinx.cpp.geometry.BoundingBoxTree_float64(self: dolfinx.cpp.geometry.BoundingBoxTree_float64, mesh: dolfinx.cpp.mesh.Mesh_float64, dim: int, entities: numpy.ndarray[numpy.int32], padding: float)

Bases: pybind11_object

create_global_tree(self: dolfinx.cpp.geometry.BoundingBoxTree_float64, comm: MPICommWrapper) dolfinx.cpp.geometry.BoundingBoxTree_float64
get_bbox(self: dolfinx.cpp.geometry.BoundingBoxTree_float64, i: int) numpy.ndarray[numpy.float64]
property num_bboxes
dolfinx.cpp.geometry.compute_closest_entity(*args, **kwargs)

Overloaded function.

  1. compute_closest_entity(tree: dolfinx.cpp.geometry.BoundingBoxTree_float32, midpoint_tree: dolfinx.cpp.geometry.BoundingBoxTree_float32, mesh: dolfinx.cpp.mesh.Mesh_float32, points: numpy.ndarray[numpy.float32]) -> numpy.ndarray[numpy.int32]

  2. compute_closest_entity(tree: dolfinx.cpp.geometry.BoundingBoxTree_float64, midpoint_tree: dolfinx.cpp.geometry.BoundingBoxTree_float64, mesh: dolfinx.cpp.mesh.Mesh_float64, points: numpy.ndarray[numpy.float64]) -> numpy.ndarray[numpy.int32]

dolfinx.cpp.geometry.compute_colliding_cells(*args, **kwargs)

Overloaded function.

  1. compute_colliding_cells(mesh: dolfinx.cpp.mesh.Mesh_float32, candidate_cells: dolfinx.cpp.graph.AdjacencyList_int32, points: numpy.ndarray[numpy.float32]) -> Union[dolfinx.cpp.graph.AdjacencyList_int32, numpy.ndarray[numpy.int32]]

  2. compute_colliding_cells(mesh: dolfinx.cpp.mesh.Mesh_float64, candidate_cells: dolfinx.cpp.graph.AdjacencyList_int32, points: numpy.ndarray[numpy.float64]) -> Union[dolfinx.cpp.graph.AdjacencyList_int32, numpy.ndarray[numpy.int32]]

dolfinx.cpp.geometry.compute_collisions_points(*args, **kwargs)

Overloaded function.

  1. compute_collisions_points(tree: dolfinx.cpp.geometry.BoundingBoxTree_float32, points: numpy.ndarray[numpy.float32]) -> dolfinx.cpp.graph.AdjacencyList_int32

  2. compute_collisions_points(tree: dolfinx.cpp.geometry.BoundingBoxTree_float64, points: numpy.ndarray[numpy.float64]) -> dolfinx.cpp.graph.AdjacencyList_int32

dolfinx.cpp.geometry.compute_collisions_trees(*args, **kwargs)

Overloaded function.

  1. compute_collisions_trees(tree0: dolfinx.cpp.geometry.BoundingBoxTree_float32, tree1: dolfinx.cpp.geometry.BoundingBoxTree_float32) -> numpy.ndarray[numpy.int32]

  2. compute_collisions_trees(tree0: dolfinx.cpp.geometry.BoundingBoxTree_float64, tree1: dolfinx.cpp.geometry.BoundingBoxTree_float64) -> numpy.ndarray[numpy.int32]

dolfinx.cpp.geometry.compute_distance_gjk(*args, **kwargs)

Overloaded function.

  1. compute_distance_gjk(p: numpy.ndarray[numpy.float32], q: numpy.ndarray[numpy.float32]) -> numpy.ndarray[numpy.float32]

  2. compute_distance_gjk(p: numpy.ndarray[numpy.float64], q: numpy.ndarray[numpy.float64]) -> numpy.ndarray[numpy.float64]

dolfinx.cpp.geometry.create_midpoint_tree(*args, **kwargs)

Overloaded function.

  1. create_midpoint_tree(mesh: dolfinx.cpp.mesh.Mesh_float32, tdim: int, entities: numpy.ndarray[numpy.int32]) -> dolfinx.cpp.geometry.BoundingBoxTree_float32

  2. create_midpoint_tree(mesh: dolfinx.cpp.mesh.Mesh_float64, tdim: int, entities: numpy.ndarray[numpy.int32]) -> dolfinx.cpp.geometry.BoundingBoxTree_float64

dolfinx.cpp.geometry.determine_point_ownership(*args, **kwargs)

Overloaded function.

  1. determine_point_ownership(arg0: dolfinx.cpp.mesh.Mesh_float32, arg1: numpy.ndarray[numpy.float32], arg2: float) -> Tuple[List[int], List[int], List[float], List[int]]

  2. determine_point_ownership(arg0: dolfinx.cpp.mesh.Mesh_float64, arg1: numpy.ndarray[numpy.float64], arg2: float) -> Tuple[List[int], List[int], List[float], List[int]]

dolfinx.cpp.geometry.squared_distance(*args, **kwargs)

Overloaded function.

  1. squared_distance(mesh: dolfinx.cpp.mesh.Mesh_float32, dim: int, indices: List[int], points: numpy.ndarray[numpy.float32]) -> numpy.ndarray[numpy.float32]

  2. squared_distance(mesh: dolfinx.cpp.mesh.Mesh_float64, dim: int, indices: List[int], points: numpy.ndarray[numpy.float64]) -> numpy.ndarray[numpy.float64]