# [pstricks] pst-coil: a macro for a physical coil needed

Juergen Gilg gilg at acrotex.net
Sat Jul 10 22:15:30 CEST 2010

Dear list,

please have a look at the code:

\documentclass{article}
\usepackage{pst-coil}
\begin{document}
\begin{center}
\begin{pspicture}(-0.5,-1)(10,1)
\pscoil[coilarm=3mm,coilwidth=4mm](0,0.5)(5,0.5)
\pscoil[coilarm=3mm,coilwidth=4mm](0,-0.5)(8.5,-0.5)
\end{pspicture}
\end{center}
\end{document}

These two coils should be _in physical sense_ identic -- meaning, that
they have the same number of windings.

Now is there already existing a code/command/macro, that defines the
\pscoil with an option of _number of windings_ and so caclulating the
coilheight parameter?
It would be physically correct to draw a coil -- enlarged or shrinked
--  with the same number of windings. For sure there is a way to correct
that with the _coilheight_.

Anyone done such a thing already? I guess to remember to have seen such
an approach, however do not remember where.

Regards,

Juergen

--
Jürgen Gilg
Austr. 59
70376 Stuttgart
-------------------------------------
Tel       0711.59 27 88
e-Mail    gilg at acrotex.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100710/08cdf68a/attachment.html>