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:43] – Ivan Janevski | test [August 17, 2026 at 17:49] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| \usepackage{amsmath} | \usepackage{amsmath} | ||
| - | \usepackage[americanresistors]{circuitikz} | + | \usepackage{circuitikz} |
| + | \usetikzlibrary{ | ||
| + | calc, | ||
| + | arrows.meta, | ||
| + | decorations.pathmorphing | ||
| + | } | ||
| \begin{document} | \begin{document} | ||
| \begin{circuitikz}[ | \begin{circuitikz}[ | ||
| - | line width=1.05pt, | + | line width=1.35pt, |
| - | | + | |
| + | line join=round, | ||
| + | > | ||
| + | | ||
| ] | ] | ||
| % ============================================================ | % ============================================================ | ||
| - | % Node coordinates | + | % Resistor style |
| % ============================================================ | % ============================================================ | ||
| - | \coordinate (C) at (0,0); | + | \tikzset{ |
| + | resistor/ | ||
| + | decorate, | ||
| + | decoration={ | ||
| + | zigzag, | ||
| + | segment length=8.0pt, | ||
| + | amplitude=5.2pt | ||
| + | } | ||
| + | } | ||
| + | } | ||
| - | \coordinate (L) at (-3.45,0); | + | % ============================================================ |
| - | \coordinate (TL) at (-1.65,2.85); | + | % Main geometry |
| - | \coordinate (TR) at ( 1.65,2.85); | + | % ============================================================ |
| - | \coordinate (R) at ( 3.35,0); | + | |
| - | \coordinate (BR) at ( 1.68,-2.80); | + | \coordinate (C) at ( 0.00, 0.00); |
| - | \coordinate (BL) at (-1.78,-2.80); | + | |
| + | \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 hexagon | + | % Outer upper-left branch |
| % ============================================================ | % ============================================================ | ||
| - | % Upper-left resistor | + | \coordinate (UL1) at ($(L)!0.25!(TL)$); |
| - | \draw | + | \coordinate (UL2) at ($(L)!0.67!(TL)$); |
| - | | + | |
| - | to[R, l_={$R$}, label distance=3pt] | + | |
| - | (TL); | + | |
| + | \draw (L) -- (UL1); | ||
| + | \draw[resistor] (UL1) -- (UL2); | ||
| + | \draw (UL2) -- (TL); | ||
| + | |||
| + | \node at (-3.79, | ||
| + | |||
| + | % ============================================================ | ||
| % Top branch: Ig1 + R | % Top branch: Ig1 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (Ig1) at (-0.91, | ||
| + | |||
| \draw | \draw | ||
| - | (TR) | + | (TL) |
| - | | + | |
| - | (0.90,2.85) | + | ($(Ig1)+(-0.62,0)$); |
| - | | + | |
| \draw | \draw | ||
| - | (-0.35,2.85) | + | (Ig1) |
| - | | + | |
| - | % Ig1 source circle | + | \draw[-{Latex[length=8pt, |
| - | \draw (0,2.85) circle (0.48); | + | |
| - | \draw[-latex, line width=1.05pt] | + | |
| - | (0.22,2.85) -- (-0.24,2.85); | + | ($(Ig1)+(-0.31,0)$); |
| - | \node at (0.12,3.63) {$I_{g1}$}; | ||
| - | |||
| - | % Upper-right resistor | ||
| \draw | \draw | ||
| - | (TR) | + | ($(Ig1)+(0.62, |
| - | | + | |
| - | (R); | + | (0.04,3.80); |
| + | |||
| + | \draw[resistor] | ||
| + | (0.04, | ||
| + | -- | ||
| + | (1.14,3.80); | ||
| - | % Lower-right resistor | ||
| \draw | \draw | ||
| - | (R) | + | (1.14,3.80) |
| - | | + | |
| - | (BR); | + | (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 | % Bottom branch: E3 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E3) at (-1.01, | ||
| + | |||
| \draw | \draw | ||
| (BL) | (BL) | ||
| - | -- (-0.78,-2.80); | + | -- |
| + | ($(E3)+(-0.62,0)$); | ||
| \draw | \draw | ||
| - | (0.02,-2.80) | + | |
| - | -- (0.83,-2.80) | + | circle[radius=0.62]; |
| - | | + | |
| + | \draw | ||
| + | ($(E3)+(0.62, | ||
| + | -- | ||
| + | | ||
| + | |||
| + | \draw[resistor] | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | \draw | ||
| + | | ||
| + | -- | ||
| (BR); | (BR); | ||
| - | % E3 voltage source | + | \node at (-1.23, |
| - | \draw (-0.38,-2.80) circle | + | \node at (-1.00,-5.08) {$E_3$}; |
| + | \node at (0.59,-4.36) {$R$}; | ||
| - | \node at (-0.86,-3.26) {$+$}; | + | % ============================================================ |
| - | \node at (-0.38, | + | % Outer lower-left branch: E2 + R |
| + | % ============================================================ | ||
| - | % Lower-left branch: E2 + R | + | \coordinate (E2) at (-3.70,-1.08); |
| - | \coordinate (E2a) at (-3.06, | + | |
| - | \coordinate (E2b) at (-2.66,-1.30); | + | |
| \draw | \draw | ||
| - | (L) -- (E2a); | + | (L) |
| + | | ||
| + | | ||
| \draw | \draw | ||
| - | (E2b) | + | (E2) |
| - | | + | |
| - | (BL); | + | |
| - | % E2 voltage source | + | \coordinate (E2out) |
| - | \coordinate (E2c) at (-2.86,-0.98); | + | |
| - | \draw (E2c) circle (0.49); | + | |
| - | % Mask line through source, then redraw terminal segments | + | \coordinate (LL1) |
| - | \fill[white] | + | at ($(E2out)!0.28!(BL)$); |
| - | | + | |
| - | \draw (E2c) circle | + | \coordinate (LL2) |
| - | \draw (L) -- ($(E2c)!0.49cm!(L)$); | + | |
| - | \draw (BL) -- ($(E2c)!0.49cm!(BL)$); | + | |
| + | \draw | ||
| + | | ||
| + | -- | ||
| + | | ||
| + | |||
| + | \draw[resistor] | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | \draw | ||
| + | | ||
| + | | ||
| + | | ||
| - | \node at (-3.55,-0.60) {$+$}; | + | \node at (-4.76,-0.80) {$+$}; |
| - | \node at (-3.64,-1.54) {$E_2$}; | + | \node at (-4.80,-1.84) {$E_2$}; |
| + | \node at (-3.67, | ||
| % ============================================================ | % ============================================================ | ||
| - | % Horizontal | + | % Horizontal branch: Ig2 |
| % ============================================================ | % ============================================================ | ||
| - | % Left wire | + | \coordinate |
| - | \draw (L) -- (-2.07,0); | + | |
| - | % Ig2 | + | \draw |
| - | \draw (-1.60,0) circle (0.48); | + | |
| - | \draw[-latex, line width=1.05pt] | + | -- |
| - | (-1.84,0) -- (-1.37,0); | + | ($(Ig2)+(-0.62,0)$); |
| - | \draw (-2.07,0) -- (-2.08+0.01,0); | + | |
| - | \draw (-1.12,0) -- (C); | + | |
| - | \node at (-1.62,0.84) {$I_{g2}$}; | + | \draw |
| + | | ||
| + | circle[radius=0.62]; | ||
| - | % Right wire and Ig3 | + | \draw[-{Latex[length=8pt, |
| - | \draw (C) -- (1.12,0); | + | ($(Ig2)+(-0.30,0)$) |
| + | | ||
| + | | ||
| - | \draw (1.60,0) circle | + | \draw |
| - | \draw[-latex, line width=1.05pt] | + | |
| - | (1.36,0) -- (1.83,0); | + | -- |
| + | (C); | ||
| - | \draw (2.08,0) -- (R); | + | \node at (-2.06,1.10) {$I_{g2}$}; |
| + | |||
| + | % ============================================================ | ||
| + | % Horizontal branch: Ig3 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (Ig3) at (2.07,0); | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | ($(Ig3)+(-0.62, | ||
| + | |||
| + | \draw | ||
| + | (Ig3) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw[-{Latex[length=8pt, | ||
| + | ($(Ig3)+(-0.30, | ||
| + | -- | ||
| + | ($(Ig3)+(0.31, | ||
| + | |||
| + | \draw | ||
| + | ($(Ig3)+(0.62, | ||
| + | | ||
| + | | ||
| - | \node at (1.61,0.84) {$I_{g3}$}; | + | \node at (2.08,1.10) {$I_{g3}$}; |
| % ============================================================ | % ============================================================ | ||
| - | % Internal upper-left | + | % Internal upper-left |
| % ============================================================ | % ============================================================ | ||
| + | |||
| + | \coordinate (IUL1) | ||
| + | at ($(TL)!0.27!(C)$); | ||
| + | |||
| + | \coordinate (IUL2) | ||
| + | at ($(TL)!0.66!(C)$); | ||
| \draw | \draw | ||
| (TL) | (TL) | ||
| - | -- (-1.30,2.25) | + | -- |
| - | to[R, l_={$R$}] | + | |
| + | |||
| + | \draw[resistor] | ||
| + | (IUL1) | ||
| + | -- | ||
| + | (IUL2); | ||
| + | |||
| + | \draw | ||
| + | (IUL2) | ||
| + | -- | ||
| (C); | (C); | ||
| + | |||
| + | \node at (-1.36, | ||
| % ============================================================ | % ============================================================ | ||
| - | % Internal lower-left | + | % Internal lower-left |
| % ============================================================ | % ============================================================ | ||
| + | |||
| + | \coordinate (ILL1) | ||
| + | at ($(C)!0.31!(BL)$); | ||
| + | |||
| + | \coordinate (ILL2) | ||
| + | at ($(C)!0.68!(BL)$); | ||
| \draw | \draw | ||
| (C) | (C) | ||
| - | | + | |
| + | (ILL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (ILL1) | ||
| + | -- | ||
| + | (ILL2); | ||
| + | |||
| + | \draw | ||
| + | (ILL2) | ||
| + | -- | ||
| (BL); | (BL); | ||
| + | |||
| + | \node at (-1.33, | ||
| % ============================================================ | % ============================================================ | ||
| - | % Internal upper-right | + | % Internal upper-right |
| % ============================================================ | % ============================================================ | ||
| - | \coordinate (E1c) at (0.95,1.63); | + | \coordinate (E1) at (1.20,2.10); |
| - | % line from center to source | ||
| \draw | \draw | ||
| - | (C) -- ($(E1c)!0.49cm!(C)$); | + | (C) |
| + | | ||
| + | | ||
| - | % line from source to upper-right node | ||
| \draw | \draw | ||
| - | ($(E1c)!0.49cm!(TR)$) -- (TR); | + | (E1) |
| + | circle[radius=0.62]; | ||
| - | % source circle | + | \draw |
| - | \draw (E1c) circle | + | |
| + | -- | ||
| + | (TR); | ||
| - | \node at (0.71,2.19) {$E_1$}; | + | \node at (0.83,2.97) {$E_1$}; |
| - | \node[rotate=-28] at (0.70,2.42) {$+$}; | + | \node[rotate=-31] at (0.87,3.31) {$+$}; |
| % ============================================================ | % ============================================================ | ||
| - | % Internal lower-right | + | % Internal lower-right |
| % ============================================================ | % ============================================================ | ||
| - | \coordinate (E4c) at (0.99,-1.55); | + | \coordinate (E4) at (1.24,-2.07); |
| \draw | \draw | ||
| - | (C) -- ($(E4c)!0.49cm!(C)$); | + | (C) |
| + | | ||
| + | | ||
| \draw | \draw | ||
| - | ($(E4c)!0.49cm!(BR)$) -- (BR); | + | (E4) |
| + | circle[radius=0.62]; | ||
| - | \draw (E4c) circle | + | \draw |
| + | | ||
| + | -- | ||
| + | (BR); | ||
| - | \node at (1.63,-1.32) {$E_4$}; | + | \node at (2.06,-1.67) {$E_4$}; |
| - | \node[rotate=-30] at (1.70,-1.72) {$+$}; | + | \node[rotate=-31] at (2.20,-2.14) {$+$}; |
| % ============================================================ | % ============================================================ | ||
| Line 194: | Line 359: | ||
| % ============================================================ | % ============================================================ | ||
| - | \fill (L) circle | + | \fill (L) circle[radius=4.2pt]; |
| - | \fill (TL) circle | + | \fill (TL) circle[radius=4.2pt]; |
| - | \fill (TR) circle | + | \fill (TR) circle[radius=4.2pt]; |
| - | \fill (R) circle | + | \fill (R) circle[radius=4.2pt]; |
| - | \fill (BR) circle | + | \fill (BR) circle[radius=4.2pt]; |
| - | \fill (BL) circle | + | \fill (BL) circle[radius=4.2pt]; |
| - | \fill (C) circle | + | \fill (C) circle[radius=4.2pt]; |
| \end{circuitikz} | \end{circuitikz} | ||
| \end{document} | \end{document} | ||
test.1786988611.md.gz · Last modified: by Ivan Janevski
