resqpy.olio.volumeΒΆ

volume.py: Functions to calculate volumes of hexahedral cells; assumes consistent length units.

Functions

pyramid_volume

Returns volume of a quadrilateral pyramid.

tetra_cell_volume

Returns volume of single hexahedral cell with corner points cp of shape (2, 2, 2, 3); assumes bilinear faces.

tetra_volumes

Returns volume array for all hexahedral cells assuming bilinear faces, using numpy operations.

tetra_volumes_slow

Returns volume array for all hexahedral cells assuming bilinear faces, using loop over cells.

tetrahedron_volume

Returns volume of a tetrahedron.