<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><br></div>Tazkera<br></div>