Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DC/DC Converter #529

Closed
Pratched opened this issue Apr 26, 2021 · 6 comments
Closed

Add DC/DC Converter #529

Pratched opened this issue Apr 26, 2021 · 6 comments
Assignees

Comments

@Pratched
Copy link

@Pratched Pratched commented Apr 26, 2021

Hey folks, cheers for the good work. Great stuff to work with. Is it possible to simply add a DC/DC-converter shape? I assume its basically copy&paste as interchanging the sine with another equal sign as you did with sdcac and sacdc?

@Rmano
Copy link
Collaborator

@Rmano Rmano commented Apr 27, 2021

Hi! Wouldn't \draw (0,0) to [twoportsplit, t1={$=$}, t2={$=$}] ++(3,0); fits the bill?

image

@Pratched
Copy link
Author

@Pratched Pratched commented Apr 27, 2021

Well yes it does. It is a suitable easy solution, that I havnt thought of. Cheers!
However, I still would suggest to add a DC/DC converter in the future since it is as often used as an DC/AC and would be easy to find for newbies.
If necessary I would get rid of an DC/AC or AC/DC since they are basically the same when using rotate. But this is just one electrical engineer view rather tikz developer.

@Rmano
Copy link
Collaborator

@Rmano Rmano commented Apr 27, 2021

It is true that the symbol is slightly different though. I'll see if I can add it easily.
The problem with rotate is that then you have to remember that the anchors rotate, too ;-)...
In the meantime you can define a style:

\documentclass[border=10pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\tikzset{sdcdc/.style={twoportsplit, t1={$=$}, t2={$=$}}}
\begin{tikzpicture}[]
    \draw (0,0) to [sdcdc] ++(3,0);
\end{tikzpicture}
\end{document}

@Pratched
Copy link
Author

@Pratched Pratched commented Apr 27, 2021

Fair enough. Havnt thought about that either :)
Maybe a little note around sdcac reading "see twoportsplit for further designs" could also do the trick. Whereas I realise once you know/read it, it is rather obvious...

However, cheers for the quick response and help :)

Rmano added a commit to Rmano/circuitikz that referenced this issue Apr 27, 2021
@Rmano Rmano linked a pull request that will close this issue Apr 27, 2021
@Rmano
Copy link
Collaborator

@Rmano Rmano commented Apr 27, 2021

It was easy, and clearly, the block is fitting better with the other ones. Thanks!

@Rmano Rmano self-assigned this Apr 27, 2021
@Rmano Rmano closed this in #530 Apr 27, 2021
@Rmano
Copy link
Collaborator

@Rmano Rmano commented Apr 27, 2021

Please feel free to re-open if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants