summaryrefslogtreecommitdiff
path: root/83/CH8/EX8.1/example_8_1.sce
blob: 1aca454b4a1cb9897ed369c4ad66ee0282ba9a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Chapter 8
//Example 8.1
//page 300
//To determine the change in the frequency
clear;clc;
f=50;
H=5e3;
KE=H*100*1000; //K.E stored in the generator
PI=50e6; //power input to generator before the stem valve is closed
EE=PI*0.4 ; //Excess energy input to the rotating parts
fnew=f*((KE+EE)/KE)^0.5; //frequency at the end of the 0.4sec
printf('\nKinetic Energy stored in the rotating parts of generator and turbine = %d kW-sec',KE/1000);
printf('\nExcess power input to generator before the stem valve begins to close=%d MW',PI/1000000);
printf('\nExcess energy input to rotating parts in 0.4sec=%d kW-sec',EE/1000);
printf('\nFrequency at the end of 0.4sec=%0.2f Hz\n\n',fnew);