Hi,
If you need a spiral magnetization, you can use the Helical() command. If you want a helical geometry, I don't think there is an easy-built in way. You would probably need to build it up using more primitive shapes, or load it from a file. Probably you could do something like:
SetGridsize(40,40,20)
SetCellsize(2e-9,2e-9,4e-9)
r := 10e-9
pitch := 2e-9
dphi := 10*pi/180
primitive := cylinder(20e-9,4e-9)
helix := primitive.transl(r,0,-20e-9)
imax := 36
for i:=0.0; i<=imax; i++ {
phi := i*dphi
x := r*cos(phi)
y := r*sin(phi)
z := -20e-9 + i*pitch
piece := primitive.transl(x,y,z)
helix = helix.add(piece)
m.SetInShape(piece, uniform(cos(phi),sin(phi),0))
}
SetGeom(helix)
This builds up a helix by doing a cylinder(circle) for each layer. tweak as necessary.
Best,
Josh L.