7.11 Geometrical operations

cmcenter( )
Move the Nbody object in order to center the mass center at the origin.

cvcenter( )
Center the center of velocities at the origin.

histocenter( [rbox],[nb])
Move the Nbody object in order to center the higher density region found near the mass center. The higher density region is determined with density histograms.

hdcenter( )
Move the Nbody object in order to center the higher density region found. The higher density region is the maximum of variable rho.

translate( dx,[mode])
Translate the positions or the velocities of the object.

rotate( [angle],[mode],[axis])
Rotate the positions and/or the velocities of the object around a specific axis.

rotate2( [angle],[axis],[point])
Rotate the positions and/or the velocities of the object around a specific axis. This function rotate positions and velocities

align( axis,[mode],[sgn],[fact])
Rotate the object in order to align the axis axis with the $z$ axis.

align2( [axis1=[1,0,0]],[axis2=[0,0,1]],point=[0,0,0])
Rotate the object in order to align the axis1 axis1 with the axis2 axis2.

spin( [omega=None],[L=None],[j=None],[E=None])
Spin the object with angular velocity "omega" (rigid rotation). Omega is a 1 x 3 array object. If L (total angular momentum) is explicitely given, compute Omega from L (1 x 3 array object).

See About this document... for information on suggesting changes.