Coder Social home page Coder Social logo

rinaldipp / tmm Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 4.0 538 KB

Transfer Matrix Method for design and prediction of multilayered acoustic treatments.

License: MIT License

Python 100.00%
acoustics room-acoustics treaments transfer-matrix-method impedance absorption

tmm's Introduction

Transfer Matrix Method (TMM)

Toolbox for design and prediction of multilayered acoustic treatments. Also contains a material model based on the GRAS database.

Dependencies

  • numpy
  • scipy
  • mpmath
  • matplotlib
  • pandas
  • xlsxwriter
  • h5py

Installation

pip install numpy scipy mpmath matplotlib pandas xlsxwriter
pip install git+https://github.com/rinaldipp/tmm.git

Example

from tmm.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.

Contact

For questions about usage, bugs, licensing and/or contributions contact me at [email protected].

tmm's People

Contributors

rinaldipp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.