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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 1: Thyristors"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.11_1: peak_reverse_recovery_current.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Example 1.11.1: peak reverse recovery current\n",
"clc;\n",
"clear;\n",
"close;\n",
"//given data :\n",
"itt=10;// time in micro seconds\n",
"qtt=150;//charge in micro colums\n",
"prrc=((2*qtt)/itt);//peak reverse recovery current in amperes\n",
"disp(prrc,'peak reverse recovery current in amperes')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.18_1: voltage.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Example 1.18.1: voltage of the capacitor\n",
"clc;\n",
"clear;\n",
"close;\n",
"format('v',7)\n",
"r=10;//in ohms\n",
"l=10;///inductance in mH\n",
"c=10;//capacitance in micro farads\n",
"v=100;//in volts\n",
"t=((%pi)/(sqrt((1/(l*10^-3*c*10^-6))-(r^2/(4*(l*10^-3)^2)))));// time in seconds\n",
"vc= v*(1-cosd(t/(sqrt(l*10^-3*c*10^-6))));//in volts\n",
"disp(vc,'the capacitor voltage in volts is')\n",
"//answer is wrong in the textbook"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.18_2: voltage_of_the_capacitor.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Example 1.18.2: voltage of the capacitor\n",
"clc;\n",
"clear;\n",
"close;\n",
"format('v',7)\n",
"r=15;//in ohms\n",
"l=12;///inductance in mH\n",
"c=8;//capacitance in micro farads\n",
"v=100;//in volts\n",
"t=((%pi)/(sqrt((1/(l*10^-3*c*10^-6))-(r^2/(4*(l*10^-3)^2)))));// time in seconds\n",
"vc= v*(1-cosd(t/(sqrt(l*10^-3*c*10^-6))));//in volts\n",
"disp(vc,'the capacitor voltage in volts is')\n",
"//this question is not solved in the textbook"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.20_1: turn_off_time.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Example 1.20.1: Turn Off Time\n",
"clc;\n",
"clear;\n",
"close;\n",
"//given data :\n",
"format('v',6)\n",
"Vs=200;//in volts\n",
"R1=10;// in ohm\n",
"R2=R1;\n",
"C=5;// in micro-farad\n",
"Tc=(R1*C)/1.44;\n",
"disp(Tc,'The Circuit Turn Off Time,Tc(micro-sec) = ')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.20_2: state_thyristor_current_and_circuit_turn_off_time.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Example 1.20.2: Peak Current and turn off time\n",
"clc;\n",
"clear;\n",
"close;\n",
"format('v',6)\n",
"//given data :\n",
"Vs=200;//in volts\n",
"R1=10;// in ohm\n",
"R2=R1;\n",
"Vc=200;//in volts\n",
"C=10;// in micro-farad\n",
"I1=Vs/R1;\n",
"I2=(Vs+Vc)/R2;\n",
"It1=I1+I2;\n",
"disp(It1,'Peak Current,It1(A) = ')\n",
"Tc=(R1*C)/1.44;\n",
"disp(Tc,'The Circuit Turn Off Time,Tc(micro-sec) = ')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.21_1: inductance_and_capacitance.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Example 1.21.1: L and C\n",
"clc;\n",
"clear;\n",
"close;\n",
"//given data :\n",
"V=100;// in volts\n",
"Irm=40;// in A\n",
"tq=40;// in micro-sec\n",
"Del_t=(50/100)*tq;// in micro-sec\n",
"C=(Irm*(tq+Del_t))/V;\n",
"disp(C,'capacitance,C(micro-farad) = ')\n",
"L_min=(V/Irm)^2*C;\n",
"disp(L_min,'minimum inductance,L_min(micro-Henry) = ')\n",
"T=2.5;// assume one cycle period in ms\n",
"L_max=((0.01*(T*10^-3)^2)/(%pi^2*C*10^-6))*10^6;\n",
"disp(L_max,'Maximum inductance,L_max(micro-Henry) = ')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|