You are on page 1of 1

clc;

clear all;
pr=input('enter the rated power in MW');
np=input('enter the normal operating power in MW');
f=input('enter the frequency');
r=input('enter the speed regulation in percentage');
pd=input('enter the demand in MW');
b=((1/100)*np)/((1/100)*f);
bpu=b/pr;
rpu=(r/100)*(f);
beta=(bpu+(1/rpu));
delfstat=-(pd/(pr*beta));
disp('frequency deviation is');
disp(delfstat);

OUTPUT:

enter the rated power in MW2000


enter the normal operating power in MW1000
enter the frequency50
enter the speed regulation in percentage4
enter the demand in MW20
frequency deviation is
-0.0196

>>

enter the rated power in MW2000


enter the normal operating power in MW1500
enter the frequency50
enter the speed regulation in percentage3
enter the demand in MW20
frequency deviation is
-0.0147
>>

You might also like