Closed juju1993 closed 2 years ago
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue.
hi @juju1993, thank your for reporting. Seems like at least half off the code you copy-pasted here is commented, it would help if you could remove the unused parts. I've taken the liberty of editing your message already because the code blocks were not properly delimited and the images didn't show. It would also be helpful to know what data format you're using; there are different mechanisms to change units depending on the data format.
hi @neutrinoceros thanks for the quick reply and sorry for the mess, I have cleaned the code now. I uploaded the h5py file in curl. We use SI units for our simulation.
from reading yt.load_particles
's docstring it looks like what you need to fix the length units something like
ds = yt.load_particles(data, length_unit=0.01, unit_system = "mks", bbox=bbox)
Though I'm not 100% sure that's the correct value to pass (it's supposed to be the conversion factor from code units to cm) Please tell be if this works for you.
As for the interpretation issue with the gather method, I have exactly 0 experience there so I'll defer to the particle experts.
Hi,
Thanks that solves the scaling problem. But its written other way around ds = yt.load_particles(data, length_unit=100.0, unit_system = "mks", bbox=bbox)
Is there a documentation where I can read more about gather and scatter methods?
hi @neutrinoceros ,
I think I found the problem in "gather" approach! Actually you helped me put the piece together by posting a link slack #help group! ... For "gather" approach. I added ds.use_sph_normalization = False and then I got the output which we expected! I will close the issue!
Glad you found a solution, I wasn't aware of this attribute.
Bug report
Bug summary When I used slice plots for SPH dataset (Miluphcuda solver). The output is drastically different for gather method and scatter method.
Code for reproduction
''curl link''' http://use.yt/upload/472925e3
Actual outcome
Expected outcome I cannot interpret the output I got using the "gather" method. I want to analyze the impact of the crater at the center
Version Information
I installed yt using pip