25 Jun
2019
25 Jun
'19
9:56 a.m.
I created the arbitrary grid (shown below), however there seem to be no data in it. arb_grid.field_data shows empty arrays for Coordinates and Masses fields and an array full of zeros for the Density field, which seems very strange. The density field is all zeros even after the arbitrary grid is saved and loaded as a new yt dataset. arb_grid = data.arbitrary_grid([-1,-1,-1], [1,1,1], [64,64,64]) ds_new = arb_grid.save_as_dataset(fields=[('deposit','PartType1_density')]) grid_ds = yt.load(ds_new) grid_ds.r[('gas','PartType1_density')] ----> YTArray full of zeros although I ask for this field to be pregenerated in ds_new Should I be defining the grid differently? Thank you