diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /503/CH5/EX5.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '503/CH5/EX5.1')
-rwxr-xr-x | 503/CH5/EX5.1/ch5_1.sci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/503/CH5/EX5.1/ch5_1.sci b/503/CH5/EX5.1/ch5_1.sci new file mode 100755 index 000000000..f50bde3c2 --- /dev/null +++ b/503/CH5/EX5.1/ch5_1.sci @@ -0,0 +1,20 @@ +// To calculate harmanic factor for stator
+
+clc;
+S=36; //no of slots
+q=3; //no of phases
+p=4; //no of poles
+m=S/(q*p); //slots/pole/phase
+g=180*p/S; //gamma elec
+function [k]=bfctr(n)
+ k=sind(m*n*g/2)/(m*sind(n*g/2));
+endfunction
+
+K_b=bfctr(1);
+disp(K_b,'K_b(fundamental)');
+
+K_b=bfctr(3);
+disp(K_b,'K_b(third harmonic)');
+
+K_b=bfctr(5);
+disp(K_b,'K_b(fifth harmonic)');
\ No newline at end of file |