<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">This seems like it is somewhere between basic sphere objects and the halo_analysis analysis_module.  Perhaps as an additional function in the data_objects/selection_data_objects.py file and then tagging the YTSphereBase with a kwarg so that you can specify a desired mass instead of radius?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 4:34 PM, John ZuHone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@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 style="word-wrap:break-word">Hi Daniel,<div><br></div><div>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><br></div><div>Best,</div><div><br></div><div>John Z</div><div><div class="h5"><div><br><div><blockquote type="cite"><div>On Jan 21, 2015, at 6:27 PM, Cameron Hummels <<a href="mailto:chummels@gmail.com" target="_blank">chummels@gmail.com</a>> wrote:</div><br><div><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" target="_blank">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>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>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></div></blockquote></div><br></div></div></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>