[yt-users] yt help deriving new fields

Matthew Turk matthewturk at gmail.com
Thu Feb 11 08:57:48 PST 2016


Hi Tazkera,

Try just doing return 0.5*dm*(xv**2+yv**2+zv**2)+grav_pot*dm instead of
including the assingment.

On Mon, Feb 8, 2016 at 2:08 PM, tazkera haque <h.tazkera at gmail.com> wrote:

> Hi, I need a little help in defining a new derived field. my goal is to
> find if a stellar system eject some mass or not.
>
> I am attaching the derived_field_list from the file I have. I am trying to
> define the total energy of the system E=0.5*m*v**2+gravitational potential
> energy*m
>
> I am completely new to python and trying to get hold of the language
> through yt. I am attaching my efforts and the errors. please help me fix
> that.
>
> Thanks in advance.
>
> Tazkera
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160211/d2ea7ecf/attachment.html>


More information about the yt-users mailing list