Skip to content

gavinmacaulay/SphereTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sphere target strength calculator

Static badge python GitHub Actions Workflow Status

The sphereTS package calculates the acoustic target strength (TS) of elastic spheres immersed in a fluid. It is intended for calculating the TS of the spheres used for calibrating echosounders used for quantitative estimates of marine organism backscatter.

Install from pypi:

pip install spherets

and run the GUI from a terminal (type spherets) to get the main window:

main

TS values are shown in a separate window:

results

The underlying target strength functions are also available, for example:

import matplotlib.pyplot as plt
from sphereTS import sphere_ts as sts

wc = sts.material_properties()['Tungsten carbide']

c = 1470  # [m/s] sound speed in water
rho = 1027  # [kg/m^3] density of water
a = 0.0381/2  # [m] radius of sphere

ts = sts.sphere_ts(38e3, a, c, wc['c1'], wc['c2'], rho, wc['rho1'])

print(ts)

f, tsf = sts.freq_response(12e3, 200e3, a, c, 
                           wc['c1'], wc['c2'], rho, wc['rho1'])

plt.plot(f/1e3, tsf)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages