summaryrefslogtreecommitdiff
path: root/1319/CH1/EX1.23
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1319/CH1/EX1.23
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 '1319/CH1/EX1.23')
-rw-r--r--1319/CH1/EX1.23/1_23.sce36
1 files changed, 36 insertions, 0 deletions
diff --git a/1319/CH1/EX1.23/1_23.sce b/1319/CH1/EX1.23/1_23.sce
new file mode 100644
index 000000000..99aa77d84
--- /dev/null
+++ b/1319/CH1/EX1.23/1_23.sce
@@ -0,0 +1,36 @@
+//Find the flux density
+
+clc;
+clear;
+
+l=50*(10^-2); // Mean length
+m0=4*%pi*(10^-7); // Constant (Permeablity of air)
+ag=1*(10^-3); // Air Gap
+mr=300; // Relative permeability
+N=200; // No of turns
+I=1; // Current
+A=poly(0,'A');// Area
+
+Rel=l/(m0*mr*A);//Reluctance of the substance
+
+Relag=ag/(m0*A); // Air gap reluctance
+
+MMF=N*I;
+
+Relt=Rel+Relag; // Total reluctance
+
+phi=MMF/Relt;//Flux
+
+B=phi/A;
+
+// To get the numerical value of the flux density as the polynomial denominator doesn't divide
+
+x=B(2)-A;
+x=roots(x);
+
+y=B(3)-A;
+y=roots(y);
+
+B=x/y;
+
+printf('The flux density = %g mWb/(m^2)\n',B*1000)