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 --- 1938/CH6/EX6.26/6_26.sce | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 1938/CH6/EX6.26/6_26.sce (limited to '1938/CH6/EX6.26/6_26.sce') diff --git a/1938/CH6/EX6.26/6_26.sce b/1938/CH6/EX6.26/6_26.sce new file mode 100755 index 000000000..622f3e19e --- /dev/null +++ b/1938/CH6/EX6.26/6_26.sce @@ -0,0 +1,30 @@ +clc,clear +printf('Example 6.26\n\n') + +X_d=0.8,X_q=0.5,R_a=0.02 //armature resistance and synchronous reactance of direct,quadrature axis + +//case(i) lag +phi=acos(0.8) +V_t=1 +I_a=1//full-load +psi=atan( (V_t*sin(phi)+I_a*X_q)/(V_t*cos(phi)+I_a*R_a) ) +delta=psi-phi + +I_d=I_a*sin(psi) +I_q=I_a*cos(psi) + +E_f=V_t*cos(delta)+I_d*X_d+I_q*R_a +regulation=100*(E_f-V_t)/V_t +printf('percentage regulation at 0.8 pf lag is %.2f percent',regulation) + +//case(ii) lead +phi2=-1*acos(0.8) //minus sign because of leading pf +psi2=atan( (V_t*sin(phi2)+I_a*X_q)/(V_t*cos(phi2)+I_a*R_a) ) +delta2=psi2-phi2 + +I_d2=I_a*sin(psi2) +I_q2=I_a*cos(psi2) + +E_f2=V_t*cos(delta2)+I_d2*X_d+I_q2*R_a +regulation2=100*(E_f2-V_t)/V_t +printf('\npercentage regulation at 0.8 pf lead is %.2f percent',regulation2) -- cgit