Skip to content

Commit

Permalink
sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
1234somesh committed Sep 2, 2024
1 parent 56cbf51 commit 3d44d75
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions doc/sphinx/advanced_methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3d44d75

Please sign in to comment.