discretize.operators.InnerProducts.face_areas#
- property InnerProducts.face_areas#
Return areas of all faces in the mesh.
Calling this property will compute and return the areas of all faces as a 1D numpy array. For structured meshes, the returned quantity is ordered x-face areas, then y-face areas, then z-face areas.
- Returns:
- (
n_faces
)numpy.ndarray
The length of the quantity returned depends on the dimensions of the mesh:
1D: returns the x-face areas
2D: returns the x-face and y-face areas in order; i.e. y-edge and x-edge lengths, respectively
3D: returns the x, y and z-face areas in order
- (