metric_to_volume#

anri.crystal.metric_to_volume(metric)[source]#

Get the volume of the (direct or reciprocal space) unit cell from the (direct or reciprocal space) metric tensor.

Parameters:

mt – [3,3] (direct or reciprocal space) metric tensor

Returns:

volume (jax.Array) – [1] Volume of (direct or reciprocal space) unit cell

Notes

\[V = \sqrt{\abs{\tens{G}}}\]