Image structure Image list-add-relax-blue


Create a PDB file representation of a rotor.


structure.create_rotor_pdb(file=`rotor.pdb', dir=None, rotor_angle=0.0, axis=None, axis_pt=None, centre=None, span=2e-09, blade_length=5e-10, force=False, staggered=False)

Keyword arguments

file: The name of the PDB file.

dir: The directory to place the file into.

rotor_angle: The angle of the rotor motion in degrees.

axis: The vector defining the rotor axis.

axis_pt: A point lying anywhere on the rotor axis. This is used to define the position of the axis in 3D space.

centre: The central point of the representation. If this point is not on the rotor axis, then the closest point on the axis will be used for the centre.

span: The distance from the central point to the rotor blades (meters).

blade_length: The length of the representative rotor blades.

force: A flag which if True will overwrite the file if it already exists.

staggered: A flag which if True will cause the rotor blades to be staggered. This is used to avoid blade overlap.


This creates a PDB file representation of a rotor motional model. The model axis is defined by a vector and a single point on the axis. The centre of the representation will be taken as the point on the rotor axis closest to the given centre position. The size of the representation is defined by the span, which is the distance from the central point to the rotors, and the length of the blades.

Prompt examples

The following is a synthetic example:

relax> structure.create_rotor_pdb(file='rotor.pdb', rotor_angle=20.0, axis=[0., 0., 1.], axis_pt=[1., 1., 0.], centre=[0., 0., 2.], span=2e-9, blade_length=1e-9)

The relax user manual (PDF), created 2016-10-28.