summaryrefslogtreecommitdiff
path: root/3169/CH6/EX6.3/Ex6_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3169/CH6/EX6.3/Ex6_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3169/CH6/EX6.3/Ex6_3.sce')
-rw-r--r--3169/CH6/EX6.3/Ex6_3.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3169/CH6/EX6.3/Ex6_3.sce b/3169/CH6/EX6.3/Ex6_3.sce
new file mode 100644
index 000000000..9d5a64f0a
--- /dev/null
+++ b/3169/CH6/EX6.3/Ex6_3.sce
@@ -0,0 +1,29 @@
+//developed in windows XP operating system
+//platform Scilab 5.4.1
+clc;clear;
+//example 6.3
+//calculation of series resistance ,damping resistance and maximum output voltage of the generator
+
+//given data
+n=8//number of stages
+C=0.16*10^-6//value of condenser(in farad)
+Cl=1000*10^-12//value of load capacitor (in farad)
+t1=1.2*10^-6//time to front(in second)
+t2=50*10^-6//time to tail(in second)
+Vc=120*10^3//charging voltage(in V)
+
+//calculation
+C1=C/n//generator capacitance
+C2=Cl//load capacitance
+R1=(t1*(C1+C2))/(3*C1*C2)
+R2=(t2/(0.7*(C1+C2)))-R1
+V=n*Vc//dc charging voltage for n stages
+alpha=1/(R1*C2)
+betaa=1/(R2*C1)
+Vmax=(V*(exp(-alpha*t1)-exp(-betaa*t1)))/(R1*C2*(alpha-betaa))
+
+printf('The value of series resistance is %d ohm',round(R1))
+printf('\nThe value of damping resistance is %d ohm',round(R2))
+printf('\nThe value of maximum output voltage of the generator is %3.2f kV',-Vmax*10^-3)
+
+//Vmax value from the equation is 892.02 kV