discretize.SimplexMesh.project_edge_vector#
- SimplexMesh.project_edge_vector(edge_vectors)[source]#
Project vectors to the edges of the mesh.
Consider a numpy array edge_vectors whose rows provide a vector for each edge in the mesh. For each edge, project_edge_vector computes the dot product between a vector and the corresponding edge’s unit tangent vector. That is, project_edge_vector projects the vectors in edge_vectors to the edges of the mesh.
- Parameters:
- edge_vectors(
n_edges
,dim
)numpy.ndarray
Numpy array containing the vectors that will be projected to the mesh edges
- edge_vectors(
- Returns:
- (
n_edges
)numpy.ndarray
of
float
Dot product between each vector and the unit tangent vector of the corresponding edge
- (