summaryrefslogtreecommitdiff
path: root/Power_Electronics_Principles_and_Applications_by_Jacob/Chapter2.ipynb
blob: 9d88fe28fdd4486f825994c3e3edcfdc938a6a5f (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 2: Power Electronics Circuit Layout"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Example 2.9,Page 83"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "load current is 3.75 A\n",
      "wiring resistance is 26.67 mohm\n",
      "resistance per inch is 1666.67 microohm/inch\n"
     ]
    }
   ],
   "source": [
    "#finding an appropriate wire gauge\n",
    "\n",
    "#initialisation of variable\n",
    "from math import pi,tan,sqrt,sin,cos,acos,atan\n",
    "V=15.0;#voltage\n",
    "R=4.0;#resistance\n",
    "Vl=.1;\n",
    "D=8.0;#duty cycle\n",
    "\n",
    "#calculation\n",
    "Il=V/R;\n",
    "Rw=Vl/Il#wiring resistance\n",
    "Ri=Rw/(2*D);\n",
    "\n",
    "#result\n",
    "print \"load current is\",round(Il,2), \"A\"\n",
    "print \"wiring resistance is\",round(Rw*1000,2), \"mohm\"\n",
    "print \"resistance per inch is\",round(Ri*1e6,2), \"microohm/inch\""
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}