<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi Daniel,<div><br></div><div>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.</div><div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 3:58 PM, Daniel Fenn <span dir="ltr"><<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>Is there a straightforward way of creating a spherical data object by specifying the total enclosed mass, rather than the radius?</div><div><br></div><div>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.</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Dan</div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div></div>
</div>