15m.set_log_level(IMP.WARNING)
17pi_slab = p_slab.get_index()
19 p_slab, height, radius)
24d.set_coordinates_are_optimized(
True)
30r.set_log_level(IMP.WARNING)
35 rmf = RMF.create_rmf_file(rnm)
40 sgs = sg.get_components()
41 nh = rmf.get_root_node().add_child(
"slab", RMF.GEOMETRY)
50 nh = rmf.get_root_node().add_child(
"deriv", RMF.GEOMETRY)
66 nh = rmf.get_root_node().add_child(
"displacements", RMF.GEOMETRY)
70 dv = slabps.get_displacement_direction(slab, c)
71 dm = slabps.get_displacement_magnitude(slab, c)
72 if dm > particle_radius:
75 -(dm-particle_radius)/(height+particle_radius))
80 g.set_name(
"displace")
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Simple implementation of segments in 3D.
static Hierarchy setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor children=ParticleIndexesAdaptor())
Create a Hierarchy of level t by adding the needed attributes.
static Mass setup_particle(Model *m, ParticleIndex pi, Float mass)
Applies a PairScore to a Pair.
static XYZR setup_particle(Model *m, ParticleIndex pi)
static SlabWithCylindricalPore setup_particle(Model *m, ParticleIndex pi, double thickness, double radius)
Vector< VectorD< D > > get_grid_interior_cover_by_spacing(const BoundingBoxD< D > &bb, double s)
Functionality for loading, creating, manipulating and scoring atomic structures.
Output IMP model data in various file formats.
Writer * create_writer(std::string filename)
Color get_hot_color(double f)
Return the color for f from the hot color map.
Simulation of transport through the Nuclear Pore Complex.
Support for the RMF file format for storing hierarchical molecular data and markup.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Save the current state of the linked objects as a new RMF frame.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.