Hi Daniel,I don't know of any automatic way of doing this that already exists within yt. I think an iterative method where you start with a tiny sphere and increment the radius until you get the desired mass will be your best bet.CameronOn Wed, Jan 21, 2015 at 3:58 PM, Daniel Fenn <dsfenn@gmail.com> wrote:_______________________________________________Hi everyone,Is there a straightforward way of creating a spherical data object by specifying the total enclosed mass, rather than the radius?If not, I supposed I could write an iterative algorithm that would do it, but I'd rather avoid that if there's an easier way provided by yt.Thanks for your help.Dan
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
--
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org