# Chapter 2 The Device¶

## Example 2.1,Page number 7¶

In [8]:
import math
from math import pi,sqrt
Vpiv=1500                   # peak inverse voltage
V=415                       # main supply
Vf=Vpiv/(sqrt(2)*V)         # voltage safety factor
Vf=round(Vf,2)
print  'value of voltage safety factor=',Vf

value of voltage safety factor= 2.56


## Example 2.2,Page number 7¶

In [9]:
import math
from math import pi,sqrt
Vf=2.1                    # voltage safety factor
V=230                     # main supply
Vpiv=sqrt(2)*Vf*V         # peak inverse voltage
Vpiv=round(Vpiv,2)
print 'value of peak inverse voltage=',Vpiv,'volts'

value of peak inverse voltage= 683.07 volts


## Example 2.3,Page number 8¶

In [10]:
import math
C=30*10**-12                       # equivalent capacitance
diffV=150*10**6                    # dv/dt value of capacitor
Ic=C*(diffV)                       # capacitive current
print 'value of capacitive current=',Ic,'Amp'

value of capacitive current= 0.0045 Amp


## Example 2.4,Page number 8¶

In [11]:
import math
Ic=5.0                      # capacitive current in milli amperes
difV=175.0                  # dv/dt value in mega V/s
C=Ic/(difV)*10**3         # equivalent capacitance in pico farad
C=round(C,2)
print 'value of equivalent capacitance=',C,'pico farad'

value of equivalent capacitance= 28.57 pico farad


## Example 2.5,Page number 8¶

In [12]:
import math
Ic=6*10**-3             # capacitive current
C=25*10**-12            # equivalent capacitance
diffV=Ic/C              # dv/dt value of capacitor
diffV=diffV/10**6
print 'value of dv/dt=',diffV,'Mv/s'

value of dv/dt= 240.0 Mv/s


## Example 2.6,Page number 9¶

In [13]:
import math
Ic=5              # capacitive current in milli amperes
C=35              # equivalent capacitance in pico farad
difV=Ic*10**3/C   # value of dv/dt that can trigger the device in V/ microseconds
print  'value of dv/dt that can trigger the device=',difV,'V/microseconds'

value of dv/dt that can trigger the device= 142 V/microseconds


## Example 2.7,Page number 9¶

In [14]:
import math
from math import sqrt
Vpiv=1350            # peak inverse voltage in volts
V=415                # main supply in volts
Vf=Vpiv/(sqrt(2)*V)  # voltage safety factor
Vf=round(Vf,2)
print  'value of voltage safety factor=',Vf,'v'

value of voltage safety factor= 2.3 v