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 multi port transformer #618

Closed
AndreaDiPietro92 opened this issue Mar 29, 2022 · 8 comments · Fixed by #625
Closed

add multi port transformer #618

AndreaDiPietro92 opened this issue Mar 29, 2022 · 8 comments · Fixed by #625
Assignees

Comments

@AndreaDiPietro92
Copy link

It could be very useful the introduction of multiport transformer, where we have one (o more) primary winding e two (o more) secondary winding (even 1 primary and 2 secondary will be very useful).
example:
https://www.electronics-tutorials.ws/wp-content/uploads/2018/05/transformer-trans59.gif

Thanks.

@Rmano
Copy link
Collaborator

Rmano commented Mar 29, 2022

Hmmm. There are zillions of possible combinations. I would go the subcircuit way in this case, or just drawing it with inductances.

@Rmano
Copy link
Collaborator

Rmano commented Mar 30, 2022

To ease the drawing of such things, what probably can be done is to add anchors to normal L that are at the same positions as transformers' "dot" anchors are...

image

...what do you think?

@Rmano Rmano self-assigned this Mar 30, 2022
@AndreaDiPietro92
Copy link
Author

This could be very useful. If you can find a solution for the positioning of the "core" (the two parallel lines) between two inductors the problem would be solved.

@Rmano
Copy link
Collaborator

Rmano commented Mar 30, 2022

This could be very useful. If you can find a solution for the positioning of the "core" (the two parallel lines) between two inductors the problem would be solved.

This is easily done with plain TikZ:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}
    \draw (0,3) -- ++(1,0) to[L, name=L1] ++(0,-2) -- ++(-1,0);
    \draw (0,0) -- ++(1,0) to[L, name=L2] ++(0,-2) -- ++(-1,0);
    \draw (3,1.5) -- ++(-1,0) to[L, name=L3] ++(0,-2) -- ++(1,0);
    \coordinate (x at center) at ($(L1.center)!0.5!(L3.center)$); % we will use just the x part
    \draw [thick, double,double distance=4pt]  (x at center|-L1.left) -- (x at center|-L2.right);
\end{tikzpicture}
\end{document}

image

@Rmano
Copy link
Collaborator

Rmano commented Mar 30, 2022

...and really, also the whole thing is not-so-difficult...

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}
    \draw (0,3) -- ++(1,0) to[L, name=L1] ++(0,-2) -- ++(-1,0);
    \draw (0,0) -- ++(1,0) to[L, name=L2] ++(0,-2) -- ++(-1,0);
    \draw (3,1.5) -- ++(-1,0) to[L, name=L3] ++(0,-2) -- ++(1,0);
    \coordinate (x at center) at ($(L1.center)!0.5!(L3.center)$); % we will use just the x part
    \draw [thick, double,double distance=4pt]  ([yshift=1cm]x at center|-L1.left) -- ([yshift=-1cm]x at center|-L2.right);
    \draw (L1.left) ++(-0.3,0) node[circ]{};
    \draw (L2.right) ++(-0.3,0) node[circ]{};
    \draw (L3.left) ++(0.3,0) node[circ]{};
\end{tikzpicture}
\end{document}

image

@AndreaDiPietro92
Copy link
Author

I think that this is the best solution for my problem..

@AndreaDiPietro92
Copy link
Author

Will be in the next release the extra anchors in the inductor?

@Rmano
Copy link
Collaborator

Rmano commented Apr 16, 2022

Will be in the next release the extra anchors in the inductor?

Yes --- see the linked PR #625

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

Successfully merging a pull request may close this issue.

2 participants