From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 416/CH14/EX14.17/example14_17.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 416/CH14/EX14.17/example14_17.sce (limited to '416/CH14/EX14.17/example14_17.sce') diff --git a/416/CH14/EX14.17/example14_17.sce b/416/CH14/EX14.17/example14_17.sce new file mode 100755 index 000000000..d42566e11 --- /dev/null +++ b/416/CH14/EX14.17/example14_17.sce @@ -0,0 +1,16 @@ +clc +clear +disp('example 14.7') +ca=200 //capacity of unit a +cb=100 //capacity of unit b +ra=1.5 //speed regulation of unit a +rb=3 //speed regulation of unit b +f=50 //frequency +pla=100 //load on each bus +plb=100 +raa=ra*f/(pla*ca) +rbb=rb*f/(plb*cb) +pa=rbb*(pla+plb)/(raa+rbb) +pb=pla+plb-pa +tp=pa-pla +printf(" generation at the plant a is %dMW and \n generation at the plant b is %dMW \n transfer power from plant a to b is %dMW",pa,pb,tp) \ No newline at end of file -- cgit