pybec.analysis.volume¶
- pybec.analysis.volume(lattice)[source]¶
Calculate the volume of a 3D unit cell.
- Parameters
lattice (numpy.ndarray) – 3 x 3 array with the unit cell vectors as the rows. That is numpy.array([[a1, a2, a3], [b1, b2, b3], [c1, c2, c3]])
- Returns
Volume of unit cell, calculated as (a x b) * c
- Return type
float