Transfer Matrix Models for modeling acoustic treatments
Project description
Transfer Matrix Method for Acoustics (TMMA)
Toolbox for design and prediction of multilayered acoustic treatments. Also contains a material model based on the GRAS database.
Acknowledgement
This repository is a fork from from rinaldipp/tmm.
Its purpose is to rename the tmm package to tmma,
making it possible to upload it to the https://pypi.org while
following the original repository as closely as possible.
The name tmm cannot be used on https://pypi.org
because a package with that name already exists.
Installation
pip install tmma
Example
from tmma.tmm import TMM
# Define the frequency range, resolution and sound incidence
treatment = TMM(fmin=20, fmax=5000, df=1, incidence="diffuse", incidence_angle=[0, 78, 1],
filename="example_perforated_resonator")
# Define the layers - from top to bottom
treatment.perforated_panel_layer(t=19, d=8, s=24, method="barrier")
treatment.porous_layer(model="mac", t=50, sigma=27)
treatment.air_layer(t=50)
# Compute, plot and export data
treatment.compute(rigid_backing=True, show_layers=True)
treatment.plot(plots=["alpha"], save_fig=True)
treatment.save2sheet(n_oct=3)
treatment.save()
bands, filtered_alpha = treatment.filter_alpha(view=True, n_oct=3)
For more examples see the example files.
References
[1] R. Petrolli, A. Zorzo and P. D'Antonio, " Comparison of measurement and prediction for acoustical treatments designed with Transfer Matrix Models ", in Euronoise, October 2021.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmma-0.0.3.0.tar.gz.
File metadata
- Download URL: tmma-0.0.3.0.tar.gz
- Upload date:
- Size: 304.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d50fe6a998a05ab154500303faf98f819ebf9c4728af315cb2c1254d34e578a9
|
|
| MD5 |
434a3e35020ff6739622156f7d6a8a20
|
|
| BLAKE2b-256 |
85a1b31a677df4f7f2cbe9d5e896ad5b1e3927df452a99cfe29cafdfad1f1e8a
|
File details
Details for the file tmma-0.0.3.0-py3-none-any.whl.
File metadata
- Download URL: tmma-0.0.3.0-py3-none-any.whl
- Upload date:
- Size: 316.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e88642e298a94e654dbdf1ae3da1084c1b5d3a2781b99ebfe5ba52570830235f
|
|
| MD5 |
e6112f82c0c76d81eec3d2ca491d4f6f
|
|
| BLAKE2b-256 |
aa6103275d14da3dfa97c41cf602dbaee89f6d3cd6cf52d03da1aeaf7bb8d523
|