Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Plotting magnetic field lines in 3D
Posted 04.02.2021, 09:28 GMT-5 Low-Frequency Electromagnetics Version 5.5 3 Replies
Please login with a confirmed email address before reporting spam
I'm trying to plot magnetic field lines in 3D, but when I select the streamline surface plot, it gives me magnetic flux density by default (mf.Bx, mf.By, mf.Bz) (in units of Teslas, see picture 1).
What I want is what one gets when plotting contour plots in 2D-axisymmetric, which is mf.Aphi x r (in units of Wb, see picture 2).
I checked out this answer, I've tried transforming between coordinate systems (cylindrical in I've tried transforming between coordinate systems (cylindrical in 2D-axisymmetric to cartesian in 3D), but this doesn't work. Specifically, I tried to use mf.Ax, mf.Ay, mf.Az with various expressions of r, such as r = sqrt(x^2 + y^2), but it doesn't plot what I'm looking for. I've also tried plotting contour plots on the cut plane, but it also doesn't look right (picture 3).
Any help is appreciated. Thanks!