[yt-users] cannot access pressure field

Britton Smith brittonsmith at gmail.com
Mon Jun 27 09:42:03 PDT 2011


Hi JC,

That's actually very helpful to know you're using Zeus.  With Zeus, the
Gas_Energy field will not exist.  There should only be the ThermalEnergy
field.  An issue that keeps popping up is that some Enzo simulations use
Total_Energy instead of TotalEnergy, or the other way around.  The
definition of ThermalEnergy calls for using TotalEnergy when the simulation
used Zeus.  Can you try accessing the TotalEnergy field, explicitly without
the underscore in the name?

Britton

On Mon, Jun 27, 2011 at 6:35 PM, Jean-Claude Passy <jcpassy at gmail.com>wrote:

> **
> Hi Britton,
>
> 'Total_Energy' works fine but 'Gas_Energy' and 'ThermalEnergy' do not and
> lead to the same error.
> I don't know if it can be of any use but I am running with the Zeus solver.
>
> Thanks,
>
> JC
>
>
> On 27/06/11 12:23, Britton Smith wrote:
>
> Hi JC,
>
> It looks like the problem is coming up when the Pressure field asks for the
> ThermalEnergy field.  If you try region['ThermalEnergy'], does that work?
> If not, please also try region['TotalEnergy'] and region['GasEnergy'].
>
> Britton
>
> On Mon, Jun 27, 2011 at 6:19 PM, Jean-Claude Passy <jcpassy at gmail.com>wrote:
>
>>  Hi all,
>>
>> I must be doing something silly because I get a weird error when trying to
>> access the 'Pressure' field of a region:
>>
>> --------------------------------- TypeError: unsupported operand type(s)
>> for *=: 'NoneType' and 'float' ---------------------------------
>>
>> It works fine with 'Density', 'x-velocity', 'x', ... I have pasted the
>> complete output error here
>> http://paste.enzotools.org/show/7up5l2Q3Rc8nnLZA3VKu
>> Has anyone ever encountered that ?
>>
>> Thanks a lot,
>>
>> JC
>>
>>
>> PS: I really like the new home page of the yt website. Congrats !
>>
>> _______________________________________________
>> 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/20110627/c4f9782b/attachment.htm>


More information about the yt-users mailing list