[yt-users] ZeroDivisionError: Gadget isolated galaxy sim

Keita Todoroki keitee at physics.unlv.edu
Thu Nov 14 14:46:46 PST 2013


Hi,

I am trying to read in a gadget snap from isolated galaxy sims, but I get
ZeroDivisionError.
As you can see below, the parameters for the domain edge seems to be not
reading correctly, while it perfectly works fine for a snap from
cosmological sims.


In [2]: ds = GadgetStaticOutput('/Users/SilverStar/Desktop/iso_low.dat',
unit_base = {"kpc": 1.0})
yt : [INFO     ] 2013-11-14 14:22:03,592 Omega Lambda is 0.0, so we are
turning off Cosmology.
yt : [INFO     ] 2013-11-14 14:22:03,593 Parameters: current_time         
    = 0.0
yt : [INFO     ] 2013-11-14 14:22:03,593 Parameters: domain_dimensions    
    = [2 2 2]
yt : [INFO     ] 2013-11-14 14:22:03,594 Parameters: domain_left_edge     
    = [ 0.  0.  0.]
yt : [INFO     ] 2013-11-14 14:22:03,595 Parameters: domain_right_edge    
    = [ 0.  0.  0.]
yt : [INFO     ] 2013-11-14 14:22:03,596 Parameters:
cosmological_simulation   = 0

If the domain edge is simply reading the BoxSize,  the output above is
understandable because isolated galaxy sims do not require to set the
BoxSize (in fact we set it to 0) unlike cosmo sims.

Could this be the reason for the error?


-Keita




More information about the yt-users mailing list