-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/IAS-Uni-Siegen/PE_course
- Loading branch information
Showing
6 changed files
with
193 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,141 +1,35 @@ | ||
\begin{figure}[htb] | ||
\centering | ||
% First TikZ picture | ||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
xlabel={$t / \mathrm{ms}$}, | ||
ylabel={$i(t) / A$}, | ||
axis lines=left, | ||
ymin=0, ymax=30, | ||
xmin=0, xmax=10, | ||
xtick={0,1,2,3,4,5,6,7,8,9,10}, | ||
ytick={0,5,10,15,20,25,30}, | ||
thick, | ||
smooth, | ||
no markers, | ||
height=7cm, | ||
width=0.99\textwidth, | ||
grid | ||
] | ||
\begin{tikzpicture} | ||
\pgfplotsset{table/search path={fig/ex05}} | ||
\begin{groupplot}[group style={group size=1 by 3, vertical sep=1.5cm}, | ||
height=0.375\textheight, width=0.875\textwidth, xmin=0, xmax=pi, | ||
grid, clip = false, ymin = -0.1, ymax = 1.1, | ||
xtick = {0, pi/4, pi/2, 3*pi/4, pi}, | ||
xticklabels = {0,$2.5$, $5$,$7.5$, $10$}, | ||
ytick = {-1, 0, 1}, yticklabels = {, 0, 1}] | ||
|
||
\addplot[signalred, domain=0:10, samples=200] {24.5 * (1 - ((x-5)/5)^2)}; | ||
% \addplot [signalgreen, domain=0:3.5, draw=none] {24.5 * (1 - ((x-5)/5)^2)}; | ||
%\addlegendentry{first plot} | ||
\addplot[thick, domain=0:10,signalgreen] | ||
% (0,0) -- (0.48,2.35) | ||
% -- (0.5, 0.95) -- (0.935, 7.27) | ||
% -- (1.008, 2.5) -- | ||
(1.25,8.6) -- (1.388,12.2)-- (1.520,5.5) | ||
-- (1.852,16.4)-- (2.044,8.3) | ||
-- (2.35,19.9) -- (2.58,11.3) | ||
-- (2.82,22.7) -- (3.1,14.5) | ||
-- (3.3,24.9) -- (3.6,17.2) | ||
-- (3.8,26.3) -- (4.1,19.5) | ||
-- (4.2,27.2) -- (4.6,21) | ||
-- (4.7,27.8) -- (5.15,21.8) | ||
-- (5.2,27.9) -- (5.6,21.5) | ||
-- (5.7,27.5) --(6.1,20.5) | ||
-- (6.2,26.9) -- (6.6,18.7) | ||
-- (6.8,25.8) -- (7.1,16.3) | ||
-- (7.3,24.2) -- (7.62,13.5) | ||
-- (7.84,21.9) -- (8.156,10.5) | ||
-- (8.462,19)-- (8.68,7.5) | ||
-- (8.942,15.1) -- (9.084,4.2) | ||
-- (9.319,10.2) -- (9.58,1.8) | ||
-- (9.9,4.2) -- (10,0); | ||
% \addplot[signalred, domain=0:10, samples=200] {15.5 * (1 - ((x-5)/5)^2)}; | ||
\legend{$i'^*(t)$, $i'(t)$} | ||
\end{axis} | ||
\end{tikzpicture} | ||
|
||
|
||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
% \hspace{1cm} % Grafiken um 2 cm nach rechts verschieben | ||
xlabel={$t / \mathrm{ms}$}, | ||
ylabel={$s(t)$}, | ||
axis lines=left, | ||
ymin=-0.1, ymax=1.1, | ||
xmin=0, xmax=10, | ||
xtick={0,1,2,3,4,5,6,7,8,9,10}, | ||
ytick={-0.1,0,0.5,1}, | ||
yticklabels={{\color{white}$00$}, {\color{black}$0$},{\color{white}$00$},{\color{black}$1$}}, | ||
thick, | ||
smooth, | ||
height=7cm, | ||
width=0.99\textwidth, | ||
grid | ||
] | ||
|
||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:0, 1) -- (axis cs:0.48, 1) -- (axis cs:0.48, 0)-- (axis cs:0.5, 0); | ||
% bottom plot: current response | ||
\nextgroupplot[ylabel = {$i_1(t)/{A}$}, xlabel={$t/\text{ms}$}, | ||
ytick = {-1, 0, 0.5, 1}, yticklabels = {}, legend columns=2, ylabel shift = 0.2cm] | ||
\addplot[signalred, thick] table[x=wt, y=i1, col sep=comma] {PWM_PFC_example copy.csv}; | ||
\addplot[thick, dashed] table[x=wt, y=i1ref, col sep=comma] {PWM_PFC_example.csv}; | ||
\legend{$i_1(t)$, $i_1^{(1)}(t)$} | ||
\node at (0,0) [left] {$0$}; | ||
\node at (0,0.18) [left] {$5$}; | ||
\node at (0,0.36) [left] {$10$}; | ||
\node at (0,0.55) [left] {$15$}; | ||
\node at (0,0.73) [left] {$20$}; | ||
\node at (0,0.92) [left] {$25$}; | ||
\node at (0,1.1) [left] {$30$}; | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:0.5,0) -- (axis cs:0.5, 1) -- (axis cs:0.935, 1) -- (axis cs:0.935, 0)--(axis cs:1.008, 0); | ||
|
||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:1.008, 0)--(axis cs:1.008, 1) -- (axis cs:1.388, 1) -- (axis cs:1.388, 0)-- (axis cs:1.52, 0); | ||
|
||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:1.52, 0)--(axis cs:1.52, 1) -- (axis cs:1.852, 1) -- (axis cs:1.852, 0)--(axis cs:2.044, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:2.044, 0)--(axis cs:2.044, 1) -- (axis cs:2.35, 1) -- (axis cs:2.35, 0)--(axis cs:2.58, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:2.58, 0)--(axis cs:2.58, 1) -- (axis cs:2.82, 1) -- (axis cs:2.82, 0)--(axis cs:3.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:3.1, 0)--(axis cs:3.1, 1) -- (axis cs:3.3, 1) -- (axis cs:3.3, 0)--(axis cs:3.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:3.6, 0)--(axis cs:3.6, 1) -- (axis cs:3.8, 1) -- (axis cs:3.8, 0)--(axis cs:4.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:4.1, 0)--(axis cs:4.1, 1) -- (axis cs:4.2, 1) -- (axis cs:4.2, 0)--(axis cs:4.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:4.6, 0)--(axis cs:4.6, 1) -- (axis cs:4.7, 1) -- (axis cs:4.7, 0)-- (axis cs:5.15, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:5.15, 0)-- (axis cs:5.15, 1) -- (axis cs:5.2, 1) -- (axis cs:5.2, 0)--(axis cs:5.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:5.6, 0)--(axis cs:5.6, 1) -- (axis cs:5.7, 1) -- (axis cs:5.7, 0)--(axis cs:6.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:6.1, 0)--(axis cs:6.1, 1) -- (axis cs:6.2, 1) -- (axis cs:6.2, 0)--(axis cs:6.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:6.6, 0)--(axis cs:6.6, 1) -- (axis cs:6.8, 1) -- (axis cs:6.8, 0)--(axis cs:7.1, 0); | ||
% middle plot: switching signal | ||
\nextgroupplot[ylabel = {$s(t)$}, xlabel={$t/\text{ms}$}] | ||
\addplot[signalblue, thick] table[x=wt, y=s, col sep=comma] {PWM_PFC_example.csv}; | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:7.1, 0)--(axis cs:7.1, 1) -- (axis cs:7.3, 1) -- (axis cs:7.3, 0)--(axis cs:7.62, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:7.62, 0)--(axis cs:7.62, 1) -- (axis cs:7.84, 1) -- (axis cs:7.84, 0)--(axis cs:8.156, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:8.156, 0)--(axis cs:8.156, 1) -- (axis cs:8.462, 1) -- (axis cs:8.462, 0)--(axis cs:8.68, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:8.68, 0)--(axis cs:8.68, 1) -- (axis cs:8.942, 1) -- (axis cs:8.942, 0)-- (axis cs:9.084, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:9.084, 0)--(axis cs:9.084, 1) -- (axis cs:9.319, 1) -- (axis cs:9.319, 0)--(axis cs:9.58, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:9.58, 0)--(axis cs:9.58, 1) -- (axis cs:9.9, 1) -- (axis cs:9.9, 0)--(axis cs:10, 0); | ||
|
||
|
||
|
||
\end{axis} | ||
\end{groupplot} | ||
\end{tikzpicture} | ||
|
||
|
||
\caption{Current $i'$ and control signal for power transistor $T$.} | ||
\label{fig:Current i' control signal ex05} | ||
\caption{Current $i_1(t)$ and control signal $s(t)$ for power transistor $T$.} | ||
\label{fig:Current i_1 and control signal ex05} | ||
\end{figure} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,142 +1,39 @@ | ||
\begin{solutionfigure}[htb] | ||
\centering | ||
% First TikZ picture | ||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
xlabel={$t / \mathrm{ms}$}, | ||
ylabel={$i(t) / A$}, | ||
axis lines=left, | ||
ymin=0, ymax=30, | ||
xmin=0, xmax=10, | ||
xtick={0,1,2,3,4,5,6,7,8,9,10}, | ||
ytick={0,5,10,15,20,25,30}, | ||
thick, | ||
smooth, | ||
no markers, | ||
height=7cm, | ||
width=0.99\textwidth, | ||
grid | ||
] | ||
|
||
\addplot[dashed, black, domain=0:10, samples=200] {24.5 * (1 - ((x-5)/5)^2)}; | ||
|
||
% \addplot [signalgreen, domain=0:3.5, draw=none] {24.5 * (1 - ((x-5)/5)^2)}; | ||
%\addlegendentry{first plot} | ||
\addplot[thick, domain=0:10,signalred] | ||
(0,0) -- (0.48,2.35) | ||
-- (0.5, 0.95) -- (0.935, 7.27) | ||
-- (1.008, 2.5) -- | ||
(1.25,8.6) -- (1.388,12.2)-- (1.520,5.5) | ||
-- (1.852,16.4)-- (2.044,8.3) | ||
-- (2.35,19.9) -- (2.58,11.3) | ||
-- (2.82,22.7) -- (3.1,14.5) | ||
-- (3.3,24.9) -- (3.6,17.2) | ||
-- (3.8,26.3) -- (4.1,19.5) | ||
-- (4.2,27.2) -- (4.6,21) | ||
-- (4.7,27.8) -- (5.15,21.8) | ||
-- (5.2,27.9) -- (5.6,21.5) | ||
-- (5.7,27.5) --(6.1,20.5) | ||
-- (6.2,26.9) -- (6.6,18.7) | ||
-- (6.8,25.8) -- (7.1,16.3) | ||
-- (7.3,24.2) -- (7.62,13.5) | ||
-- (7.84,21.9) -- (8.156,10.5) | ||
-- (8.462,19)-- (8.68,7.5) | ||
-- (8.942,15.1) -- (9.084,4.2) | ||
-- (9.319,10.2) -- (9.58,1.8) | ||
-- (9.9,4.2) -- (10,0); | ||
% \addplot[signalred, domain=0:10, samples=200] {15.5 * (1 - ((x-5)/5)^2)}; | ||
\addplot[signalgreen, dashed, domain=0:10, samples=200] {27.9 * (1 - ((x - 5)/5)^2)}; | ||
\legend{$i'^*(t)$, $i'(t)$}%, $enveloping$} | ||
\end{axis} | ||
\end{tikzpicture} | ||
|
||
|
||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
% \hspace{1cm} % Grafiken um 2 cm nach rechts verschieben | ||
xlabel={$t / \mathrm{ms}$}, | ||
ylabel={$s(t)$}, | ||
axis lines=left, | ||
ymin=-0.1, ymax=1.1, | ||
xmin=0, xmax=10, | ||
xtick={0,1,2,3,4,5,6,7,8,9,10}, | ||
ytick={-0.1,0,0.5,1}, | ||
yticklabels={{\color{white}$00$}, {\color{black}$0$},{\color{white}$00$},{\color{black}$1$}}, | ||
thick, | ||
smooth, | ||
height=7cm, | ||
width=0.99\textwidth, | ||
grid | ||
] | ||
|
||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:0, 1) -- (axis cs:0.48, 1) -- (axis cs:0.48, 0)-- (axis cs:0.5, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:0.5,0) -- (axis cs:0.5, 1) -- (axis cs:0.935, 1) -- (axis cs:0.935, 0)--(axis cs:1.008, 0); | ||
|
||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:1.008, 0)--(axis cs:1.008, 1) -- (axis cs:1.388, 1) -- (axis cs:1.388, 0)-- (axis cs:1.52, 0); | ||
|
||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:1.52, 0)--(axis cs:1.52, 1) -- (axis cs:1.852, 1) -- (axis cs:1.852, 0)--(axis cs:2.044, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:2.044, 0)--(axis cs:2.044, 1) -- (axis cs:2.35, 1) -- (axis cs:2.35, 0)--(axis cs:2.58, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:2.58, 0)--(axis cs:2.58, 1) -- (axis cs:2.82, 1) -- (axis cs:2.82, 0)--(axis cs:3.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:3.1, 0)--(axis cs:3.1, 1) -- (axis cs:3.3, 1) -- (axis cs:3.3, 0)--(axis cs:3.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:3.6, 0)--(axis cs:3.6, 1) -- (axis cs:3.8, 1) -- (axis cs:3.8, 0)--(axis cs:4.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:4.1, 0)--(axis cs:4.1, 1) -- (axis cs:4.2, 1) -- (axis cs:4.2, 0)--(axis cs:4.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:4.6, 0)--(axis cs:4.6, 1) -- (axis cs:4.7, 1) -- (axis cs:4.7, 0)-- (axis cs:5.15, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:5.15, 0)-- (axis cs:5.15, 1) -- (axis cs:5.2, 1) -- (axis cs:5.2, 0)--(axis cs:5.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:5.6, 0)--(axis cs:5.6, 1) -- (axis cs:5.7, 1) -- (axis cs:5.7, 0)--(axis cs:6.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:6.1, 0)--(axis cs:6.1, 1) -- (axis cs:6.2, 1) -- (axis cs:6.2, 0)--(axis cs:6.6, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:6.6, 0)--(axis cs:6.6, 1) -- (axis cs:6.8, 1) -- (axis cs:6.8, 0)--(axis cs:7.1, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:7.1, 0)--(axis cs:7.1, 1) -- (axis cs:7.3, 1) -- (axis cs:7.3, 0)--(axis cs:7.62, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:7.62, 0)--(axis cs:7.62, 1) -- (axis cs:7.84, 1) -- (axis cs:7.84, 0)--(axis cs:8.156, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:8.156, 0)--(axis cs:8.156, 1) -- (axis cs:8.462, 1) -- (axis cs:8.462, 0)--(axis cs:8.68, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:8.68, 0)--(axis cs:8.68, 1) -- (axis cs:8.942, 1) -- (axis cs:8.942, 0)-- (axis cs:9.084, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:9.084, 0)--(axis cs:9.084, 1) -- (axis cs:9.319, 1) -- (axis cs:9.319, 0)--(axis cs:9.58, 0); | ||
|
||
\draw[signalblue, opacity=1] | ||
(axis cs:9.58, 0)--(axis cs:9.58, 1) -- (axis cs:9.9, 1) -- (axis cs:9.9, 0)--(axis cs:10, 0); | ||
|
||
|
||
|
||
\end{axis} | ||
\end{tikzpicture} | ||
|
||
\pgfplotsset{table/search path={fig/ex05}} | ||
\begin{groupplot}[group style={group size=1 by 3, vertical sep=1.5cm}, | ||
height=0.375\textheight, width=0.875\textwidth, xmin=0, xmax=pi, | ||
grid, clip = false, ymin = -0.1, ymax = 1.1, | ||
xtick = {0, pi/4, pi/2, 3*pi/4, pi}, | ||
xticklabels = {0,$2.5$, $5$,$7.5$, $10$}, | ||
ytick = {-1, 0, 1}, yticklabels = {, 0, 1}] | ||
% bottom plot: current response | ||
\nextgroupplot[ylabel = {$i_1(t)/{A}$}, xlabel={$t/\text{ms}$}, | ||
ytick = {-1, 0, 0.5, 1}, yticklabels = {}, legend columns=2, ylabel shift = 0.2cm] | ||
\addplot[signalred, thick] table[x=wt, y=i1, col sep=comma] {PWM_PFC_example.csv}; | ||
\addplot[thick, dashed] table[x=wt, y=i1ref, col sep=comma] {PWM_PFC_example.csv}; | ||
% \addplot[domain=0:pi, samples=100, signalgreen, dashed, thick]{1.22*sin(deg(x))-0.7*sin(deg(x))*(1-sin(deg(x))/1.3)}; | ||
% Obere Einhüllende: umschließt die Maximalwerte | ||
\addplot[domain=0:pi, samples=100, signalgreen, dashed, thick]{1 * sin(deg(x))}; | ||
|
||
\addplot[domain=0:pi, samples=100, signalgreen, dashed, thick]{0.97*sin(deg(x))-0.9*sin(deg(x))*(1-sin(deg(x))/1.3)}; | ||
\legend{$i_1(t)$, $i_1^{(1)}(t)$} | ||
\node at (0,0) [left] {$0$}; | ||
\node at (0,0.18) [left] {$5$}; | ||
\node at (0,0.36) [left] {$10$}; | ||
\node at (0,0.55) [left] {$15$}; | ||
\node at (0,0.73) [left] {$20$}; | ||
\node at (0,0.92) [left] {$25$}; | ||
\node at (0,1.1) [left] {$30$}; | ||
\nextgroupplot[ylabel = {$s(t)$}] | ||
\addplot[signalblue, thick] table[x=wt, y=s, col sep=comma] {PWM_PFC_example.csv}; | ||
\nextgroupplot[ylabel = {$d(t), c(t)$}, legend pos=south east, legend columns=2] | ||
\addplot[signalred, thick] table[x=wt, y=d, col sep=comma] {PWM_PFC_example.csv}; | ||
\addplot[signalblue, thick] table[x=wt, y=c, col sep=comma] {PWM_PFC_example.csv}; | ||
\legend{$d(t)$, $c(t)$} | ||
\end{groupplot} | ||
\end{tikzpicture} | ||
\caption{Current $i'$ and control signal for transistor $T$.} | ||
\label{fig:Current i' control signal ex05 result} | ||
\end{solutionfigure} |
Oops, something went wrong.