Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AliAbdelwanis committed Jan 27, 2025
2 parents ba2cb57 + 485c5d1 commit 4bd519e
Show file tree
Hide file tree
Showing 16 changed files with 1,467 additions and 67 deletions.
2 changes: 1 addition & 1 deletion course_template
25 changes: 25 additions & 0 deletions exercise/fig/ex07/Fig_ trigonometric_approach_triangle.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
\begin{solutionfigure}
\centering
\begin{tikzpicture}[scale=1.2]
% Basislinie (horizontale Achse)
\draw[black, thick] (0,0) -- (6,0) node[midway, below] {\scriptsize \SI{311.13}{\volt}};


% Oberer Vektor (mit Winkel)
\draw[black, thick] (0,0) -- (6.5,0.4) node[midway, above] {\scriptsize \SI{324.68}{\volt}};
\def\drawArc#1#2#3{
\draw[thick] (#1:0) -- (#1:#3) arc (#1:#2:#3) -- cycle;
}
% Beispiel: Kreissegment von 0 bis 60 Grad mit Radius 0.6
\drawArc{0}{3.5}{3}{color=blue!70!black};
\draw[blue,thick] (6.5,0.4) -- (6,0);

\node at (6.2,0.11) [left] {\tiny \SI{120}{\degree}};
\node at (6.7,0.11) [left] {\tiny \SI{60}{\degree}};
\node at (3.5,0.11) {\tiny \SI{3.913}{\degree}};


\end{tikzpicture}
\caption{Illustration for determining the angle using the sine theorem.}
\label{fig:Illustration for determining the angle using the sine theorem}
\end{solutionfigure}
53 changes: 39 additions & 14 deletions exercise/fig/ex07/Fig_ThreePhaseInverter_6StepMode.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
\begin{circuitikz}
% Add voltage U1p
\draw (0,0) coordinate (U1p) to [open, o-o, v = $U_1p\hspace{0.5cm}$, voltage = straight] ++(0,-2.5) coordinate (Gnd)
(Gnd) to [short,o-o] ++(1,0)
(Gnd) node[rground, rotate = 270 ](){} ++(0.4,0)
(Gnd) to [open, -o, v = $U_1m\hspace{0.5cm}$, voltage = straight] ++(0,-2.5) coordinate (U1m)
% Add current
(U1p) to [short, o-, i=$i_1(t)$] ++(2,0) coordinate (jT1c)
% Add T1
(jT1c) to [Tnpn, n=T1, invert, bodydiode] ++(0,-2) coordinate (jT1e)
% Add connection to u2a
(jT1e) to [short, *-] ++(1,0) to [crossing] ++(2,0) to [crossing] ++(2,0) to [short,-] ++(1,0) coordinate (ju2a)
(jT1e) to [short, *-] ++(1,0) to [crossing] ++(2,0) to [crossing] ++(2,0) to [short,-] ++(3,0) coordinate (ju2a)
% Add junction to T2
(jT1e) to [short] ++(0,-1) coordinate (jT2c)
% Add T2
Expand All @@ -25,7 +25,7 @@
% Add junction to ju2b
(jT3e) to [short] ++(0,-0.5) coordinate (jmu2b)
% Add connection to u1b
(jmu2b) to [short,*-] ++(1,0) to [crossing] ++(2,0) to [short,-] ++(1,0) coordinate (ju2b)
(jmu2b) to [short,*-] ++(1,0) to [crossing] ++(2,0) to [short,-] ++(3,0) coordinate (ju2b)
% Add junction to T4
(jmu2b) to [short] ++(0,-0.5) coordinate (jT4c)
% Add T4
Expand All @@ -44,26 +44,32 @@
(jT4e) to [short, -*] (jT2e)
% Add connection to U1m
(jT2e) to [short, -] (U1m)
% Add connection to u1c
(jT6c) to [short,*-] ++(2,0) coordinate (ju2c)
% Add 2. Ground symbol
(jmu2b) ++(4.7,-2.6) node[rground](){} coordinate (Gnd2)
% Add connection to u2c
(jT6c) to [short,*-] ++(4,0) coordinate (ju2c)
% Add connection to u2a inductor
(ju2a) to [short,-] ++(0,2) coordinate (ju2ax)
% Add u2a inductor
(ju2ax) to [L, l=$L$, name = L] ++(2,0) coordinate (ju2ae)
% Add u2ae
(ju2ae) to [sV=$u_\mathrm{1ae}$] ++(1.5,0) coordinate (ju2an)
(ju2ae) to [sV=$u_\mathrm{2ae}$] ++(1.5,0) coordinate (ju2an)
% Add u2b inductor
(ju2b) to [L, l=$L$, name = L] ++(2,0) coordinate (ju2be)
% Add u2be
(ju2be) to [sV=$u_\mathrm{1be}$] ++(1.5,0) coordinate (ju2bn)
(ju2be) to [sV=$u_\mathrm{2be}$] ++(1.5,0) coordinate (ju2bn)
% Add connection to u2c inductor
(ju2c) to [short,-] ++(0,-2) coordinate (ju2cx)
% Add u2a inductor
(ju2cx) to [L, l=$L$, name = L] ++(2,0) coordinate (ju2ce)
% Add u2ce
(ju2ce) to [sV=$u_\mathrm{1ce}$] ++(1.5,0) coordinate (ju2cn)
(ju2ce) to [sV=$u_\mathrm{2ce}$] ++(1.5,0) coordinate (ju2cn)
% Add connection of u2in
(ju2an) to [short,-*] (ju2bn) to [short,-] (ju2cn);
(ju2an) to [short,-*] (ju2bn) to [short,-] (ju2cn)
% Add connection point u2n
(ju2bn) to [short,-o] ++(0.6,0) coordinate (ju2n)
% Add 3. Ground symbol
(ju2n) ++(0,-2.6) node[rground](){} coordinate (Gnd3);


