Thanks for the reply, I had thought of using that but i still have the problem where there is no y component of the magnetic field.
In other words converting B(rc,phi,z)=(Brc(rc,theta,z),0,Bz(rc,theta,z)) would result in B(x,y,z)=(Bx(x,y,z),0,Bz(x,y,z)). The By(x,y,z) component is zero, is this...