Skip to main content Skip to local navigation
Home » Clustertools

Clustertools

clustertools is a Python package with tools for analysing star cluster simulations, although it can be applied to many N-body systems. The package is built around the StarCluster class, for which all functions are able to use or act on.

clustertools can be used for unit and coordinate transformations, the calculation of key structural and kinematic parameters, analysis of the cluster’s orbit and tidal tails (with the help of galpy), and measuring common cluster properties like its mass function, density profile, and velocity dispersion profile (among others). The package contains methods for loading data from commonly used N-body codes (NBODY6, NEMO, AMUSE) and generic snapshots.

clustertools is developed on Github. Please go to https://github.com/webbjj/clustertools to report issues or contribute to the code.