discretize.TreeMesh.project_face_vector#
- TreeMesh.project_face_vector(face_vectors)[source]#
Project vectors onto the faces of the mesh.
Consider a numpy array face_vectors whose rows provide a vector for each face in the mesh. For each face, project_face_vector computes the dot product between a vector and the corresponding face’s unit normal vector. That is, project_face_vector projects the vectors in face_vectors to the faces of the mesh.
- Parameters:
- face_vectors(
n_faces
,dim
)numpy.ndarray
Numpy array containing the vectors that will be projected to the mesh faces
- face_vectors(
- Returns:
- (
n_faces
)numpy.ndarray
of
float
Dot product between each vector and the unit normal vector of the corresponding face
- (