Hi Roberto, I've been thinking about this and I don't think any fields exist in yt that do this *right now*. We have relative velocity, and coordinate transformations (i.e., cylindrical) but not transformations of the fields. You can likely accomplish this in a derived field with something like: def rel_x(field, data): x_c = data.get_field_parameter("center") return data['x'] - x_c On Thu, Nov 19, 2020 at 12:28 AM trobolo dinni < trobolo.trobolo.dinni5@gmail.com> wrote:
Dear yt users,
I have a common envelope simulation where two stars orbit each other. The cores of the stars are approximated by point-masses.
I would like to move my coordinate system on the core of one of them with the x axis aligned with the semi-major axis of the orbit, so as to be able to analyse the data in a co-rotating coordinate system. Is there any pre-built function in yt that allows moving the coordinates system to a specific point of the box and rotate them? Or I have to do it manually?
Thanks, Roberto _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: matthewturk@gmail.com