[yt-users] yt-users Digest, Vol 78, Issue 38

Matthew Turk matthewturk at gmail.com
Thu Aug 14 12:05:04 PDT 2014


Hi Ari,

Looks to me like it may actually not be enabled by default for some
reason.  Can you try calling:

ds.field_info.create_cooling_fields("")

and seeing if that adds the correct fields?  If so, I'll update the
code to do this automatically.

-Matt

On Thu, Aug 14, 2014 at 1:56 PM, Professor Maller
<amaller at citytech.cuny.edu> wrote:
> Hi Matt,
>
> Those fields are not in my derived field list. That is
> ds.derived_field_list. Do I have to add them in some way? Or is there a way
> to check if yt didn't find the cooling??.dat files?
>
> Thanks,
>
> Ari
>
>
> On Thu, Aug 14, 2014 at 1: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. ionization states in ramses data sets (Professor Maller)
>>    2. Re: ionization states in ramses data sets (Geoffrey So)
>>    3. Re: ionization states in ramses data sets (Matthew Turk)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Thu, 14 Aug 2014 13:12:11 -0400
>> From: Professor Maller <amaller at citytech.cuny.edu>
>> To: yt-users at lists.spacepope.org
>> Subject: [yt-users] ionization states in ramses data sets
>> Message-ID:
>>
>> <CACCSjdOxDp+Mmgae1XLYJJvC7vJn52Xu59ppUA+p0mq7Fggz8A at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>>
>> Does anyone have code to create derived fields of ionization states, e.g.
>> HI, for ramses data sets?  If that's a no, does anyone have an example of
>> a
>> derived field where you have to read in a table and interpolate the field
>> values.
>>
>> Thanks,
>>
>> Ari
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140814/6c53560d/attachment.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Thu, 14 Aug 2014 10:19:49 -0700
>> From: Geoffrey So <gsiisg at gmail.com>
>> To: Discussion of the yt analysis package
>>         <yt-users at lists.spacepope.org>
>> Subject: Re: [yt-users] ionization states in ramses data sets
>> Message-ID:
>>
>> <CAM-dO+DM+ygbGg3GG9vrxjSn+JM9mGGgHDXA1UEJu1KYpnJJqw at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>>
>> according to
>> http://yt-project.org/docs/2.6/analyzing/creating_derived_fields.html?
>>
>> what worked for me for enzo data is the following
>>
>> def _HINeutralFraction(field, data):
>>     return data['HI_Density']/(data['HI_Density']+data['HII_Density'])
>>
>> add_field('HINeutralFraction',function=_HINeutralFraction,
>>           units=r"\rho_\mathrm{HI}/\rho_\mathrm{H}")
>>
>> unless there's something strange with ramses dataset, the above should
>> work.
>>
>> From
>> G.S.
>>
>>
>> On Thu, Aug 14, 2014 at 10:12 AM, Professor Maller <
>> amaller at citytech.cuny.edu> wrote:
>>
>> > Hi,
>> >
>> > Does anyone have code to create derived fields of ionization states,
>> > e.g.
>> > HI, for ramses data sets?  If that's a no, does anyone have an example
>> > of a
>> > derived field where you have to read in a table and interpolate the
>> > field
>> > values.
>> >
>> > Thanks,
>> >
>> > Ari
>> >
>> > _______________________________________________
>> > 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/20140814/14caf322/attachment-0001.htm>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Thu, 14 Aug 2014 12:22:16 -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] ionization states in ramses data sets
>> Message-ID:
>>
>> <CALO3=5HE+5eFNfXaWqJ_ApFCZeE_Sy73EEj+O5y7CuqMiVQ9sQ at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Hi Ari,
>>
>> My reading of yt/frontends/ramses/fields.py is that this should be
>> implemented already, using the cooling_%05i.dat files.  If it's able
>> to find those files, it will create the appropriate derived fields
>> from them -- specifically, I think it can do Electron, HI, HII, HeI,
>> HeII, and HeIII.  Is it not creating those?
>>
>> On Thu, Aug 14, 2014 at 12:12 PM, Professor Maller
>> <amaller at citytech.cuny.edu> wrote:
>> > Hi,
>> >
>> > Does anyone have code to create derived fields of ionization states,
>> > e.g.
>> > HI, for ramses data sets?  If that's a no, does anyone have an example
>> > of a
>> > derived field where you have to read in a table and interpolate the
>> > field
>> > values.
>> >
>> > Thanks,
>> >
>> > Ari
>> >
>> > _______________________________________________
>> > 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 78, Issue 38
>> ****************************************
>
>
>
> _______________________________________________
> 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