13def create_rigid_body(m, name):
16 prb.set_coordinates_are_optimized(
True)
17 prb.set_name(name +
" rb")
31 d.set_name(name + str(i) + str(j) + str(k))
33 d.set_rotational_diffusion_coefficient(
34 d.get_rotational_diffusion_coefficient() * 100)
48rb0, h0 = create_rigid_body(m,
"first")
49rb1, h1 = create_rigid_body(m,
"second")
55 m, rb0.get_rigid_members() + rb1.get_rigid_members()), 1, 3)
63bd.set_scoring_function(sf)
64bd.set_time_step(10000)
69for i
in range(0, 100):
70 display(i, w, [h0, h1])
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Simple Brownian dynamics simulator.
static Fragment setup_particle(Model *m, ParticleIndex pi)
Display an IMP::atom::Hierarchy particle as balls.
static Mass setup_particle(Model *m, ParticleIndex pi, Float mass)
static Molecule setup_particle(Model *m, ParticleIndex pi)
static RigidBodyDiffusion setup_particle(Model *m, ParticleIndex pi)
Select hierarchy particles identified by the biological name.
Store a list of ParticleIndexes.
Prevent a set of particles and rigid bodies from inter-penetrating.
Create a scoring function on a list of restraints.
static RigidBody setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor ps)
static XYZR setup_particle(Model *m, ParticleIndex pi)
Write a CGO file with the geometry.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Functionality for loading, creating, manipulating and scoring atomic structures.
Restraint * create_distance_restraint(const Selection &n0, const Selection &n1, double x0, double k, std::string name="Distance%1%")
Basic functionality that is expected to be used by a wide variety of IMP users.
Output IMP model data in various file formats.
void set_log_level(LogLevel l)
Set the current global log level.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.