POV-Ray : Newsgroups : povray.text.scene-files : Simple macro for creating electric current coils Server Time
22 Dec 2024 04:00:52 EST (-0500)
  Simple macro for creating electric current coils (Message 1 to 2 of 2)  
From: Marvin
Subject: Simple macro for creating electric current coils
Date: 1 Apr 2007 18:45:02
Message: <web.46102fc1374b84879aa703c90@news.povray.org>
Macro square_multicoil(M, N, a, b, r, d, round) allows creation of square
coils a x b, with M layers of N twists, such as those of electric
transformers. Round coils can be simulated with a = b, r ~ a/2 - d.

Wire in coil is carefully wound from beginning to the end and it
electrically fits requirements for conducting current, it is not
geometrically simulated.

Toroid coil will come soon is separate macro.

This macro was inspired by a project of Institute "Rudjer Boskovic" and
Faculty of Graphic Arts, University of Zagreb.

This macro is LGPL-ed. This means you can use it even in commercial designs,
without fee and without quoting authors, except leaving the license in
included source file, as long as the license terms are met.

Standard GNU LGPL license applies.

Enjoy,
Marv


Post a reply to this message


Attachments:
Download 'multicoil2a.zip' (487 KB)

From: larryfulkerson
Subject: Re: Simple macro for creating electric current coils
Date: 13 Feb 2009 23:30:00
Message: <web.4996481ec039d3cf52125cb10@news.povray.org>
Hey dude:  good thing you commented out the __square_coil line....it doesn't
have the right number of arguments to pass the parse test.  Just thought you'd
like to know.

  object {
    //__square_coil (1, 5, 2.5, 2.5, 0.5, 0.2, 1.4, not_first)
    square_multicoil (4, 7, a, b, r, d, l, round)
    texture { T_Copper_3C
      //pigment { color rgb <0.8, 0.8, 0.95> }
    }
  }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.