summaryrefslogtreecommitdiff
path: root/3872/CH12/EX12.1/Ex12_1.sce
blob: 2240ec1c0b269406233a85c3838b7505c003b14f (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
25
26
27
28
29
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