summaryrefslogtreecommitdiff
path: root/3311/CH2/EX2.1/Ex2_1.sce
blob: 3a50987429516f2a06ba37e085378d2853c3d93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// chapter 2
// example 2.1
// fig. E2.1
// Will the thyristor get fired
// page-21-22
clear;
clc;
// given
I_L=50; // in mA (Latching current)
t=50; // in us (duration of fireing pulse)
R=20; // in ohm (resistance of ciicuit)
L=0.5; // in H (Inductance of circuit)
V=100; // in V (Battery voltage)
// calculate
tou=L/R; // calculation of total time period 
t=t*1E-6; // changing unit from us to sec
i=(V/R)*(1-exp(-t/tou)); // calculation of current at t=50 us
i=i*1E3; // changing unit from A to mA
printf("\nThe value of current is \t i(50 us) = %.2f mA\n",i);
if i<I_L then
    printf("\nSCR will not get fired");
    
    else printf("\nSCR will get fired");
end