sponge.function.calc_torsion_nopbc ============================================ .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindscience/blob/r0.5/MindSPONGE/docs/api/api_python/function/sponge.function.calc_torsion_nopbc.rst :alt: 查看源文件 .. py:function:: sponge.function.calc_torsion_nopbc(position_a: Tensor, position_b: Tensor, position_c: Tensor, position_d: Tensor, keepdims: bool = False) 在没有周期性边界条件的情况下计算由四个位置A,B,C,D形成的扭转角。 参数: - **position_a** (Tensor) - 位置a,shape为 :math:`(..., D)` ,D是模拟系统的维度。 - **position_b** (Tensor) - 位置b,shape为 :math:`(..., D)` 。 - **position_c** (Tensor) - 位置c,shape为 :math:`(..., D)` 。 - **position_d** (Tensor) - 位置d,shape为 :math:`(..., D)` 。 - **keepdims** (bool) - 设置为 ``True`` 的话,最后一个维度会保留,默认值 ``False`` 。 返回: Tensor。计算所得扭转角。shape为 :math:`(...)` 或 :math:`(..., 1)` 。