20 for i
in range(0, np)]
24 p.set_coordinates_are_optimized(
True)
31 for i
in range(0, len(ps) / 2):
32 pp = (ps[2 * i], ps[2 * i + 1])
57 bd.set_log_level(IMP.base.SILENT)
58 bd.set_scoring_function(sf)
60 bd.set_maximum_time_step(10)
63 rmf = RMF.create_rmf_file(name)
64 rmf.set_description(
"Brownian dyanmics trajectory with 10fs timestep.\n")
70 os.update_always(
"initial conformation")
71 os.set_log_level(IMP.base.SILENT)
73 bd.add_optimizer_state(os)
77 print "file is", rmf.get_name()
Applies a SingletonScore to each Singleton in a list.
A harmonic upper bound on the distance between two spheres.
void add_restraints(RMF::NodeHandle fh, const kernel::Restraints &hs)
See IMP.container for more information.
Upper bound harmonic function (non-zero when feature > mean)
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Score particles based on how far outside a box they are.
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
Simple Brownian dynamics simulator.
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
static Colored setup_particle(kernel::Model *m, ParticleIndex pi, Color color)
Color get_display_color(unsigned int i)
Class to handle individual model particles.
static Mass setup_particle(kernel::Model *m, ParticleIndex pi, Float mass)
Prevent a set of particles and rigid bodies from inter-penetrating.
static Diffusion setup_particle(kernel::Model *m, ParticleIndex pi, Float D)
VectorD< D > get_random_vector_on(const SphereD< D > &s)
Generate a random vector on a sphere with uniform density.
See IMP.display for more information.
See IMP.atom for more information.
See IMP.rmf for more information.
Applies a PairScore to each Pair in a list.
Class for storing model, its restraints, constraints, and particles.