[yt-users] Inclination problem

Matthew Turk matthewturk at gmail.com
Wed Mar 30 14:16:22 PDT 2016


Hi SK,

I'm not sure I totally understand, but if you have an inclination
angle you can use this directly in yt in the off axis slices and so
on.  They typically take a vector, but you should be able to convert
one to the other.

-Matt

On Tue, Mar 29, 2016 at 1:37 PM, Sushilkumar <sushil.sush19us at gmail.com> wrote:
> Dear yt:
>
> I am trying to numerically solve the region around a pulsar. Now since
> pulsar is an inclined rotator with inclination angle between rotation axis
> and dipole axis I would like to include in my yt script.
>
> My original code written in FORTRAN incorporated this inclination but how
> would I incorporate it into my visualization using yt without changing my
> data.
>
> Could you suggest ways for the same?
>
> The google drive link to my script (streamline.py) and streamline plot
> (streamline_t000.png) is included
>
> https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc
>
> Thanks in advance
>
> On Tue, Mar 29, 2016 at 12:54 PM, <yt-users-request at lists.spacepope.org>
> wrote:
>>
>> Send yt-users mailing list submissions to
>>         yt-users at lists.spacepope.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> or, via email, send a message with subject or body 'help' to
>>         yt-users-request at lists.spacepope.org
>>
>> You can reach the person managing the list at
>>         yt-users-owner at lists.spacepope.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of yt-users digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: gadget onto unigrid (Carla Bernhardt)
>>    2. Re: gadget onto unigrid (Matthew Turk)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 29 Mar 2016 15:55:27 +0200
>> From: Carla Bernhardt <carla.j.bernhardt at gmail.com>
>> To: Discussion of the yt analysis package
>>         <yt-users at lists.spacepope.org>
>> Subject: Re: [yt-users] gadget onto unigrid
>> Message-ID:
>>
>> <CAFK0O=2vH24ViqeZ5QS3DY3uido0kEaF=UhyGS_beuiUMbw7Ag at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi All,
>>
>> A follow-up question: In using arbitrary_grid (but with enzo data), how
>> does one then extract a field of an arbitrary_grid? I tried
>> arbgrid["density"] as I have done with a smoothed_covering_grid object,
>> but
>> it does not work (here is the traceback <http://pastebin.com/afgcgpp0> I
>> got).
>>
>> Thanks,
>> Carla
>>
>> 2016-02-23 17:21 GMT+01:00 Matthew Turk <matthewturk at gmail.com>:
>>
>> > Hi Desika,
>> >
>> > Yup, this can be done reasonably easily using either the
>> > .arbitrary_grid object (which was designed for this) or the interface
>> > to the arbitrary grid that's in the development version, which is
>> > ds.r[ ... ] where the ... is some combination of bounds and steps.
>> >
>> > http://yt-project.org/docs/dev/analyzing/objects.html#arbitrary-grid
>> >
>> >
>> > http://yt-project.org/docs/dev/analyzing/objects.html#slicing-syntax-for-selecting-data
>> >
>> > On Tue, Feb 23, 2016 at 10:18 AM, Desika Narayanan
>> > <desika.narayanan at gmail.com> wrote:
>> > > Hi All,
>> > >
>> > > Is it possible to deposit the particles from a gadget data set onto a
>> > > uniform grid in yt?  Or, could it be possible to trick the octree
>> > deposition
>> > > into doing it by forcing no refinements, but some sort of native grid
>> > > resolution?
>> > >
>> > > thanks,
>> > > desika
>> > >
>> > >
>> > > _______________________________________________
>> > > 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/20160329/e29a03a1/attachment.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 29 Mar 2016 08:57:08 -0500
>> From: Matthew Turk <matthewturk at gmail.com>
>> To: Discussion of the yt analysis package
>>         <yt-users at lists.spacepope.org>
>> Subject: Re: [yt-users] gadget onto unigrid
>> Message-ID:
>>
>> <CALO3=5HR=zLHujWKgLpqwei_98vBOjpYvQ4m8nnUFR=P098utA at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Hi Carla,
>>
>> This functionality was recently implemented and is in the development
>> version, but not yet in the stable.  We're hoping for a release very
>> shortly, but you can also try the dev version if you'd like!
>>
>> -Matt
>>
>> On Tue, Mar 29, 2016 at 8:55 AM, Carla Bernhardt
>> <carla.j.bernhardt at gmail.com> wrote:
>> > Hi All,
>> >
>> > A follow-up question: In using arbitrary_grid (but with enzo data), how
>> > does
>> > one then extract a field of an arbitrary_grid? I tried
>> > arbgrid["density"] as
>> > I have done with a smoothed_covering_grid object, but it does not work
>> > (here
>> > is the traceback I got).
>> >
>> > Thanks,
>> > Carla
>> >
>> > 2016-02-23 17:21 GMT+01:00 Matthew Turk <matthewturk at gmail.com>:
>> >>
>> >> Hi Desika,
>> >>
>> >> Yup, this can be done reasonably easily using either the
>> >> .arbitrary_grid object (which was designed for this) or the interface
>> >> to the arbitrary grid that's in the development version, which is
>> >> ds.r[ ... ] where the ... is some combination of bounds and steps.
>> >>
>> >> http://yt-project.org/docs/dev/analyzing/objects.html#arbitrary-grid
>> >>
>> >>
>> >> http://yt-project.org/docs/dev/analyzing/objects.html#slicing-syntax-for-selecting-data
>> >>
>> >> On Tue, Feb 23, 2016 at 10:18 AM, Desika Narayanan
>> >> <desika.narayanan at gmail.com> wrote:
>> >> > Hi All,
>> >> >
>> >> > Is it possible to deposit the particles from a gadget data set onto a
>> >> > uniform grid in yt?  Or, could it be possible to trick the octree
>> >> > deposition
>> >> > into doing it by forcing no refinements, but some sort of native grid
>> >> > resolution?
>> >> >
>> >> > thanks,
>> >> > desika
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > 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
>> >
>> >
>> >
>> > _______________________________________________
>> > yt-users mailing list
>> > yt-users at lists.spacepope.org
>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>> ------------------------------
>>
>> End of yt-users Digest, Vol 97, Issue 34
>> ****************************************
>
>
>
>
> --
> SK2
>
> "Claiming that something can move faster than light is a good
> conversation-stopper in physics. People edge away from you in cocktail
> parties; friends never return phone calls. You just don’t mess with Albert
> Einstein."
>
>
> _______________________________________________
> 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