
Hi Turhan, If you have a copy of the yt source, I suggest having a look the file yt/fields/vector_operations.py. In there, you will find a function called _divergence which illustrates how to create a divergence field. Additionally, I recommend looking for where that function is put to use in that file for an example of how to add such a field to the list of known fields. Britton On Tue, Oct 18, 2016 at 2:32 PM, turhan nasri <turhannasri@gmail.com> wrote:
Hi people,
I wish to see the sliceplots of "divergence of velocity" fields in yt. I see yt has an example of how to derive gradient of a scalar field , is there any example to show how to derive new field for divergence too ?
Best Turhan
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org