Chapter 14, Ultrasonics

Example 1, page 510

In [1]:
from __future__ import division
# Fundamental frequency
#given data :
t=1.6*10**-3 # in m
lamda=2*t # in m
v=5760 # in m/s
n1=v*10**-6/lamda 
print "Fundamental frequency, n1 = %0.2f MHz " %n1
Fundamental frequency, n1 = 1.80 MHz 

Example 2, page 510

In [3]:
#  distance
#given data :
th=40 #cm
t1=30 #micro-seconds
t2=80 #micro seconds
x=((2*th*10**-2*t1*10**-6)/(2*t2*10**-6))*100 #cm
print "Distance %0.2f cm " %x
Distance 15.00 cm 

Example 3, page 510

In [4]:
# Thickness
#given data :
v=5000 # in m/s
N=50000 # in Hz
t=v/(2*N) 
print "Thickness of steel plate, t = %0.2f m " %t
Thickness of steel plate, t = 0.05 m 

Example 4, page

In [6]:
from math import pi
#  Capacitance
#given data :
L=1 # in H
n=10**6 # in Hz
C=1*10**12/(4*pi**2*n**2*L) 
print "The capacitance, C = %0.3f micro-F " %C
The capacitance, C = 0.025 micro-F