File:Speed of sound in water.png

File on OODA WIKI

Original file(1,280 × 960 pixels, file size: 75 KB, MIME type: image/png)

Summary

Summary

File information
Description English:

Graph of the speed of sound in water vs temperature. Tabulated values (circle markers) from "The Engineering Toolbox" [1].

Smooth continuous line is a 3rd degree polynomial fit (see below) calculated on the tabulated data, accurate within 0.1%.

Template:Es

C(T) = a0 + a1T + a2T2 + a3T3 (m/s)
a0 = 1404.34
a1 = 4.579692
a2 = -0.041224
a3 = 0.000093

"""
Plot of the speed of sound versus temperature in water

The data is obtained from "The Engineering Toolbox" [1]_


References
----------
.. [1] The Engineering Toolbox. Water - Speed of Sound.
    Accesed: April 27, 2015.
    http://www.engineeringtoolbox.com/sound-speed-water-d_598.html
"""
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
 
rcParams['font.family'] = 'serif'
rcParams['font.size'] = 16 

data = np.array([
       [    0.,  1403.],
       [    5.,  1427.],
       [   10.,  1447.],
       [   20.,  1481.],
       [   30.,  1507.],
       [   40.,  1526.],
       [   50.,  1541.],
       [   60.,  1552.],
       [   70.,  1555.],
       [   80.,  1555.],
       [   90.,  1550.],
       [  100.,  1543.]])
       
temp = data[:, 0]
vel = data[:, 1]

a3, a2, a1, a0 = np.polyfit(temp, vel, 3)
temp_fit = np.linspace(0,100)
vel_fit = a0 + a1*temp_fit + a2*temp_fit**2 + a3*temp_fit**3

plt.plot(temp, vel, 'o')
plt.plot(temp_fit, vel_fit, 'k')
plt.grid(True)
plt.xlabel(r"Temperature ($^\circ$C)")
plt.ylabel(r"Speed (m/s)")
plt.savefig("Speed_of_sound_in_water.svg")
Source

Own work

Date

2014-05-10

Author

K. Krallis, SV1XV

Permission
(Reusing this file)

See below.


Licensing

Template:Cc-by-1.0

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:05, 22 March 2024Thumbnail for version as of 13:05, 22 March 20241,280 × 960 (75 KB)Isidore (talk | contribs)== {{int:filedesc}} == {{Information |Description = {{en|1=Graph of the speed of sound in water vs temperature. Tabulated values (circle markers) from "The Engineering Toolbox" [http://www.engineeringtoolbox.com/sound-speed-water-d_598.html]. Smooth continuous line is a 3rd degree polynomial fit (see below) calculated on the tabulated data, accurate within 0.1%.}} {{es|1=Gráfico de la rapidez del sonido en el agua versus temperatura. Los datos tabulados (círculos) se obtuvieron de "The...

The following page uses this file: