/
circuitAnalysis.tex~
223 lines (172 loc) · 8.36 KB
/
circuitAnalysis.tex~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
\documentclass[leqno,b5paper]{book}
%===================
%testing tikz inside book
\usepackage[arrowmos,oldvoltagedirection]{circuitikz}
\usepackage{pgfplotstable}
\usepackage{pgfplots}
\usepackage{tikz-3dplot}
\pgfplotsset{compat=newest,}
\usepgfplotslibrary{units}
%\pgfplotsset{compat=1.9}
\usepgfplotslibrary{polar}
\usepackage{ifdraft}
\usetikzlibrary{3d,shadings,fadings,intersections,calc,decorations.markings,decorations.pathreplacing,external,shapes.misc}
%\tikzexternalize[mode=list and make] %disable to generate figures
%\tikzexternaldisable %enables figures after this command. put this is the tex file
\pgfmathsetmacro{\x}{2} %smallest resistor sizes
\pgfmathsetmacro{\y}{2}
\pgfmathsetmacro{\xx}{2.5} %somewhat larger resistor leads. gives more space
\pgfmathsetmacro{\yy}{2.5}
\pgfmathsetmacro{\xxx}{3} %still larger resistor leads. gives even more space
\pgfmathsetmacro{\yyy}{3}
\pgfmathsetmacro{\dx}{0.2} %moving labels beyond resistor outline
\pgfmathsetmacro{\dy}{0.2}
\pgfmathsetmacro{\pin}{0.3}
\pgfmathsetmacro{\boxW}{0.5} %width of box circuit
\pgfmathsetmacro{\boxH}{2.5} %height of box circuit
%=============================
%complex numbers, squared voltages
\newcommand*{\bZ}{{\ensuremath{{\boldsymbol{Z}}}}} %complex impedance
\newcommand*{\bY}{{\ensuremath{{\boldsymbol{Y}}}}} %complex admittance
\newcommand*{\bZCC}{{\ensuremath{{\boldsymbol{Z}}^{*}}}} %complex conjugate impedance
\newcommand*{\bYCC}{{\ensuremath{{\boldsymbol{Y}}^{*}}}} %complex conjugate
\newcommand*{\bVrms}{{\ensuremath{\hat{V}_{\textup{rms}}}}} %phasor voltage
\newcommand*{\bIrms}{{\ensuremath{\hat{I}_{\textup{rms}}}}} %phasor current
\newcommand*{\Vrms}{{\ensuremath{V_{\textup{rms}}}}} %rms voltage
\newcommand*{\Irms}{{\ensuremath{I_{\textup{rms}}}}} %rms current
\newcommand*{\Arms}{{\ensuremath{A_{\textup{rms}}}}} %rms amps
\newcommand*{\VrmsS}{{\ensuremath{V^2_{\textup{rms}}}}} %rms squared
\newcommand*{\IrmsS}{{\ensuremath{I^2_{\textup{rms}}}}} %rms squared
\newcommand*{\bVrmsCC}{{\ensuremath{\hat{V}^{*}_{\textup{rms}}}}} %conjugate phasor voltage
\newcommand*{\bIrmsCC}{{\ensuremath{\hat{I}^{*}_{\textup{rms}}}}} %conjugate phasor current
\newcommand*{\kx}[1]{{\ensuremath{{\boldsymbol{#1}}}}} %complex quantity
\newcommand*{\bS}{{\ensuremath{{\boldsymbol{S}}}}} %complex power
\newcommand*{\bH}{{\ensuremath{{\boldsymbol{H}}}}} %network functions
\newcommand*{\bA}{{\ensuremath{{\boldsymbol{A}}}}} %voltage gain
\newcommand*{\pf}{{\ensuremath{{\textup{pf}}}}}
\newcommand*{\rms}{{\ensuremath{\textup{rms}}}} %rms
\newcommand*{\BW}{{\ensuremath{{\textup{BW}}}}} %bandwidth
\newcommand*{\Laplace}{\mathcal{L}} %Laplace transform
\newcommand*{\Fourier}{\mathcal{F}} %Fourier transform
\newcommand*{\kB}[1]{{\ensuremath{{\textup{#1}}}}} %Laplace symbol general use.
%following were used too often so gave them specific symbols
\newcommand*{\bF}{{\ensuremath{{\textup{F}}}}} %Fourier transform of
\newcommand*{\bP}{{\ensuremath{{\textup{P}}}}} %Laplace fraction
\newcommand*{\bQ}{{\ensuremath{{\textup{Q}}}}} %Laplace fraction
\newcommand*{\bV}{{\ensuremath{{\textup{V}}}}} %Laplace Voltage
\newcommand*{\bI}{{\ensuremath{{\textup{I}}}}} %Laplace Current
%for vertical spacing in tables use\Tstrut and \Bstrut
\newcommand\Tstrut{\rule{0pt}{2.6ex}} % Top strut
\newcommand\Bstrut{\rule[-1.2ex]{0pt}{0pt}} % Bottom strut
\definecolor{lgray}{cmyk}{0,0,0,0.2}
\definecolor{dgray}{cmyk}{0,0,0,0.7}
%==========================
%my styles
\pgfplotsset{
kStyleCircuitsA/.style={axis lines*=middle,scaled x ticks=false,scaled y ticks=false,
every axis x label/.style={
at={(ticklabel* cs:1.15)},
anchor=east,},
every axis y label/.style={
at={(ticklabel* cs:1.05)},
anchor=east,}
},
}
%=====================
\tikzset{component/.style={draw,thick,circle,fill=white,minimum size =0.75cm,inner sep=0pt}}
\tikzset{
mark position/.style args={#1(#2)}{
postaction={
decorate,
decoration={
markings,
mark=at position #1 with \coordinate (#2);
}
}
}
}
%========================
%\usepackage[hidelinks]{hyperref} used in machines book but not here
\usepackage{./tex/khalidUrduBooksEMT} %my sty file
\usepackage{amsmath}
\usepackage{amsbsy} %for bold Poynting
\usepackage{ mathrsfs} %for Poynting symbol
\usepackage{IEEEtrantools}
\sisetup{math-micro=\textup{µ},text-micro=µ,math-ohm =\upOmega} %with mathpazo this is needed else must not be here. now micro is smaller
\DeclareSIUnit \var {var} %used in electric circuits volt-ampere-reactive
\input{./tex/myUrduCommandsEMT.tex} %turning latex into urdu
\input{./tex/myUrduGreek.tex}
\input{./tex/myEMTvectors.tex}
\input{./tex/myDeclareFunctions.tex} %\sech, \csch, \arcsh, \arcs hyperbolic and arc-secant etc
%\input{./tex/myElectronicsVariablesBetter.tex} %these are all tested. to use at the very end when book is finished
\graphicspath{{./fig/figFrontPage/}{./fig/figBasicConcepts/}{./fig/figResistive/}{./fig/figNodalLoop/}{./fig/figOpamp/}{./fig/figTheorem/}{./fig/figCapacitorInductor/}{./fig/figTransients/}{./fig/figFreqResponse/}{./fig/figLaplaceTransform/}{./fig/figLaplaceTransformApplication/}{./fig/figFourierAnalysis/}} %paths to figures
\includeonly{./tex/cktSymbols,./tex/cktPreface,./tex/prefaceFirstBook,./tex/cktBasics,./tex/cktResistive,./tex/cktNodalLoop,./tex/cktOpamp,./tex/cktTheorems,./tex/cktCapacitorInductor,./tex/cktTransients,./tex/cktSteadyStateAC,./tex/cktSteadyStatePower,./tex/cktMagneticallyCoupledNetworks,./tex/cktPolyphaseCircuits,./tex/cktFrequencyResponse,./tex/cktLaplaceTransform,./tex/cktApplicationLaplace,./tex/cktFourierAnalysis,./tex/cktTwoPortNetworks}
%\includeonly{./tex/cktSymbols,./tex/cktPreface,./tex/prefaceFirstBook,./tex/cktPolyphaseCircuits}%
%\includeonly{./tex/cktSymbols,./tex/cktPreface,./tex/prefaceFirstBook,./tex/cktTwoPortNetworks}%
\author{
خالد خان یوسفزئی\\
\\
{\small {جامعہ کامسیٹ، اسلام آباد}}\\
\texttt{khalidyousafzai@comsats.edu.pk}
}
%=========
\title{برقی ادوار}
%\date{} %if absent gives date in arabic which is a rubbish
%included the following to correct the RTL issues with equation numbering after upgradation to ubuntu 18.04
%might break bidi package as said on the internet
\makeatletter
\def\maketag@@@#1{\hbox{\m@th\normalfont\RTL{{\beginR #1\endR}}}}
\def\tagform@#1{\maketag@@@{(\ignorespaces{\beginR#1\endR}\unskip)}}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\linenumbers
%\makeindex
%==========
\begin{document}
\sloppy
%\renewcommand*{\contentsname}{عنوان} %this command has to be placed right here
\frontmatter %just added instead of \pagenumbering{roman}
%%\pagenumbering{roman}
\maketitle
\tableofcontents
\pagestyle{empty}
\newpage
\include{./tex/cktPreface}
\newpage
\include{./tex/prefaceFirstBook}
%\newpage
%\include{./tex/cktSymbols}
\mainmatter %added this
%\renewcommand*{\chaptername}{باب}
%%\pagenumbering{arabic} %instead of this
\pagestyle{headings}
\include{./tex/cktBasics}
\include{./tex/cktResistive}
\include{./tex/cktNodalLoop}
\include{./tex/cktOpamp}
\include{./tex/cktTheorems}
\include{./tex/cktCapacitorInductor}
\include{./tex/cktTransients}
\include{./tex/cktSteadyStateAC}
\include{./tex/cktSteadyStatePower}
\include{./tex/cktMagneticallyCoupledNetworks}
\include{./tex/cktPolyphaseCircuits}
\include{./tex/cktFrequencyResponse}
\include{./tex/cktLaplaceTransform}
\include{./tex/cktApplicationLaplace}
\include{./tex/cktFourierAnalysis}
\include{./tex/cktTwoPortNetworks}
%\include{./tex/emtEndOfBookTableDivergenceCurlGradientLaplacian}
%\include{./tex/toDoList}
%\include{./tex/emtQuestions}
\backmatter
\cleardoublepage
%\include{./tex/emtDataTables} %appendices
%\include{./tex/emtLinearAlgebra}
%\include{./tex/emtCoordinatesRelations}
%\renewcommand*{\indexname}{فرہنگ} %this command has to be placed right here just before printindex command
\cleardoublepage
\addcontentsline{toc}{chapter}{اشاریہ}
\printindex
\end{document}