File:Acoustics filter lowpass.svg

Summary

Description
English: Low acoustic filter.
Date
Source Own work
Author Nicoguaro
SVG development
InfoField
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt

plt.rcParams['mathtext.fontset'] = 'cm'

low_pass_trans = lambda S1, S, k, L: 1/(1 + (0.5*(S1 - S)/S*k*L)**2)
low_pass_cutoff = lambda S1, S, c, L: c*S/(np.pi*L*(S1 - S))

c = 343.4
L = 0.2
S1 = 5.0
S = 1.0
fc = low_pass_cutoff(S1, S, c, L)
freq = np.logspace(0, 4, 101)
k = 2 * np.pi * freq/c
T = low_pass_trans(5, 1, k, L)
plt.semilogx(freq, T)
plt.text(140, 0.5,  "Cut-off frequency: {:g} Hz".format(fc))
plt.grid(which="both", alpha=0.4)
plt.xlabel("Frequency (Hz)")
plt.ylabel("$T_\pi$")
plt.title("Low-pass filter for $S_1/S=5$")
plt.savefig("Acoustics filter lowpass.svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Category:CC-BY-4.0#Acoustics%20filter%20lowpass.svgCategory:Self-published work
Category:Acoustics
Category:Acoustics Category:CC-BY-4.0 Category:Self-published work Category:Valid SVG created with Matplotlib code