[yt-users] Not able to read 2D BoxLib files
Mani Chandra
mc0710 at gmail.com
Tue Jul 23 22:27:13 PDT 2013
Hi Andrew,
This is a code which I'm writing now using the BoxLib framework, so it is
not exactly any of Nyx, Castro, Maestro or Orion. But I thought that since
they all use BoxLib, I could simply use any of those frontends (although
those frontends require a lot of parameters specific to those codes, which
I just commented out).
So I guess I'll have to write a frontend then.
Thanks,
Mani
On Wed, Jul 24, 2013 at 12:21 AM, Andrew Myers <atmyers2 at gmail.com> wrote:
> Hi Mani,
>
> To my knowledge, no one has ever used yt with 2D Orion data. I'm not sure
> if any of the other BoxLib codes support 2D. I think the reason the Orion
> code is getting called is because yt can tell your dataset uses BoxLib, but
> not that it belongs to any of the other BoxLib-based codes (Nyx, Castro, or
> Maestro), so it falls back to Orion.
>
> What simulation code generated this dataset? If it's not one of Nyx,
> Castro, Maestro, or Orion, then you'll probably need to write a new
> frontend for your data.
>
> -Andrew Myers
>
> On Tue, Jul 23, 2013 at 7:50 PM, Mani Chandra <mc0710 at gmail.com> wrote:
>
>> Hi Everyone,
>>
>> I'm trying to load a 2D BoxLib file into yt. It looks like it is using
>> the same code as the Orion frontend and it fails with the following error:
>>
>> /home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/data_objects/static_output.pyc
>> in hierarchy(self)
>> 191 raise RuntimeError("You should not instantiate
>> StaticOutput.")
>> 192 self._instantiated_hierarchy = self._hierarchy_class(
>> --> 193 self, data_style=self.data_style)
>> 194 return self._instantiated_hierarchy
>> 195 h = hierarchy # alias
>>
>> /home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py
>> in __init__(self, pf, data_style)
>> 119 self.data_style = data_style
>> 120
>> --> 121
>> self.readGlobalHeader(header_filename,self.parameter_file.paranoid_read) #
>> also sets up the grid objects
>> 122 self.__cache_endianness(self.levels[-1].grids[-1])
>> 123 AMRHierarchy.__init__(self,pf, self.data_style)
>>
>> /home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py
>> in readGlobalHeader(self, filename, paranoid_read)
>> 194 self.dimension = int(self.__global_header_lines[counter])
>> 195 if self.dimension != 3:
>> *--> 196 raise RunTimeError("Orion must be in 3D to use yt.")
>> *
>> 197 counter += 1
>> 198 self.Time = float(self.__global_header_lines[counter])
>>
>> Has anyone managed to load 2D Orion files into yt?
>>
>> Thanks,
>> Mani
>>
>> _______________________________________________
>> 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/20130724/15c7dc5f/attachment.html>
More information about the yt-users
mailing list