test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test [August 17, 2026 at 17:39] – Ivan Janevski | test [August 17, 2026 at 17:49] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Can I use ket | + | \documentclass[tikz, |
| - | $$\lvert\psi\rangle\langle\psi\lvert\\ \ket{\psi}\bra{\psi}$$ | + | |
| - | < | + | \usepackage{amsmath} |
| - | fdsafsdafds | + | \usepackage{circuitikz} |
| - | < | + | \usetikzlibrary{ |
| - | + | calc, | |
| - | \documentclass[tikz, | + | arrows.meta, |
| - | \usepackage[american]{circuitikz} | + | decorations.pathmorphing |
| + | } | ||
| \begin{document} | \begin{document} | ||
| \begin{circuitikz}[ | \begin{circuitikz}[ | ||
| - | | + | |
| - | | + | |
| - | | + | |
| + | > | ||
| + | | ||
| ] | ] | ||
| - | % Nodes | + | % ============================================================ |
| - | \coordinate (C) at (0,0); | + | % Resistor style |
| + | % ============================================================ | ||
| - | \coordinate (TL) at (-2, 2); | + | \tikzset{ |
| - | \coordinate (LM) at (-3, 0); | + | resistor/ |
| - | \coordinate (BL) at (-2,-2); | + | decorate, |
| + | | ||
| + | zigzag, | ||
| + | | ||
| + | amplitude=5.2pt | ||
| + | } | ||
| + | } | ||
| + | } | ||
| - | \coordinate (TR) at ( 2, 2); | + | % ============================================================ |
| - | \coordinate (RM) at ( 3, 0); | + | % Main geometry |
| - | \coordinate (BR) at ( 2,-2); | + | % ============================================================ |
| - | % ------------------------------------------------------------------ | + | \coordinate (C) at ( 0.00, 0.00); |
| - | % Outer branches | + | |
| - | % ------------------------------------------------------------------ | + | \coordinate (L) at (-4.40, 0.00); |
| + | \coordinate (TL) at (-2.10, 3.80); | ||
| + | \coordinate (TR) at ( 2.22, 3.80); | ||
| + | \coordinate (R) at ( 4.40, 0.00); | ||
| + | \coordinate (BR) at ( 2.26,-3.72); | ||
| + | \coordinate (BL) at (-2.28,-3.72); | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer upper-left branch | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (UL1) at ($(L)!0.25!(TL)$); | ||
| + | \coordinate (UL2) at ($(L)!0.67!(TL)$); | ||
| + | |||
| + | \draw (L) -- (UL1); | ||
| + | \draw[resistor] (UL1) -- (UL2); | ||
| + | \draw (UL2) -- (TL); | ||
| + | |||
| + | \node at (-3.79,1.88) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Top branch: Ig1 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (Ig1) at (-0.91,3.80); | ||
| - | % Top: TL -- Ig1 -- R -- TR | ||
| \draw | \draw | ||
| (TL) | (TL) | ||
| - | | + | |
| - | to[R, l=$R$] (TR); | + | ($(Ig1)+(-0.62,0)$); |
| - | % Upper-left | ||
| \draw | \draw | ||
| - | (TL) to[R, l_=$R$] (LM); | + | (Ig1) |
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw[-{Latex[length=8pt,width=8pt]},line width=1.5pt] | ||
| + | ($(Ig1)+(0.30, | ||
| + | -- | ||
| + | | ||
| - | % Lower-left: LM -- E2 -- R -- BL | ||
| \draw | \draw | ||
| - | (LM) | + | ($(Ig1)+(0.62, |
| - | | + | |
| - | to[R, l_=$R$] (BL); | + | (0.04, |
| + | |||
| + | \draw[resistor] | ||
| + | (0.04,3.80) | ||
| + | -- | ||
| + | (1.14, | ||
| + | |||
| + | \draw | ||
| + | (1.14, | ||
| + | -- | ||
| + | (TR); | ||
| + | |||
| + | \node at (-0.91, | ||
| + | \node at (0.59,4.36) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer upper-right branch | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (UR1) at ($(TR)!0.25!(R)$); | ||
| + | \coordinate (UR2) at ($(TR)!0.67!(R)$); | ||
| + | |||
| + | \draw (TR) -- (UR1); | ||
| + | \draw[resistor] (UR1) -- (UR2); | ||
| + | \draw (UR2) -- (R); | ||
| + | |||
| + | \node at (3.75,1.88) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer lower-right branch | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (LR1) at ($(R)!0.26!(BR)$); | ||
| + | \coordinate (LR2) at ($(R)!0.67!(BR)$); | ||
| + | |||
| + | \draw (R) -- (LR1); | ||
| + | \draw[resistor] (LR1) -- (LR2); | ||
| + | \draw (LR2) -- (BR); | ||
| + | |||
| + | \node at (3.72, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Bottom branch: E3 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E3) at (-1.01, | ||
| - | % Bottom: BL -- E3 -- R -- BR | ||
| \draw | \draw | ||
| (BL) | (BL) | ||
| - | | + | |
| - | to[R, l_=$R$] (BR); | + | ($(E3)+(-0.62,0)$); |
| - | % Upper-right | ||
| \draw | \draw | ||
| - | (TR) to[R, l=$R$] (RM); | + | (E3) |
| + | circle[radius=0.62]; | ||
| - | % Lower-right | ||
| \draw | \draw | ||
| - | (RM) to[R, l=$R$] (BR); | + | ($(E3)+(0.62,0)$) |
| + | -- | ||
| + | | ||
| - | % ------------------------------------------------------------------ | + | \draw[resistor] |
| - | % Inner branches | + | (0.02,-3.72) |
| - | % ------------------------------------------------------------------ | + | |
| + | | ||
| - | % TL -- R -- C | ||
| \draw | \draw | ||
| - | (TL) to[R, l=$R$] (C); | + | (1.15,-3.72) |
| + | -- | ||
| + | (BR); | ||
| + | |||
| + | \node at (-1.23,-4.48) {$+$}; | ||
| + | \node at (-1.00, | ||
| + | \node at (0.59, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer lower-left branch: E2 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate | ||
| - | % LM -- Ig2 --> C | ||
| \draw | \draw | ||
| - | (LM) to[I, l=$I_{g2}$] | + | (L) |
| + | -- | ||
| + | ($(E2)!0.62cm!(L)$); | ||
| - | % BL -- R -- C | ||
| \draw | \draw | ||
| - | (BL) to[R, l=$R$] (C); | + | (E2) |
| + | circle[radius=0.62]; | ||
| + | |||
| + | \coordinate (E2out) | ||
| + | at ($(E2)!0.62cm!(BL)$); | ||
| + | |||
| + | \coordinate | ||
| + | at ($(E2out)!0.28!(BL)$); | ||
| + | |||
| + | \coordinate (LL2) | ||
| + | at ($(E2out)!0.70!(BL)$); | ||
| - | % C -- E1 -- TR | ||
| \draw | \draw | ||
| - | (C) to[V, l=$E_1$] (TR); | + | (E2out) |
| + | -- | ||
| + | (LL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (LL1) | ||
| + | -- | ||
| + | | ||
| - | % C -- Ig3 --> RM | ||
| \draw | \draw | ||
| - | (C) to[I, l=$I_{g3}$] (RM); | + | (LL2) |
| + | -- | ||
| + | (BL); | ||
| + | |||
| + | \node at (-4.76,-0.80) {$+$}; | ||
| + | \node at (-4.80, | ||
| + | \node at (-3.67, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Horizontal branch: Ig2 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate | ||
| - | % C -- E4 -- BR | ||
| \draw | \draw | ||
| - | (C) to[V, l=$E_4$] (BR); | + | (L) |
| + | -- | ||
| + | ($(Ig2)+(-0.62, | ||
| - | % ------------------------------------------------------------------ | + | \draw |
| - | % Junction dots | + | (Ig2) |
| - | % ------------------------------------------------------------------ | + | |
| - | \foreach \p in {TL,LM,BL,C,TR,RM,BR} | + | \draw[-{Latex[length=8pt,width=8pt]},line width=1.5pt] |
| - | | + | ($(Ig2)+(-0.30,0)$) |
| + | -- | ||
| + | ($(Ig2)+(0.31,0)$); | ||
| - | \end{circuitikz} | + | \draw |
| + | ($(Ig2)+(0.62, | ||
| + | -- | ||
| + | (C); | ||
| - | \end{document} | + | \node at (-2.06, |
| + | % ============================================================ | ||
| + | % Horizontal branch: Ig3 | ||
| + | % ============================================================ | ||
| + | \coordinate (Ig3) at (2.07,0); | ||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | ($(Ig3)+(-0.62, | ||
| - | \documentclass[border=5pt]{standalone} | + | \draw |
| - | \usepackage{tikz} | + | (Ig3) |
| - | \usetikzlibrary{arrows.meta, | + | circle[radius=0.62]; |
| - | \begin{document} | + | |
| - | \begin{tikzpicture}[node distance=18mm,> | + | |
| - | \node[draw,circle] (a) {$a$}; | + | |
| - | | + | |
| - | | + | |
| - | \draw[->, | + | |
| - | \draw[->, | + | |
| - | \draw[->, | + | |
| - | \end{tikzpicture} | + | |
| - | \end{document} | + | |
| + | \draw[-{Latex[length=8pt, | ||
| + | ($(Ig3)+(-0.30, | ||
| + | -- | ||
| + | ($(Ig3)+(0.31, | ||
| - | \documentclass[border=5pt]{standalone} | + | \draw |
| - | \usepackage{tikz} | + | ($(Ig3)+(0.62,0)$) |
| - | \begin{document} | + | -- |
| - | \begin{tikzpicture}[opacity=0.55, | + | (R); |
| - | \fill[red!70] | + | |
| - | \fill[green!70] | + | |
| - | \fill[blue!70] | + | |
| - | \node at ( 90:1.7) {$A$}; | + | |
| - | \node at (210:1.7) {$B$}; | + | |
| - | \node at (330:1.7) {$C$}; | + | |
| - | | + | |
| - | \end{tikzpicture} | + | |
| - | \end{document} | + | |
| + | \node at (2.08,1.10) {$I_{g3}$}; | ||
| + | % ============================================================ | ||
| + | % Internal upper-left resistor | ||
| + | % ============================================================ | ||
| - | < | + | \coordinate (IUL1) |
| - | $ 1 5.0E-6 10 53 5.0 50 | + | at ($(TL)!0.27!(C)$); |
| - | v 160 352 160 64 0 1 40.0 5.0 0.0 | + | |
| - | w 160 64 304 64 0 | + | \coordinate (IUL2) |
| - | w 304 64 304 128 0 | + | at ($(TL)!0.66!(C)$); |
| - | d 304 128 368 192 0 | + | |
| - | d 304 256 368 192 0 | + | \draw |
| - | d 240 192 304 128 0 | + | (TL) |
| - | d 240 192 304 256 0 | + | |
| - | w 304 256 304 352 0 | + | (IUL1); |
| - | w 304 352 160 352 0 | + | |
| - | w 240 192 240 288 0 | + | \draw[resistor] |
| - | w 368 192 416 192 0 | + | (IUL1) |
| - | w 240 288 416 288 0 | + | -- |
| - | r 416 192 416 288 0 100.0 | + | (IUL2); |
| - | x 463 248 479 248 0 20 load | + | |
| - | o 0 64 0 3 5.0 0.05 0 | + | \draw |
| - | o 12 64 0 3 5.0 0.05 1 | + | (IUL2) |
| - | </ | + | -- |
| + | (C); | ||
| + | |||
| + | \node at (-1.36,1.88) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal lower-left resistor | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (ILL1) | ||
| + | at ($(C)!0.31!(BL)$); | ||
| + | |||
| + | \coordinate (ILL2) | ||
| + | at ($(C)!0.68!(BL)$); | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | (ILL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (ILL1) | ||
| + | -- | ||
| + | (ILL2); | ||
| + | |||
| + | \draw | ||
| + | (ILL2) | ||
| + | -- | ||
| + | (BL); | ||
| + | |||
| + | \node at (-1.33,-1.88) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal upper-right source E1 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E1) at (1.20,2.10); | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | | ||
| + | |||
| + | \draw | ||
| + | (E1) | ||
| + | | ||
| + | |||
| + | \draw | ||
| + | | ||
| + | -- | ||
| + | (TR); | ||
| + | |||
| + | \node at (0.83,2.97) {$E_1$}; | ||
| + | \node[rotate=-31] at (0.87,3.31) {$+$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal lower-right source E4 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E4) at (1.24, | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | ($(E4)!0.62cm!(C)$); | ||
| + | |||
| + | \draw | ||
| + | (E4) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw | ||
| + | ($(E4)!0.62cm!(BR)$) | ||
| + | -- | ||
| + | (BR); | ||
| + | |||
| + | \node at (2.06,-1.67) {$E_4$}; | ||
| + | \node[rotate=-31] at (2.20, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Junction dots | ||
| + | % ============================================================ | ||
| + | |||
| + | \fill (L) circle[radius=4.2pt]; | ||
| + | \fill (TL) circle[radius=4.2pt]; | ||
| + | \fill (TR) circle[radius=4.2pt]; | ||
| + | \fill (R) circle[radius=4.2pt]; | ||
| + | \fill (BR) circle[radius=4.2pt]; | ||
| + | \fill (BL) circle[radius=4.2pt]; | ||
| + | \fill (C) circle[radius=4.2pt]; | ||
| + | |||
| + | \end{circuitikz} | ||
| + | |||
| + | \end{document} | ||
test.1786988362.md.gz · Last modified: by Ivan Janevski
