Using the StreamPlot I observed that when the streamline is a small circle, this line is not smooth. How can I increase the number of points along the streamline?
For example, these are the magnetic lines at (x,y)
due to vertical electric currents at (x1,y1)
:
bx[x_, y_, x1_, y1_] := -(y - y1)/((x - x1)^2 + (y - y1)^2)^(3/2);
by[x_, y_, x1_, y1_] := (x - x1)/((x - x1)^2 + (y - y1)^2)^(3/2);
pts = Flatten[Table[{x, y}, {x, -2., 2., .21}, {y, -2, 2, 0.2}], 1];
StreamPlot[{1.7 bx[x, y, -1.2, 1.5] - 0.4 bx[x, y, -1.1, 1.1],
+1.7 by[x, y, -1.2, 1.5] - 0.4 by[x, y, -1.1, 1.1]},
{x, -2., -.5}, {y, 0.5, 2.},
PerformanceGoal -> "Quality", AspectRatio -> Automatic,
StreamPoints -> {pts, Automatic, Scaled[2]}, StreamScale -> None]
StreamPlot
here. It maybe helpful. $\endgroup$