% Add component name of transistors
Expand All @@ -80,13 +86,32 @@
(i2b) node[anchor=north,color=black]{$i_\mathrm{2b}(t)$}
(jT6c) ++(1,0) node[currarrow](i2c){}
(i2c) node[anchor=north,color=black]{$i_\mathrm{2c}(t)$}
% Add voltage arrows u2an, u2bn and u2cn
(ju2ax) ++(0,-0.8) to [open,v^=$u_\mathrm{2a}(t)$,voltage = straight] ++(3.8,0)
% Add voltage arrow u1
(U1p) ++(0.3,0.5) to [open,v^=$$,voltage = straight] ++(0,-6)coordinate (Uges)
(Uges) ++ (0.3,3) node[anchor=north,color=black]{$U_\mathrm{1}$}
% Add voltage arrow u2an, u2bn and u2cn
(ju2ax) ++(0,-0.8) to [open,v^=$u_\mathrm{2a}(t)$, voltage = straight] ++(3.8,0)
(ju2b) ++(0,-0.8) to [open,v^=$u_\mathrm{2b}(t)$,voltage = straight] ++(3.8,0)
(ju2cx) ++(0,-0.8) to [open,v^=$u_\mathrm{2c}(t)$,voltage = straight] ++(3.8,0)
% Add voltage arrows u2ab and u2bc
(ju2ax) ++(0.2,0) to [open,v^=$u_\mathrm{2ab}(t)$,voltage = straight] ++(0,-2.5)
(ju2b) ++(0.2,0) to [open,v^=$u_\mathrm{2bc}(t)$,voltage = straight] ++(0,-2.5);
% Add voltage arrow u2ab
(ju2ax) ++(0.2,0) to [open,v^=$$,voltage = straight] ++(0,-2.5)
(ju2ax) ++ (0.9,-1) node[anchor=north,color=black]{$u_\mathrm{2ab}(t)$}
% Add voltage arrow u2bc
(ju2b) ++(0.2,0) to [open,v^=$$,voltage = straight] ++(0,-2.5)
(ju2b) ++ (0.9,-1) node[anchor=north,color=black]{$u_\mathrm{2bc}(t)$}
% Add voltage arrow ua0
(Gnd2) ++(-0.7,3.4) to [open,v^=$$,voltage = straight] ++(0,-3.6)
(Gnd2) ++ (-1.4,1.2) node[anchor=north,color=black,rotate = 90]{$u_\mathrm{2a0}(t)$}
% Add voltage arrow ub0
(Gnd2) ++(0,2.9) to [open,v^=$$,voltage = straight] ++(0,-3.01)
(Gnd2) ++ (-0.7,1.2) node[anchor=north,color=black,rotate = 90]{$u_\mathrm{2b0}(t)$}
% Add voltage arrow uc0
(Gnd2) ++(0.7,2.4) to [open,v^=$$,voltage = straight] ++(0,-2.42)
(Gnd2) ++ (0,1.2) node[anchor=north,color=black,rotate = 90]{$u_\mathrm{2b0}(t)$}
% Add voltage arrow un0
(Gnd3) ++(0,2.8) to [open,v^=$$,voltage = straight] ++(0,-3.01)
(Gnd3) ++ (-0.7,1.2) node[anchor=north,color=black,rotate = 90]{$u_\mathrm{2n0}(t)$};
\end{circuitikz}
Expand Down
4 changes: 2 additions & 2 deletions exercise/fig/ex07/Fig_Voltage_U_um_excerpt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
axis line style={->}, % Pfeilspitzen an den Achsen
xlabel={$\omega t$},
ylabel={$U_\mathrm{d}$},
xmin=0, xmax=2*pi,
xmin=0, xmax=13/6*pi,
ymin=-1, ymax=1,
xtick={0, pi/3, 2*pi/3, pi, 4*pi/3, 5*pi/3, 2*pi},
xticklabels={0, $\frac{1\pi}{3}$, $\frac{2\pi}{3}$,$\pi$, $\frac{4\pi}{3}$, $\frac{5\pi}{3}$, $2\pi$},
Expand All @@ -27,7 +27,7 @@
mark=none,
color=black,
] coordinates {
(0,1/3) (1/3*pi, 1/3) (1/3*pi, 2/3)( 2/3*pi, 2/3) (2/3*pi, 1/3) (pi, 1/3) (pi, -1/3) (4/3*pi, -1/3) (4/3*pi, -1/3) (4/3*pi, -2/3) (5/3*pi, -2/3) (5/3*pi, -1/3) (2*pi, -1/3) (2*pi, 1/3)
(0,1/3) (1/3*pi, 1/3) (1/3*pi, 2/3)( 2/3*pi, 2/3) (2/3*pi, 1/3) (pi, 1/3) (pi, -1/3) (4/3*pi, -1/3) (4/3*pi, -1/3) (4/3*pi, -2/3) (5/3*pi, -2/3) (5/3*pi, -1/3) (2*pi, -1/3) (2*pi, 1/3) (13/6*pi, 1/3)
};
\end{axis}
\end{tikzpicture}
Expand Down
37 changes: 26 additions & 11 deletions exercise/fig/ex07/Fig_graphic_solutions_cos_terms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% SwitchOnBehaviorAndSwitchOffBehaviorOfUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{figure}[htb]
\begin{solutionfigure}[htb]
\centering
\begin{minipage}[t]{0.45\textwidth}
\centering
Expand Down Expand Up @@ -55,28 +55,43 @@
\begin{tikzpicture}
\draw[->] (-2,0) -- (2,0) node[right] {};
\draw[->] (0,-2) -- (0,2) node[above] {};
\node at (-1.5,1.5) {$\cos\left(k \frac{\pi}{3}\right)$};
\node at (-2,0) [left] {$2,6,\ldots$};
\node at (2,0) [right] {$0,4,\ldots$};
\node at (0,2) [above] {$1,5,9,13,\ldots$};
\node at (0,-2) [below] {$3,7,11,15,\ldots$};

