The C++ code can be downloaded from https://github.com/arganoid/ParticleUniverse
I am currently doing some work to allow for a config file. The calculation for the size is log e (mass) * 2.5f. I may add an option for customising this as one of the first config options.