I am hoping someone can help me draw a combined spring-damper in circuitikz, similar to the existing spring and damper components, for use in representing a viscoelastic element.

    \draw (0,0)
    to[spring,*-] (1,0)
    to[damper,-*] (2,0);

circuitikz spring and damper

I imagine it looking something like the attached drawing.

combined spring-damper


I have added the new component (which, I admit, could be handsomer --- patches welcome) to the pre-release of circuitikz; you can get it and see the manual online here: https://circuitikz.github.io/circuitikz/

The component is something like this:

The correct image

and, more important, I added a sort-of howto on how to define new components.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.