Srshcomp.m
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:4k
源码类别:
其他行业
开发平台:
Matlab
- % This function computes the shunt capacitor compensation required
- % for an specified receiving-end voltage and a given series capacitor
- % compensation.
- % Copyright (C) 1998 by H. Saadat.
- function srshcomp(ABCD)
- global resp model par1 par2 linelngt freq
- if exist('ABCD')~=1
- A = input('Enter the complex line constant A = ');
- B = input('Enter the complex line constant B = ');
- C = input('Enter the complex line constant C = ');
- D = A; ABCD=[A B; C D]; end
- if exist('freq')~=1
- f = input('Enter frequency in Hz = '); else f = freq; end
- Z = ABCD(1,2); Y = 2*ABCD(2,1)/(ABCD(1,1)+1);
- Vsm = input('Enter sending end line-line voltage kV = ');
- Vrm = input('Enter desired receiving end line-line voltage kV = ');
- dr = input('Enter receiving end voltage phase angle