20 d.set_coordinates_are_optimized(
True)
31 for i
in [0.0, -1.0, +1.0]:
32 for j
in [0.0, -1.0, +1.0]:
33 for k
in [0.0, -1.0, +1.0]:
35 float(i) * S_, float(j) * S_, float(k) * S_))
54 mc.set_return_best(
False)
58 log = open(
"traj.xyz",
"w")
61 for istep
in range(0, 5000):
71 log.write(
"Na %6.3f %6.3f %6.3f\n" % (xyz0[0], xyz0[1], xyz0[2]))
72 log.write(
"Cl %6.3f %6.3f %6.3f\n" % (xyz1[0], xyz1[1], xyz1[2]))
See IMP.symmetry for more information.
Move a particle and keep it in the primitive cell of a periodic lattice.
A score on the distance between the surfaces of two spheres.
Modify a set of continuous variables by perturbing them within a ball.
A class to store an fixed array of same-typed values.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Class to handle individual model particles.
See IMP.core for more information.
Applies a PairScore to a Pair.
Apply a list of movers one at a time.
Class for storing model, its restraints, constraints, and particles.
Harmonic function (symmetric about the mean)
A decorator for a particle with x,y,z coordinates and a radius.