blob: 3a3f670842d8da3bceee7ce1cbd16e55e01e989d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// chapter 2 example 1
//------------------------------------------------------------------------------
clc;
clear;
// µr1 = 3; // relative permeability of region 1
// µr2 = 5; // relative permeability of region 2
// H1 = (4ax + 3ay -6az)A/m; Magnetic field intensity
// Therefore B1 = µoµr1H1
// = µo(12ax + 9ay -18az)A/m
// since normal component of (B) is continuous across the interface
// Therefore, B2 = µo[12ax + 9(µr2/µr1)ay -18(µr2/µr1)az]
// = µo[12ax + 15ay - 30az]
// H2 = [12/5ax + 15/5ay - 30/5az]A/m
// H2 = (2.4ax + 3ay - 6az)
H2 = sqrt(2.4^2 + 3^2 + 6^2);
// output
mprintf('Magnetic field intensity in region- 2 = %3.2f A/m',H2);
//------------------------------------------------------------------------------
|