get_cart_deformed_cell¶
- torch_sim.elastic.get_cart_deformed_cell(state, axis=0, size=1.0)[source]¶
Deform a unit cell and scale atomic positions accordingly.
- Parameters:
- Returns:
New state with deformed cell and scaled positions
- Return type:
- Raises:
ValueError – If axis is not in range [0-5]
ValueError – If cell is not a 3x3 tensor
ValueError – If positions is not a (n_atoms, 3) tensor