Perturb a rotating galactic disk and see whether self-gravity wins. Set surface density, velocity dispersion, rotation speed and radius to get the epicyclic frequency, Toomre Q, the unstable band of wavelengths and the growth rate of a ring perturbation from the dispersion relation. A Blender-built galaxy, with numerical checks of the dispersion relation built in.