[yt-users] Creating a sphere based on enclosed mass

Daniel Fenn dsfenn at gmail.com
Wed Jan 21 18:07:49 PST 2015


Ok, thanks everyone. I'll plan on writing this routine and submitting it.

Dan

2015-01-21 18:34 GMT-05:00 John ZuHone <jzuhone at gmail.com>:

> Hi Daniel,
>
> 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.
>
> Best,
>
> John Z
>
> On Jan 21, 2015, at 6:27 PM, Cameron Hummels <chummels at gmail.com> wrote:
>
> 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.
>
> Cameron
>
> On Wed, Jan 21, 2015 at 3:58 PM, Daniel Fenn <dsfenn at 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 at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
>
> --
> Cameron Hummels
> Postdoctoral Researcher
> Steward Observatory
> University of Arizona
> http://chummels.org
>  _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150121/0720b837/attachment.html>
-------------- next part --------------
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


More information about the yt-users mailing list