I am trying to make a 3D plot of arrows showing the directions of my magnetic field on different points on a sphere. I am constantly facing errors about the scaling which I do not know how to fix. I would be thankful if somebody can help.
d = {Sin[2 θ] Cos[ϕ], Sin[2 θ] Sin[ϕ], Cos[ 2 θ]}
σ = {PauliMatrix[1], PauliMatrix[2], PauliMatrix[3]}
B = d.σ
dat = N[Table[B, {θ, .15, 3, .1}, {ϕ, 0, 6, .2}]]
spherearrow1 = Graphics3D[Table[{Arrowheads[.01], Arrow[dat[[i]]]}, {i, 1, Length[dat]}]
dvec1
and\[Sigma]vec
to be?Graphics3D
is expecting that each coordinate is given as{x, y, z}
. So make sure thatdat[[1]]
for example, is something like{{x1, y1, z1}, {x2, y2, z2}}
so that it knows where to start each arrow and where to end each arrow. $\endgroup$ – MassDefect Jan 27 '19 at 23:22d = {0, 0, 1}
andB = {{1, 0}, {0, -1}}
. It's not clear to me which direction such an arrow should be pointing. Should it be a vector that goes from the point{1, 0, 0}
to{0, -1, 0}
or something? That would be fairly easy to do, but I'm guessing that's not it since the Pauli matrices show up. $\endgroup$ – MassDefect Jan 27 '19 at 23:40