next up previous contents index
Next: model.rotate() rotate Up: The model class: handling Previous: model.rotate_dihedrals() change   Contents   Index

model.orient() -- center and orient MODEL

Description:
This command translates the MODEL so that its gravity center is at the origin of the coordinate system and that the three principal axes of the model's inertia ellipsoid correspond to the $x$, $y$, and $z$ axes of the coordinate system. It may even be used for approximate superposition if molecules have a similar non-spherical shape. Information about the principal axes is written to the log file.

Example: examples/commands/orient_model.py


# Example for: model.orient()

# This will orient the model along the principal axes of the inertia ellipsoid:

env = environ()
mdl = model(env)
mdl.read(file='1fas')
mdl.orient()
mdl.write(file='1fas.ini')



Ben Webb 2006-02-28