Hi Zeren,
I implemented the rotation of the velocity vectors in pyCloudy. I'm not sure it is working well. Could you help in testing that it works well?
You need to update to the branch:
pip install -U git+https://github.com/Morisset/pyCloudy.git@3d_velocities
the set_velocity method should work the same as before. You do not need to rotate the velocity, define it in the "rest frame" without rotation. Then you can set up the angle value and the velocity should turn (I hope...). You can access the (rotated) velocity components with m3d.cub_coord.vel_x (vel_y and vel_z). The norm of the vector is m3d.cub_coord.vel.
Once it is validated, I will merge this branch and it will be in the master pyCloudy release.
Gimme some feedback,
Cheers,
Christophe
pc.config.SAVE_LIST_ELEMS.append(['magnesium', '.ele_Mg'])
print(pc.config.SAVE_LIST_ELEMS)