-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to restore EM field from polar back to Cartesian coordinates ? #203
Comments
Dear @zubairy
note, that only the order of the arguments This will make your example almost work. In the back transformation the I think we need to look into this, but I am on travel right now. However, i will leave the issue open for now, till we resolved the inconsistency. Thanks a lot for reporting it and I hope things work for you now! Please let me know if something else comes up. Cheers |
Dear Stephan, Thank you so much for replying me during your travel, changing the definition of the functions indeed works. Actually, this time in the So now, the only problem is the “huge value”. I don’t know much about the Jacobian; maybe you’ve got some idea to handle it in elegant way. If not, the transformation is already pretty fine for me. Regards, |
Dear Alexander, Sorry for this long-delayed reply, I didn't see the notification email from github until today. Your reply perfectly solved my problem, and to my understanding, passing Jacobian explicitly can also be used for any other future transformation. Thanks |
Thanks for the feedback! |
Hi, the figure below shows my attempt to transform EM field from Cartesian to polar and then back.
![Picture2](https://user-images.githubusercontent.com/12051096/56412889-3b4e4300-62b8-11e9-8b25-b14878f69c90.png)
(a) is the original field; transform it to polar (b) using
pp.Field.topolar()
;(c) using the
map_coordinate
as described in the doc;(d) & (e) are attempt to transform the field from (b) and (c) respectively, back to Cartesian using
map_coordinates
.My question is that why (b) & (c) diffrent, and how can I get the correct field from polar back to Cartesian. There I think must be some I don't understand about the
map_coordinates
function. The Python script I used is also attached.Thanks
The text was updated successfully, but these errors were encountered: