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:41] – Ivan Janevski | test [August 17, 2026 at 17:49] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| \documentclass[tikz, | \documentclass[tikz, | ||
| - | \usepackage[american]{circuitikz} | + | \usepackage{amsmath} |
| - | \usetikzlibrary{calc, | + | \usepackage{circuitikz} |
| + | \usetikzlibrary{ | ||
| + | | ||
| + | | ||
| + | decorations.pathmorphing | ||
| + | } | ||
| \begin{document} | \begin{document} | ||
| \begin{circuitikz}[ | \begin{circuitikz}[ | ||
| - | line width=0.8pt, | + | line width=1.35pt, |
| line cap=round, | line cap=round, | ||
| line join=round, | line join=round, | ||
| - | >=Latex | + | >=Latex, |
| + | font=\Large | ||
| ] | ] | ||
| - | % ================================================================ | + | % ============================================================ |
| - | % Main nodes | + | % Resistor style |
| - | % ================================================================ | + | % ============================================================ |
| + | |||
| + | \tikzset{ | ||
| + | resistor/ | ||
| + | decorate, | ||
| + | decoration={ | ||
| + | zigzag, | ||
| + | segment length=8.0pt, | ||
| + | amplitude=5.2pt | ||
| + | } | ||
| + | } | ||
| + | } | ||
| - | \coordinate (UL) at (-1.20, 1.95); | + | % ============================================================ |
| - | \coordinate (UR) at ( 1.20, 1.95); | + | % Main geometry |
| + | % ============================================================ | ||
| - | \coordinate (L) at (-2.35, 0.00); | ||
| \coordinate (C) at ( 0.00, 0.00); | \coordinate (C) at ( 0.00, 0.00); | ||
| - | \coordinate (R) at ( 2.35, 0.00); | ||
| - | \coordinate (LL) at (-1.28,-1.95); | + | \coordinate (L) at (-4.40, 0.00); |
| - | \coordinate (LR) at ( 1.28,-1.95); | + | \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, | ||
| + | \coordinate (BL) at (-2.28,-3.72); | ||
| + | % ============================================================ | ||
| + | % Outer upper-left branch | ||
| + | % ============================================================ | ||
| - | % ================================================================ | + | \coordinate (UL1) at ($(L)!0.25!(TL)$); |
| - | % Outer branches | + | \coordinate (UL2) at ($(L)!0.67!(TL)$); |
| - | % ================================================================ | + | |
| - | % ---------------------------------------------------------------- | + | \draw (L) -- (UL1); |
| - | % Upper-left outer branch: UL -- R -- L | + | \draw[resistor] (UL1) -- (UL2); |
| - | % ---------------------------------------------------------------- | + | \draw (UL2) -- (TL); |
| - | \draw | + | \node at (-3.79,1.88) {$R$}; |
| - | | + | |
| - | | + | |
| - | to[R] | + | |
| - | ($(UL)!0.70!(L)$) | + | |
| - | -- (L); | + | |
| - | \node[left] at ($(UL)!0.48!(L)+(-0.10,0)$) {$R$}; | + | % ============================================================ |
| + | % Top branch: Ig1 + R | ||
| + | % ============================================================ | ||
| + | \coordinate (Ig1) at (-0.91, | ||
| - | % ---------------------------------------------------------------- | + | \draw |
| - | % Top branch: UL -- Ig1 -- R -- UR | + | (TL) |
| - | % ---------------------------------------------------------------- | + | |
| + | ($(Ig1)+(-0.62,0)$); | ||
| \draw | \draw | ||
| - | (UL) | + | (Ig1) |
| - | -- ($(UL)!0.10!(UR)$); | + | |
| + | |||
| + | \draw[-{Latex[length=8pt, | ||
| + | | ||
| + | -- | ||
| + | | ||
| \draw | \draw | ||
| - | ($(UL)!0.10!(UR)$) | + | ($(Ig1)+(0.62,0)$) |
| - | | + | |
| - | ($(UL)!0.43!(UR)$); | + | (0.04,3.80); |
| + | |||
| + | \draw[resistor] | ||
| + | (0.04,3.80) | ||
| + | -- | ||
| + | (1.14,3.80); | ||
| \draw | \draw | ||
| - | ($(UL)!0.43!(UR)$) | + | (1.14,3.80) |
| - | -- ($(UL)!0.54!(UR)$) | + | -- |
| - | | + | (TR); |
| - | ($(UL)!0.85!(UR)$) | + | |
| - | -- (UR); | + | |
| - | \node[above] | + | \node at (-0.91,4.77) {$I_{g1}$}; |
| - | \node[above] | + | \node at (0.59,4.36) {$R$}; |
| + | % ============================================================ | ||
| + | % Outer upper-right branch | ||
| + | % ============================================================ | ||
| - | % ---------------------------------------------------------------- | + | \coordinate (UR1) at ($(TR)!0.25!(R)$); |
| - | % Upper-right outer branch: UR -- R -- R | + | \coordinate (UR2) at ($(TR)!0.67!(R)$); |
| - | % ---------------------------------------------------------------- | + | |
| - | \draw | + | \draw (TR) -- (UR1); |
| - | | + | \draw[resistor] (UR1) -- (UR2); |
| - | | + | \draw (UR2) -- (R); |
| - | to[R] | + | |
| - | | + | |
| - | | + | |
| - | \node[right] | + | \node at (3.75,1.88) {$R$}; |
| + | % ============================================================ | ||
| + | % Outer lower-right branch | ||
| + | % ============================================================ | ||
| - | % ---------------------------------------------------------------- | + | \coordinate (LR1) at ($(R)!0.26!(BR)$); |
| - | % Lower-right outer branch: R -- R -- LR | + | \coordinate (LR2) at ($(R)!0.67!(BR)$); |
| - | % ---------------------------------------------------------------- | + | |
| + | \draw (R) -- (LR1); | ||
| + | \draw[resistor] (LR1) -- (LR2); | ||
| + | \draw (LR2) -- (BR); | ||
| + | |||
| + | \node at (3.72,-1.88) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Bottom | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E3) at (-1.01,-3.72); | ||
| \draw | \draw | ||
| - | (R) | + | (BL) |
| - | -- ($(R)!0.24!(LR)$) | + | -- |
| - | to[R] | + | ($(E3)+(-0.62,0)$); |
| - | ($(R)!0.70!(LR)$) | + | |
| - | -- (LR); | + | |
| - | \node[right] at ($(R)!0.49!(LR)+(0.08, | + | \draw |
| + | | ||
| + | circle[radius=0.62]; | ||
| + | \draw | ||
| + | ($(E3)+(0.62, | ||
| + | -- | ||
| + | (0.02, | ||
| - | % ---------------------------------------------------------------- | + | \draw[resistor] |
| - | % Bottom branch: LL -- E3 -- R -- LR | + | (0.02,-3.72) |
| - | % ---------------------------------------------------------------- | + | -- |
| + | | ||
| \draw | \draw | ||
| - | (LL) | + | (1.15,-3.72) |
| - | -- ($(LL)!0.12!(LR)$) | + | -- |
| - | | + | (BR); |
| - | % E3 source circle | + | \node at (-1.23,-4.48) {$+$}; |
| - | \coordinate | + | \node at (-1.00, |
| + | \node at (0.59,-4.36) {$R$}; | ||
| - | \fill[white] (E3c) circle[radius=0.30]; | + | % ============================================================ |
| - | \draw (E3c) circle[radius=0.30]; | + | % Outer lower-left branch: E2 + R |
| + | % ============================================================ | ||
| + | |||
| + | \coordinate | ||
| - | % reconnect precisely to source circle | ||
| \draw | \draw | ||
| - | (LL) -- ($(E3c)+(-0.30,0)$); | + | (L) |
| + | | ||
| + | | ||
| \draw | \draw | ||
| - | ($(E3c)+(0.30, | + | (E2) |
| - | | + | |
| - | to[R] | + | |
| - | ($(LL)!0.82!(LR)$) | + | |
| - | -- (LR); | + | |
| - | \node[below] at ($(E3c)+(0, | + | \coordinate |
| - | \node[below] | + | at ($(E2)!0.62cm!(BL)$); |
| - | \node[below] | + | \coordinate (LL1) |
| + | | ||
| + | \coordinate (LL2) | ||
| + | at ($(E2out)!0.70!(BL)$); | ||
| - | % ---------------------------------------------------------------- | + | \draw |
| - | % Lower-left outer branch: L -- E2 -- R -- LL | + | (E2out) |
| - | % ---------------------------------------------------------------- | + | |
| + | | ||
| + | |||
| + | \draw[resistor] | ||
| + | (LL1) | ||
| + | | ||
| + | | ||
| \draw | \draw | ||
| - | (L) -- (LL); | + | (LL2) |
| + | | ||
| + | | ||
| - | \coordinate | + | \node at (-4.76,-0.80) {$+$}; |
| + | \node at (-4.80, | ||
| + | \node at (-3.67,-2.91) {$R$}; | ||
| - | \fill[white] (E2c) circle[radius=0.30]; | + | % ============================================================ |
| - | \draw (E2c) circle[radius=0.30]; | + | % Horizontal branch: Ig2 |
| + | % ============================================================ | ||
| - | % resistor on same diagonal | + | \coordinate (Ig2) at (-2.05,0); |
| - | \draw[ | + | |
| - | white, | + | \draw |
| - | line width=3pt | + | (L) |
| - | ] | + | |
| - | | + | |
| -- | -- | ||
| - | ($(L)!0.92!(LL)$); | + | ($(Ig2)+(-0.62,0)$); |
| \draw | \draw | ||
| - | ($(L)!0.51!(LL)$) | + | (Ig2) |
| - | | + | |
| - | ($(L)!0.88!(LL)$); | + | |
| - | \node[left] at ($(E2c)+(-0.20,-0.05)$) {$E_2$}; | + | \draw[-{Latex[length=8pt, |
| - | \node[left] at ($(E2c)+(-0.38,0.26)$) {$+$}; | + | |
| + | -- | ||
| + | | ||
| - | \node[left] at ($(L)!0.70!(LL)+(-0.10,0)$) {$R$}; | + | \draw |
| + | | ||
| + | -- | ||
| + | (C); | ||
| + | \node at (-2.06, | ||
| - | % ================================================================ | + | % ============================================================ |
| - | % Inner branches | + | % Horizontal branch: Ig3 |
| - | % ================================================================ | + | % ============================================================ |
| - | % ---------------------------------------------------------------- | + | \coordinate (Ig3) at (2.07,0); |
| - | % UL -- R -- C | + | |
| - | % ---------------------------------------------------------------- | + | |
| \draw | \draw | ||
| - | (UL) | + | (C) |
| - | -- ($(UL)!0.18!(C)$) | + | -- |
| - | to[R] | + | ($(Ig3)+(-0.62,0)$); |
| - | ($(UL)!0.64!(C)$) | + | |
| - | -- (C); | + | |
| - | \node[right] at ($(UL)!0.42!(C)+(0.06, | + | \draw |
| + | | ||
| + | circle[radius=0.62]; | ||
| - | + | \draw[-{Latex[length=8pt, | |
| - | % ---------------------------------------------------------------- | + | |
| - | % L -- Ig2 -- C | + | -- |
| - | % ---------------------------------------------------------------- | + | |
| \draw | \draw | ||
| - | | + | ($(Ig3)+(0.62,0)$) |
| - | -- ($(L)!0.20!(C)$) | + | -- |
| - | to[I] | + | |
| - | ($(L)!0.58!(C)$) | + | |
| - | -- (C); | + | |
| - | \node[above] | + | \node at (2.08,1.10) {$I_{g3}$}; |
| + | % ============================================================ | ||
| + | % Internal upper-left resistor | ||
| + | % ============================================================ | ||
| - | % ---------------------------------------------------------------- | + | \coordinate (IUL1) |
| - | % LL -- R -- C | + | at ($(TL)!0.27!(C)$); |
| - | % ---------------------------------------------------------------- | + | |
| + | \coordinate (IUL2) | ||
| + | at ($(TL)!0.66!(C)$); | ||
| \draw | \draw | ||
| - | (LL) | + | (TL) |
| - | -- ($(LL)!0.19!(C)$) | + | -- |
| - | | + | (IUL1); |
| - | ($(LL)!0.64!(C)$) | + | |
| - | -- (C); | + | |
| - | \node[right] at ($(LL)!0.41!(C)+(0.06, | + | \draw[resistor] |
| + | | ||
| + | -- | ||
| + | | ||
| + | \draw | ||
| + | (IUL2) | ||
| + | -- | ||
| + | (C); | ||
| - | % ---------------------------------------------------------------- | + | \node at (-1.36,1.88) {$R$}; |
| - | % C -- E1 -- UR | + | |
| - | % ---------------------------------------------------------------- | + | |
| - | \draw (C) -- (UR); | + | % ============================================================ |
| + | % Internal lower-left resistor | ||
| + | % ============================================================ | ||
| - | \coordinate (E1c) at ($(C)!0.56!(UR)$); | + | \coordinate (ILL1) |
| + | | ||
| - | \fill[white] | + | \coordinate |
| - | \draw (E1c) circle[radius=0.30]; | + | at ($(C)!0.68!(BL)$); |
| + | |||
| + | \draw | ||
| + | | ||
| + | -- | ||
| + | (ILL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (ILL1) | ||
| + | -- | ||
| + | (ILL2); | ||
| + | |||
| + | \draw | ||
| + | (ILL2) | ||
| + | -- | ||
| + | (BL); | ||
| - | \node[left] | + | \node at (-1.33,-1.88) {$R$}; |
| - | \node[right] at ($(E1c)+(0.25, | + | |
| + | % ============================================================ | ||
| + | % Internal upper-right source E1 | ||
| + | % ============================================================ | ||
| - | % ---------------------------------------------------------------- | + | \coordinate (E1) at (1.20, |
| - | % C -- Ig3 -- R | + | |
| - | % ---------------------------------------------------------------- | + | |
| \draw | \draw | ||
| (C) | (C) | ||
| - | -- ($(C)!0.21!(R)$) | + | -- |
| - | to[I] | + | ($(E1)!0.62cm!(C)$); |
| - | ($(C)!0.59!(R)$) | + | |
| - | -- (R); | + | |
| - | \node[above] at ($(C)!0.40!(R)+(0, | + | \draw |
| + | | ||
| + | circle[radius=0.62]; | ||
| + | \draw | ||
| + | ($(E1)!0.62cm!(TR)$) | ||
| + | -- | ||
| + | (TR); | ||
| - | % ---------------------------------------------------------------- | + | \node at (0.83,2.97) {$E_1$}; |
| - | % C -- E4 -- LR | + | \node[rotate=-31] at (0.87,3.31) {$+$}; |
| - | % ---------------------------------------------------------------- | + | |
| - | \draw (C) -- (LR); | + | % ============================================================ |
| + | % Internal lower-right source E4 | ||
| + | % ============================================================ | ||
| - | \coordinate (E4c) at ($(C)!0.58!(LR)$); | + | \coordinate (E4) at (1.24,-2.07); |
| - | \fill[white] | + | \draw |
| - | \draw (E4c) circle[radius=0.30]; | + | |
| + | -- | ||
| + | | ||
| - | \node[right] at ($(E4c)+(0.18, | + | \draw |
| - | \node[right] at ($(E4c)+(0.29,-0.27)$) {$+$}; | + | |
| + | | ||
| + | \draw | ||
| + | ($(E4)!0.62cm!(BR)$) | ||
| + | -- | ||
| + | (BR); | ||
| - | % ================================================================ | + | \node at (2.06, |
| + | \node[rotate=-31] at (2.20, | ||
| + | |||
| + | % ============================================================ | ||
| % Junction dots | % Junction dots | ||
| - | % ================================================================ | + | % ============================================================ |
| - | \foreach \p in {UL,UR,L,C,R,LL,LR} | + | \fill (L) circle[radius=4.2pt]; |
| - | { | + | \fill (TL) circle[radius=4.2pt]; |
| - | \fill (\p) circle[radius=2.5pt]; | + | \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{circuitikz} | ||
| \end{document} | \end{document} | ||
test.1786988504.md.gz · Last modified: by Ivan Janevski
