Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Plotting position & magnetic Field lists ?' topicStudent Support Forum > General > Archives > "Plotting position & magnetic Field lists ?"

Help | Reply To Topic
Author Comment/Response
Ryan Daniels
04/30/13 03:18am

I have been trying to plot magnetic field data in a list. The data is of the form {{x, y, z, Bx, By, Bz}. I have over 700 of these data sets, but when I try to use ListVectorPlot3D to generate a plot of the magnetic field at the specific locations it gives me an error.

"is not a valid vector field dataset or a valid list of datasets."

I have read previous posts and have tried the suggestions, such as the partition function to put the list in the correct format, but I get {}.

Here is an example of my data. These are from 10 calculations. The position data and field data are in two different lists.

Position Values
{{0., 0., 0}, {0.005, 0., 0}, {0.01, 0., 0}, {0.015, 0., 0}, {0., 0.,
0}, {0.00404508, 0.00293893, 0}, {0.00809017, 0.00587785,
0}, {0.0121353, 0.00881678, 0}, {0., 0., 0}, {0.00154508,
0.00475528, 0}, {0.00309017, 0.00951057, 0}, {0.00463525, 0.0142658,
0}, {0., 0., 0}, {-0.00154508, 0.00475528, 0}, {-0.00309017,
0.00951057, 0}, {-0.00463525, 0.0142658, 0}, {0., 0.,
0}, {-0.00404508, 0.00293893, 0}, {-0.00809017, 0.00587785,
0}, {-0.0121353, 0.00881678, 0}, {0., 0., 0}, {-0.005,
6.12323*10^-19, 0}}

MagField Values
{{-0.519947, 0.00873725, -3141.11}, {225.538,
0.00936096, -3141.11}, {462.517, 0.0099845, -3141.11}, {724.636,
0.0106078, -3141.11}, {-0.519947, 0.00873725, -3141.11}, {182.371,
132.951, -3146.69}, {374.115, 272.357, -3154.63}, {586.242,
426.618, -3166.76}, {-0.519947, 0.00873725, -3141.11}, {69.3409,
215.115, -3149.34}}

My question is how do I get the function ListVectorPlot3D to work or is there another function that I can use to plot my data? My goal is to superimpose this data onto a helix, which is what the calculations are based on.

URL: ,
Help | Reply To Topic