cell_volume¶
- torch_sim.quantities.cell_volume(cell)[source]¶
Volume of one or more cells, positive for left- and right-handed cells.
det(cell)is negative for left-handed cells, which would flip the sign of anything derived from it (pressure, barostat forces, scaled cells). Use this helper rather than callingtorch.deton a cell directly.