[yt-users] adding a smoothed field

Desika Narayanan dnarayan at haverford.edu
Mon Nov 10 06:21:23 PST 2014


Hey All,

I'm trying to figure out how to add a new smoothed field to a data set.
Specifically, I want to add a (particle) field, and then be able to access
the smoothed mesh quantities (the same way I would access the mesh
quantities of density as below, for example)

ad = ds.all_data()

ad["deposit","PartType0_smoothed_desnsity"]

(in this case PartType0 is gas).   I'm adding a field prior to loading the
data set as described here:

http://yt-project.org/doc/developing/creating_derived_fields.html#defining-a-new-field

thanks,

desika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141110/7f47ba86/attachment.htm>


More information about the yt-users mailing list