new_sphericalmassencl_sphere¶
-
amuse_util.ic.invcdf.
new_sphericalmassencl_sphere
(number_of_particles: int, encl_mass_func: function, vel_potential, \*list_arguments, \*\*keyword_arguments)¶ Create a sphere with the given number of particles.
Returns a set of stars with equal mass and positions and velocities distributed to fit an enclosed mass function. The model is centered around the origin. Positions and velocities are optionally scaled such that the kinetic and potential energies are 0.25 and -0.5 in nbody-units, respectively.
- Parameters
- number_of_particles: int
Number of particles to include in the plummer sphere
- encl_mass_func: function
- vel_potential: amuse potential
- convert_nbody: When given will convert the resulting set to SI units
- radius_cutoff: Cutoff value for the radius (defaults to 22.8042468)
- mass_cutoff: Mass percentage inside radius of 1
- do_scale: scale the result to exact nbody units (M=1, K=0.25, U=-0.5)