<div dir="ltr">Hi yt users,<div><br></div><div>I've been using yt for a few years, and I know how to simple fields, but I'm wondering if someone has created a field that calculates enclosed mass at all cells (so, I guess the mass in a sphere centred on the centre of the simulation domain, or centre of mass). I've tried to think of a few ways of doing this, but all require iterating over all cells, and that's not very efficient. If anyone has an suggestions or can help, that would be great!</div><div><br></div><div>Regards,</div><div>Rajika.</div></div>