From 3d44d7521b779cec58bcf402ad9d3aeb23f7ca19 Mon Sep 17 00:00:00 2001 From: Somesh Kurahatti Date: Mon, 2 Sep 2024 18:48:09 +0200 Subject: [PATCH] sphinx --- doc/sphinx/advanced_methods.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/sphinx/advanced_methods.rst b/doc/sphinx/advanced_methods.rst index 1c5df0d653..7fec3bba8b 100644 --- a/doc/sphinx/advanced_methods.rst +++ b/doc/sphinx/advanced_methods.rst @@ -41,7 +41,7 @@ as the pair bond is not directional. This mode is set up with system = espressomd.System(box_l=[1, 1, 1]) bond_centers = espressomd.interactions.HarmonicBond(k=1000, r_0=1.5) system.bonded_inter.add(bond_centers) - system.collision_detection.set_params(mode="bind_centers", distance=1.5, + system.collision_detection.protocol = espressomd.collision_detection.BindCenters(distance=1.5, bond_centers=bond_centers) The parameters are as follows: @@ -74,8 +74,7 @@ Bind VS the point of contact or you can use :class:`espressomd.interactions.Virtual` which acts as a marker, only. The method is setup as follows:: - system.collision_detection.set_params( - mode="bind_at_point_of_collision", + system.collision_detection.protocol = espressomd.collision_detection.BindVS( distance=0.1, bond_centers=harmonic_bond1, bond_vs=harmonic_bond2, @@ -121,8 +120,7 @@ Bind VS The method is used as follows:: - system.collision_detection.set_params( - mode="glue_to_surface", + system.collision_detection.protocol = espressomd.collision_detection.GlueToSurf( distance=0.1, distance_glued_particle_to_vs=0.02, bond_centers=harmonic_bond1,