\node at (-2.5,1.5) {$\cos\left(k \frac{\pi}{3}\right)$};
\node at (-1,0.2) [left] {$3,9,15,21\ldots$};
\node at (1,0.2) [right] {$0,6\ldots$};
\node at (2,1) [above] {$1,7,13,19\ldots$};
\node at (-0.8,1.6) [below] {$2,8\ldots$};
\node at (-0.8,-1) [below] {$4,10\ldots$};
\node at (2,-1) [below] {$5,11,17,23\ldots$};
\node at (-0.75,-0.3) [left] {-1};
\node at (1,-0.3) [left] {0.5};
% Kreuz bei jedem markierten Punkt
\foreach \x/\y in {-1.5/0, 1.5/0, 0/1.5, 0/-1.5} {
\foreach \x/\y in {-1/0, 1/0, 0.5/1, -0.5/-1, 0.5/-1, -0.5/1} {
\draw[thick]
(\x,\y) +(-0.1,0.1) -- +(0.1,-0.1) % Diagonale des Kreuzes
+(-0.1,-0.1) -- +(0.1,0.1); % Andere Diagonale des Kreuzes
}
\draw[thick, color=blue!70!black]
(-0.5,1) -- (0.5,-1) -- cycle;
\draw[thick, color=blue!70!black]
(0.5,1) -- (-0.5,-1) -- cycle;
\node[shift={(0.1,0)}, anchor=west] at ({0.5*cos(60)}, {0.5*sin(60)}) [below] {\tiny $60^\circ$};
\def\drawArc#1#2#3{
\draw[thick] (#1:0) -- (#1:#3) arc (#1:#2:#3) -- cycle;
}
% Beispiel: Kreissegment von 0 bis 60 Grad mit Radius 0.6
\drawArc{0}{63}{0.6}{thick, color=blue!70!black};

\end{tikzpicture}
\hspace{1cm} % Abstand zwischen den beiden Diagrammen
\hspace{2.3cm} % Abstand zwischen den beiden Diagrammen
\begin{tikzpicture}
% Koordinatensystem zeichnen
\draw[->] (-2,0) -- (2,0) node[right] {};
\draw[->] (0,-2) -- (0,2) node[above] {};
\node at (-1.5,1.5) {$\cos\left(k \frac{\pi}{3}\right)+1$};

% Beschriftungen an der x-Achse
\foreach \x in {0, 1, 1.5} {
\node at (-0.00009,-0.2) [left] {0};
\foreach \x in { 1, 1.5} {
\node at (\x, 0) [below] {\x};
}

Expand All @@ -97,4 +112,4 @@
\end{tikzpicture}
\caption{Graphical solution of the cos terms.}
\label{fig:Graphical solution of the cos terms}
\end{figure}
\end{solutionfigure}
27 changes: 27 additions & 0 deletions exercise/fig/ex07/Fig_standardization_to_fudamental_freq.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
\begin{solutionfigure}[htb]
\centering
\begin{tikzpicture}
% Achsen zeichnen
\draw[->] (0,0) -- (14,0) node[right] {$k$}; % x-Achse
\draw[->] (0,0) -- (0,5) node[above] {$\frac{\hat{u}_\mathrm{UM,k}}{\hat{u}_\mathrm{UM,1}}$}; % y-Achse

% Ticks und Beschriftungen auf der x-Achse
\foreach \x in {1, 5, 7, 11, 13} {
\draw (\x,0.05) -- (\x,-0.05) node[below] {\x};
}
\foreach \x in {2, 3, 4, 6, 8, 9, 10, 12} {
\draw (\x,0.02) -- (\x,-0.02); % kleinere Ticks
}

% Ticks und Beschriftung auf der y-Achse
\draw (-0.05,4.5) -- (0.05,4.5) node[left] {1};

% Balken zeichnen
\foreach \x/\y in {1/4.5, 5/0.9, 7/0.6, 11/0.5, 13/0.4} {
\draw[thick] (\x,0) -- (\x,\y); % Balken
\draw[thick] (\x-0.1,\y) -- (\x+0.1,\y); % Querstrich oben
}
\end{tikzpicture}
\caption{Normalization to the amplitude of the fundamental oscillation.}
\label{fig:Normalization to the amplitude of the fundamental oscillation}
\end{solutionfigure}
Loading

0 comments on commit 4bd519e

Please sign in to comment.