[Gmsh] Spiral coil?

Mj AJ croucrou1213 at gmail.com
Tue May 29 16:41:35 CEST 2018


First of, many thanks to all the peoples that contributed to Onelab
components.

I'm modifying the inheat.geo file example to create a spiral coil and
instead of calculating inductance, I'll calculate the magnetic field. But
first the geometry.

I've modified the extrusion to
 tmp[] = Extrude {
{-Cos((j-1)*Pi/2)*(ws+rc*2)/4,-Sin((j-1)*Pi/2)*(ws+rc*2)/4,0}, {0,0,1} ,
{0,0,0} , Pi/2} { Surface {tmp[0]};};

However this gives fragmented pieces (see image). How would you make a
spiral coil?

Best regards,

Majed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180529/37442e95/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Spiral.png
Type: image/png
Size: 14292 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20180529/37442e95/attachment.png>


More information about the gmsh mailing list