summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_G_Aruldhas/2-ELECTROMAGNETIC_THEORY.ipynb
blob: 7c02330e5d57965066cf7c49db7f43b232552f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"cells": [
 {
		   "cell_type": "markdown",
	   "metadata": {},
	   "source": [
       "# Chapter 2: ELECTROMAGNETIC THEORY"
	   ]
	},
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 2.1: Peak_value_of_displacement_current.sci"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"// Scilab Code Ex2.1 :  Page-46 (2010)\n",
"function V = f(t)\n",
"    V = 0.2*sin(120*%pi*t);\n",
"endfunction\n",
"t = 0;    // Time when peak value of current occurs\n",
"C = 10e-012;    // Capacitance of the capacitor, farad\n",
"I = C*derivative(f,t);\n",
"printf('\nThe peak value of displacement current = %6.4e A', I);\n",
"\n",
"// Result \n",
"// The peak value of displacement current = 7.5398e-010 A"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 2.2: Displacement_current_density_in_a_good_conductor.sci"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"// Scilab Code Ex2.2 : Page-46 (2010)\n",
"function E = fn(t)\n",
"    E = sin(120*%pi*t);\n",
"endfunction\n",
"epsilon_r = 1;    // Relative electrical permittivity of free space\n",
"epsilon_0 = 8.854e-012;    // Absolute electrical permittivity of free space, farad per metre\n",
"t = 0;    // Time when peak value of current occurs\n",
"J2 = epsilon_0*epsilon_r*derivative(fn,t);\n",
"printf('\nThe peak value of displacement current = %4.2e ampere per metre square', J2);\n",
"\n",
"// Result \n",
"// The peak value of displacement current = 3.34e-009 ampere per metre square"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 2.4: Poynting_vector.sci"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"// Scilab Code Ex2.4 : Page-47 (2010)\n",
"p = 60;    // Power rating of bulb, watt\n",
"d = 0.5;    // Distance from the blb, m\n",
"P = p/(4*%pi*d^2);    // Value of Poynting vector, watt per metre square\n",
"printf('\nThe value of Poynting vector = %4.1f watt per metre square', P);\n",
"\n",
"// Result \n",
"// The value of Poynting vector = 19.1 watt per metre square "
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 2.5: Plane_electromagnetic_wave_in_a_medium.sci"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"// Scilab Code Ex2.5 : Page-47 (2010)\n",
"E_peak = 6;    // Peak value of electric field intensity, V/m\n",
"c = 3e+08;    // Speed of electromagnetic wave in free space, m/s\n",
"mu_0 = 4*%pi*1e-07;    // Absolute permeability of free space, tesla metre per ampere\n",
"epsilon_0 = 8.854e-012;    // Absolute permittivity of free space, farad/m\n",
"mu_r = 1;    // Relative permeability of medium\n",
"epsilon_r = 3;    // Relative permittivity of the medium\n",
"v = c/sqrt(mu_r*epsilon_r);    // Wave velocity, m/s\n",
"eta = sqrt((mu_0/epsilon_0)*(mu_r/epsilon_r));    // Intrinsic impedance of the medium, ohm\n",
"H_P = E_peak*sqrt((epsilon_0*epsilon_r)/(mu_0*mu_r));    // Peak value of the magnetic intensity, ampere per metre\n",
"printf('\nThe wave velocity = %5.3e m/s', v);\n",
"printf('\nThe intrinsic impedance of the medium = %6.2f ohm', eta);\n",
"printf('\nThe peak value of the magnetic intensity = %4.2e A/m', H_P);\n",
"\n",
"// Result \n",
"// The wave velocity = 1.732e+008 m/s\n",
"// The intrinsic impedance of the medium = 217.51 ohm\n",
"// The peak value of the magnetic intensity = 2.76e-002 A/m "
   ]
   }
],
"metadata": {
		  "kernelspec": {
		   "display_name": "Scilab",
		   "language": "scilab",
		   "name": "scilab"
		  },
		  "language_info": {
		   "file_extension": ".sce",
		   "help_links": [
			{
			 "text": "MetaKernel Magics",
			 "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
			}
		   ],
		   "mimetype": "text/x-octave",
		   "name": "scilab",
		   "version": "0.7.1"
		  }
		 },
		 "nbformat": 4,
		 "nbformat_minor": 0
}