2

I need to get a plot with a trajectory of particle through system of magnets.

So I know the coordinate and angle of particle on the edge of each magnet (like y=0,5 alpha=0.3rad) so how can I draw a smooth trajectory line (like Bezier curve)? Here is an actual system:

1 Answers1

1

I wrote some examples of plotting paramaterized paths in pgfplots yesterday: Drawing Functions on Spheres. If you have a closed-form parametric solution, you should be able to plot it and the magnets the same way. You might want to look at quiver plots for the field lines.

If you’re saying you want to calculate a Bezier curve from control points and plot that, Matlab and Octave can solve that and export the plot in TikZ format (I give an example of exporting from those programs at the link above). If you want to try something like that in pgfplots, the example on page 352 of the pgfplots manual might be helpful.

(On second look, your illustration shows I’m overcomplicating things.)

Davislor
  • 44,045