File:Acoustics filter lowpass.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 576 × 432 pixels, file size: 57 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Low acoustic filter.
Date
Source Own work
Author Nicoguaro
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
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[edit]

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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:31, 17 August 2018Thumbnail for version as of 22:31, 17 August 2018576 × 432 (57 KB)Nicoguaro (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata