summaryrefslogtreecommitdiff
path: root/sample_notebooks/mayankagrawal/chapter5.ipynb
blob: 37fe203a4335c7f65f6c8696fab9e3ef8866ce93 (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
{

 "metadata": {

  "name": "",

  "signature": "sha256:7d02c41b7edfa1d9c3e7a01084e54b2d37ea95fa7e4f6ac43f62128207e0a35d"

 },

 "nbformat": 3,

 "nbformat_minor": 0,

 "worksheets": [

  {

   "cells": [

    {

     "cell_type": "heading",

     "level": 1,

     "metadata": {},

     "source": [

      "Chapter5:ULTRASONIC"

     ]

    },

    {

     "cell_type": "heading",

     "level": 2,

     "metadata": {},

     "source": [

      "Eg1:pg-177"

     ]

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [

      "v=5760   #velocity of propagation of ultrasonic sound wave along X-direction in m/s\n",

      "t=1.0*10**-3 #thickness of a piezo-electric quartz plate in meter\n",

      "lamda=2*t #wavelength in meter(since t=lamda/2 corresponding to fundamental frequency)\n",

      "V=v/lamda #fundamental frequency of the crystal\n",

      "print\"fundamental frequency of the crystal=\",V/10**6,\"MHz\""

     ],

     "language": "python",

     "metadata": {},

     "outputs": [

      {

       "output_type": "stream",

       "stream": "stdout",

       "text": [

        "fundamental frequency of the crystal= 2.88 MHz\n"

       ]

      }

     ],

     "prompt_number": 1

    },

    {

     "cell_type": "heading",

     "level": 2,

     "metadata": {},

     "source": [

      "Eg2:pg-177"

     ]

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [

      "Y=7.9*10**10 #Young's modulus in newton/m**2\n",

      "p=2650       #density for Quartz in Kg/m**3\n",

      "t=0.005      #thickness of a Quartz crystal in meter\n",

      "v=sqrt(Y/p)  #velocity for longitudinal vibrations in m/sec\n",

      "lamda=2*t #wavelength in meter(since t=lamda/2 corresponding to fundamental frequency)\n",

      "V=v/lamda #fundamental frequency of the crystal\n",

      "print\"fundamental frequency of the crystal=\",int(round(V/10**3)),\"KHz\""

     ],

     "language": "python",

     "metadata": {},

     "outputs": [

      {

       "output_type": "stream",

       "stream": "stdout",

       "text": [

        "fundamental frequency of the crystal= 546 KHz\n"

       ]

      }

     ],

     "prompt_number": 2

    },

    {

     "cell_type": "heading",

     "level": 2,

     "metadata": {},

     "source": [

      "Eg3:pg-177"

     ]

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [

      "f=200.*10**3 #frequency of ultrasonic sound in Hz\n",

      "S_a=340      #speed of sound in air in m/s\n",

      "S_w=1486     #speed of sound in water in m/s\n",

      "lamda_r=S_a/f#wavelength of reflected sound in metre\n",

      "print\"Wavelength of reflected sound=\",\"{:.2e}\".format(lamda_r),\"m\"\n",

      "lamda_t=S_w/f#wavelength of transmitted sound in metre\n",

      "print\"Wavelength of transmitted sound=\",\"{:.2e}\".format(lamda_t),\"m\""

     ],

     "language": "python",

     "metadata": {},

     "outputs": [

      {

       "output_type": "stream",

       "stream": "stdout",

       "text": [

        "Wavelength of reflected sound= 1.70e-03 m\n",

        "Wavelength of transmitted sound= 7.43e-03 m\n"

       ]

      }

     ],

     "prompt_number": 3

    }

   ],

   "metadata": {}

  }

 ]

}