summaryrefslogtreecommitdiff
path: root/2891/CH2/EX2.8/Ex2_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2891/CH2/EX2.8/Ex2_8.sce')
-rwxr-xr-x2891/CH2/EX2.8/Ex2_8.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2891/CH2/EX2.8/Ex2_8.sce b/2891/CH2/EX2.8/Ex2_8.sce
new file mode 100755
index 000000000..6a5eb5c8a
--- /dev/null
+++ b/2891/CH2/EX2.8/Ex2_8.sce
@@ -0,0 +1,19 @@
+// Exa 2.8
+clc;
+clear;
+close;
+// given :
+mu_0=4*%pi*10^(-7) // permeability in free space
+mu_r1=3 // region 1 relative permeability
+mu_r2=5 // region 2 relative permeability
+mu_1=mu_r1*mu_0 // region 1 permeability
+mu_2=mu_r2*mu_0 // region 2 permeability
+H1=[4 1.5 -3] // magnetic field in region 1 in A/m
+Ht1=[0 1.5 -3] // tangential component of magnetic field H1
+Hn1=[4 0 0] // normal component of magnetic field H1
+Ht2=[0 1.5 -3] // as tangential componenet of magnetic field H2=tangential component of magnetic field H1
+Hn2=(mu_1/mu_2)*Hn1 // normal component of magnetic field H2
+H2=Ht2+Hn2 // magnetic field in region 2 in A/m
+h2=norm(H2) // magnitude of the magnetic field H2 in A/m
+disp(H2,"magnetic field in region 2 in A/m:")
+disp(h2,"magnitude of magnetic field in region 2 in A/m:")