<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Daniel,<div class=""><br class=""></div><div class="">I should add to Cameron’s note here that this would be a very interesting addition to the code base, if you are interested in working on it and submitting it for inclusion in yt. Others should comment on the best place for it to go in the code. </div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">John Z</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 21, 2015, at 6:27 PM, Cameron Hummels <<a href="mailto:chummels@gmail.com" class="">chummels@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Daniel,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Cameron</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jan 21, 2015 at 3:58 PM, Daniel Fenn <span dir="ltr" class=""><<a href="mailto:dsfenn@gmail.com" target="_blank" class="">dsfenn@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi everyone,<div class=""><br class=""></div><div class="">Is there a straightforward way of creating a spherical data object by specifying the total enclosed mass, rather than the radius?</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Thanks for your help.</div><div class=""><br class=""></div><div class="">Dan</div></div>
<br class="">_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature">Cameron Hummels<div class="">Postdoctoral Researcher</div><div class="">Steward Observatory</div><div class="">University of Arizona</div><div class=""><a href="http://chummels.org/" target="_blank" class="">http://chummels.org</a></div></div>
</div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></div></body></html>