summaryrefslogtreecommitdiff
path: root/3760/CH3/EX3.6
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3760/CH3/EX3.6
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3760/CH3/EX3.6')
-rw-r--r--3760/CH3/EX3.6/Ex3_6.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3760/CH3/EX3.6/Ex3_6.sce b/3760/CH3/EX3.6/Ex3_6.sce
new file mode 100644
index 000000000..db8332e66
--- /dev/null
+++ b/3760/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,25 @@
+clc;
+disp('case a');
+s=54; // number of slots in stator,3 phase
+p=6; // number of poles
+spp=s/(3*p); // slots per pole per phase
+v=(p*180)/s; // slot angular pitch
+k1=sin(((spp*v)/2)*(%pi/180))/(spp*sin((v/2)*(%pi/180))); // fundamental harmonics
+k3=sin(((3*spp*v)/2)*(%pi/180))/(spp*sin(((3*v)/2)*(%pi/180))); // third harmonic
+k5=sin(((5*spp*v)/2)*(%pi/180))/(spp*sin(((5*v)/2)*(%pi/180))); // fifth harmonic
+printf('First harmonic component is %f\n',k1);
+printf('Third harmonic component is %f\n',k3);
+printf('Fifth harmonic component is %f\n',k5);
+disp('case b');
+s=48; // number of slots in stator,3 phase
+p=6; // number of poles
+spp=s/(3*p); // slots per pole per phase
+sk=spp*3;
+v=(p*180)/s; // slot angular pitch
+ps=spp*v; // phase spread
+k1=sin(((ps)/2)*(%pi/180))/(sk*sin(((ps)/(sk*2))*(%pi/180))); // fundamental harmonics
+k3=sin(((3*ps)/2)*(%pi/180))/(sk*sin(((3*ps)/(sk*2))*(%pi/180))); // third harmonic
+k5=sin(((5*ps)/2)*(%pi/180))/(sk*sin(((5*ps)/(sk*2))*(%pi/180))); // fifth harmonic
+printf('First harmonic component is %f\n',k1);
+printf('Third harmonic component is %f\n',k3);
+printf('Fifth harmonic component is %f\n',k5);