<div dir="ltr">Hi Tazkera,<div><br></div><div>Try just doing return 0.5*dm*(xv**2+yv**2+zv**2)+grav_pot*dm instead of including the assingment.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 2:08 PM, tazkera haque <span dir="ltr"><<a href="mailto:h.tazkera@gmail.com" target="_blank">h.tazkera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>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. <br><br></div>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<br><br></div>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. <br><br></div>Thanks in advance. <br><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Tazkera<br></font></span></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>