discretize.CurvilinearMesh.face_areas

property CurvilinearMesh.face_areas

Returns the areas of all faces in the mesh

Calling this property will compute and return the areas of all faces as a 1D numpy array. 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