15 m.set_log_level(IMP.WARNING)
17 pi_slab = p_slab.get_index()
19 p_slab, height, radius)
24 d.set_coordinates_are_optimized(
True)
30 r.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")
Simulation of transport through the Nuclear Pore Complex.
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Save the current state of the linked objects as a new RMF frame.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Color get_hot_color(double f)
Return the color for f from the hot color map.
static SlabWithCylindricalPore setup_particle(Model *m, ParticleIndex pi, double thickness, double radius)
Class for storing model, its restraints, constraints, and particles.
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)
void add_geometries(RMF::NodeHandle parent, const display::GeometriesTemp &r)
Add geometries to a given parent node.
Writer * create_writer(std::string filename)
Simple implementation of segments in 3D.
Class to handle individual particles of a Model object.
Vector< VectorD< D > > get_grid_interior_cover_by_spacing(const BoundingBoxD< D > &bb, double s)
Applies a PairScore to a Pair.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.