Ejemplo n.º 1
0
    def test_kill_particle_forces(self):
        g = GalileiTransform()
        g.kill_particle_forces()

        np.testing.assert_array_equal(np.copy(self.system.part[:].f), 0)

        if espressomd.has_features("ROTATION"):
            np.testing.assert_array_less(
                np.copy(self.system.part[:].torque_lab), 0)

            g.kill_particle_forces(torque=True)

            np.testing.assert_array_equal(
                np.copy(self.system.part[:].torque_lab), 0)
Ejemplo n.º 2
0
    def test_kill_particle_forces(self):
        g = GalileiTransform()
        g.kill_particle_forces()

        np.testing.assert_array_equal(np.copy(self.system.part[:].f), 0)