Sign in

username:

password:



Not a member?

Search Online Books



Search tips

Free Online Books

Sponsor

DM6467T DaVinci video processor enables H.264 1080p decoding up to 60 fps/eight D1 channel encoding.
Details Here!

Chapters

See Also

Embedded SystemsFPGAElectronics
Chapter Contents:

Search Physical Audio Signal Processing

  

Book Index | Global Index


Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?

  

The Lossy 1D Wave Equation

In any real vibrating string, there are energy losses due to yielding terminations, drag by the surrounding air, and internal friction within the string. While losses in solids generally vary in a complicated way with frequency, they can usually be well approximated by a small number of odd-order terms added to the wave equation. In the simplest case, force is directly proportional to transverse string velocity, independent of frequency. If this proportionality constant is $ \mu $, we obtain the modified wave equation

$\displaystyle Ky''= \epsilon {\ddot y}+ \mu{\dot y} \protect$ (H.21)

Thus, the wave equation has been extended by a ``first-order'' term, i.e., a term proportional to the first derivative of $ y$ with respect to time. More realistic loss approximations would append terms proportional to $ {\dddot y}$, $ {\partial^5 y/\partial t^5}$, and so on, giving frequency-dependent losses.

Setting $ y(t,x) = e^{st+vx}$ in the wave equation to find the relationship between temporal and spatial frequencies in the eigensolution, the wave equation becomes

$\displaystyle K\left(v^2 y\right)$ $\displaystyle =$ $\displaystyle \epsilon \left(s^2 y\right)+ \mu\left(s y\right)
\,\,\Rightarrow\,\,Kv^2 = \epsilon s^2 + \mu s$  
$\displaystyle \,\,\Rightarrow\,\,v^2$ $\displaystyle =$ $\displaystyle \frac{\epsilon }{K} s^2 + \frac{\mu}{K} s
= \frac{\epsilon }{K} s...
...on s}} \right)
\isdef \frac{s^2}{c^2}\left(1 + {\frac{\mu}{\epsilon s}} \right)$  
$\displaystyle \,\,\Rightarrow\,\,v$ $\displaystyle =$ $\displaystyle \pm \frac{s}{c} \sqrt{1 + {\frac{\mu}{\epsilon s}}}$  

where $ c \isdef \sqrt{K/\epsilon }$ is the wave velocity in the lossless case. At high frequencies (large $ \vert s\vert$), or when the friction coefficient $ \mu $ is small relative to the mass density $ \epsilon $ at the lowest frequency of interest, we have the approximation

$\displaystyle \left(1 + {\frac{\mu}{\epsilon s}}\right)^\frac{1}{2} \approx 1 + \frac{1}{2}{\frac{\mu}{\epsilon s}}$ (H.22)

by the binomial theorem. For this small-loss approximation, we obtain the following relationship between temporal and spatial frequency:

$\displaystyle v \approx \pm \frac{1}{c}\left({s + \frac{\mu}{2\epsilon }} \right)$ (H.23)

The eigensolution is then

$\displaystyle e^{st+vx} = \exp{\left[st\pm \left({s + \frac{\mu}{2\epsilon }}\r...
...ac{x}{c}\right)\right]} \exp{\left(\pm\frac{\mu}{2\epsilon }\frac{x}{c}\right)}$ (H.24)

The right-going part of the eigensolution is

$\displaystyle e^{-{\left(\mu/2\epsilon \right)}{x/c}} e^{s \left(t - {x/c}\right)}$ (H.25)

which decays exponentially in the direction of propagation, and the left-going solution is

$\displaystyle e^{{\left(\mu/2\epsilon \right)}{x/c}} e^{s \left(t + {x/c}\right)}$ (H.26)

which also decays exponentially in the direction of travel.

Setting $ s=j\omega$ and using superposition to build up arbitrary traveling wave shapes, we obtain the general class of solutions

$\displaystyle y(t,x) = e^{-{\left(\mu/2\epsilon \right)}{x/c}} y_r\left(t-{x/c}\right) + e^{{\left(\mu/2\epsilon \right)}{x/c}} y_l\left(t+{x/c}\right)$ (H.27)

Sampling these exponentially decaying traveling waves at intervals of $ T$ seconds (or $ X=cT$ meters) gives

$\displaystyle y(t_n,x_m)$ $\displaystyle \,\mathrel{\mathop=}\,$ $\displaystyle e^{-{\left(\mu/2\epsilon \right)}{x_m/c}} y_r\left(t_n-{x_m/c}\right)
+ e^{{\left(\mu/2\epsilon \right)}{x_m/c}} y_l\left(t_n+{x_m/c}\right)$  
  $\displaystyle \,\mathrel{\mathop=}\,$ $\displaystyle e^{-{\left(\mu/2\epsilon \right)}{mX/c}} y_r\left(nT-{mX/c}\right)
+ e^{{\left(\mu/2\epsilon \right)}{mX/c}} y_l\left(nT+{mX/c}\right) \nonumber$  
  $\displaystyle \,\mathrel{\mathop=}\,$ $\displaystyle e^{-{\mu mT/2\epsilon }} y_r\left[(n-m)T\right]
+ e^{ {\mu mT/2\epsilon }} y_l\left[(n+m)T\right] \nonumber$  
  $\displaystyle \,\mathrel{\mathop=}\,$ $\displaystyle \left(e^{-{\mu T/2\epsilon }}\right)^m y^{+}(n-m)
+ \left(e^{ {\mu T/2\epsilon }}\right)^m y^{-}(n+m) \nonumber$  
  $\displaystyle \isdef$ $\displaystyle g^{m} y^{+}(n-m) + g^{-m} y^{-}(n+m)$  

The simulation diagram for the lossy digital waveguide is shown in Fig.H.5.

Figure H.5: Discrete simulation of the ideal, lossy waveguide.
\includegraphics[scale=0.9]{eps/floss}

Again the discrete-time simulation of the decaying traveling-wave solution is an exact implementation of the continuous-time solution at the sampling positions and instants, even though losses are admitted in the wave equation. Note also that the losses which are distributed in the continuous solution have been consolidated, or lumped, at discrete intervals of $ cT$ meters in the simulation. The loss factor $ g
= e^{-{\mu T/2\epsilon }}$ summarizes the distributed loss incurred in one sampling interval. The lumping of distributed losses does not introduce an approximation error at the sampling points. Furthermore, bandlimited interpolation can yield arbitrarily accurate reconstruction between samples. The only restriction is again that all initial conditions and excitations be bandlimited to below half the sampling rate.


Subsections

Order a Hardcopy of Physical Audio Signal Processing

Previous: Relation to the Finite Difference Recursion
Next: Loss Consolidation

written by Julius Orion Smith III
Julius Smith's background is in electrical engineering (BS Rice 1975, PhD Stanford 1983). He is presently Professor of Music and Associate Professor (by courtesy) of Electrical Engineering at Stanford's Center for Computer Research in Music and Acoustics (CCRMA), teaching courses and pursuing research related to signal processing applied to music and audio systems. See http://ccrma.stanford.edu/~jos/ for details.


Comments


No comments yet for this page


Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )