summaryrefslogtreecommitdiff
path: root/3760/CH2/EX2.19/Ex2_19.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3760/CH2/EX2.19/Ex2_19.sce
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/CH2/EX2.19/Ex2_19.sce')
-rw-r--r--3760/CH2/EX2.19/Ex2_19.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3760/CH2/EX2.19/Ex2_19.sce b/3760/CH2/EX2.19/Ex2_19.sce
new file mode 100644
index 000000000..baf6ef5e9
--- /dev/null
+++ b/3760/CH2/EX2.19/Ex2_19.sce
@@ -0,0 +1,27 @@
+clc;
+// L1=3+(1/(2*X)) -self inductance of coil 1
+// L1=2+(1/(2*X)) -self inductance of coil 2
+// M=1/(2*X) -mutual inductance
+// X is displacement
+i1=10; // current of coil 1
+i2=-5; // current of coil 2
+// from expression W=(L1*i1^2)/2 + (L2*i2^2)/2 + (i1*i2*M) where W is work done and is equal to 175+25/(4*x);
+// fe=-25/(4*x^2) where fe is electromagnetic force and is equal to rate of change of work done with respect to x
+disp('case a');
+x1=0.5;
+x2=1;
+Wm=integrate('-25/(4*x^2)','x',x1,x2);
+printf('Mechanical work done for given increment in displacement is %f watt-sec\n',Wm);
+disp('case b')
+// psi1=(3+(1/(2*x)))*i1+(1/(2*x))*i2 psi1 is flux linkage with coil 1
+// psi2=(2+(1/(2*x)))*i2+(1/(2*x))*i1 psi2 is flux linkage with coil 2
+We1=(((3+(1/(2*x2)))*i1+(1/(2*x2))*i2)-((3+(1/(2*x1)))*i1+(1/(2*x1))*i2))*i1;
+We2=(((2+(1/(2*x2)))*i2+(1/(2*x2))*i1)-((2+(1/(2*x1)))*i2+(1/(2*x1))*i1))*i2;
+printf('Electrical energy supplied by source 1 is %f watt-sec\n',We1);
+printf('Electrical energy supplied by source 2 is %f watt-sec\n',We2);
+disp('case c');
+// W=175+(25/(4*x));
+dw=175+(25/(4*x2))-(175+(25/(4*x1)));
+printf('Change in field energy is %f Watt-sec\n',dw);
+
+