Good question. This is generally used internally, but it can be called externally with the right work. Usually, fields are set up that have the field type "deposit", so things like, ("deposit", "all_density") would be a density deposition of the "all" particle type. This should still work for FLASH datasets. But, if you want to set it up yourself, you can take a look at how it's done in yt/fields/particle_fields.py in the particle_deposition_functions function, which accepts a particle type, the name of the coordinates for that particle type, the name of the mass field for that particle type, and the field registry (ds.field_info) to insert the fields into.
Let us know if that helps!
On Mon, Aug 3, 2020 at 8:35 AM firstname.lastname@example.org wrote:
I'm trying to use the 'density' method for the smooth() function (which points to the class SmoothedDensityEstimate), but I can't find any documentation about how to use the 'density' method of smooth (i.e. what fields, index fields, etc. I should feed it.) Could someone give me an example of how this method should be used? I'm using yt 3.6 with FLASH particle data. The link to the SmoothedDensityEstimate class code is https://github.com/yt-project/yt/blob/6befef2bc0427250fd62395962599be41b193e... .
Thanks, Camryn _______________________________________________ yt-users mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: email@example.com