summaryrefslogtreecommitdiff
path: root/3872/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3872/CH12/EX12.1/Ex12_1.sce')
-rw-r--r--3872/CH12/EX12.1/Ex12_1.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3872/CH12/EX12.1/Ex12_1.sce b/3872/CH12/EX12.1/Ex12_1.sce
new file mode 100644
index 000000000..2240ec1c0
--- /dev/null
+++ b/3872/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,30 @@
+//Book - Power System: Analysis & Design 5th Edition
+//Authors - J. Duncan Glover, Mulukutla S. Sarma, and Thomas J. Overbye
+//Chapter - 12 ; Example 12.1
+//Scilab Version - 6.0.0 ; OS - Windows
+
+clc;
+clear;
+
+Tr=0;
+Ka=100;
+Ta=0.05;
+Vrmax=5;
+Vrmin=-5;
+Ke=1;
+Te=0.26;
+Kf=0.01;
+Tf=1;
+
+Efd=2.9135; //Value taken from Example 11.10
+Vt=1.0946; //Value taken from Example 11.10
+
+Vr=Ke*Efd; //Initial value of Vr
+Vf=0; //Initial value of vf
+Vref=(Vr/Ka)+Vt+Vf; //Initial value of Vref
+
+printf('The initial value of Vr is %.4f\n',Vr)
+printf('The initial value of Vf is %.4f\n',Vf)
+printf('The initial value of Vref is %.4f\n',Vref)
+
+//Section 'b' of this problem cannot be simulated using current version of Scilab