Repository navigation
Conversation
pytta.absorbers computes the surface impedance and absorption of layered absorbers by the transfer matrix method, as the Impedance Calculator of the ITA-Toolbox: layers of air, porous material (Delany-Bazley, Miki with the constants of the paper, or Komatsu), microperforated panels (Maa) and limp masses on a rigid backing, at normal or oblique incidence, and the random-incidence absorption by Paris' formula. Tests check that a rigid-backed air layer is purely reactive, that the transfer matrix gives Zc coth(Gamma d) for a porous layer and Zc for a very thick one, that the models tend to air, the Poiseuille limit of the microperforated panel, and Paris' formula against its closed form for a real impedance. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
pytta.absorbers: the surface impedance and absorption of layered absorbers by the transfer matrix method, as the Impedance Calculator of the ITA-Toolbox (applications/Analytic/Impedance_Calculator).porous(f, sigma, model='miki'): the characteristic impedance and wavenumber of a porous material of flow resistivity σ, by the empirical models of Delany and Bazley (1970), Miki (1990, with the constants of the paper, Eqs. (27) and (28)) or Komatsu (2008, valid up to f / σ = 100, where it reaches air).mpp_impedance(f, diameter, thickness, porosity): the series impedance of a microperforated panel by Maa (1998).surface_impedance(f, layers, angle=0): the surface impedance of layers on a rigid backing, given from the surface down as('air', d),('porous', model, sigma, d),('mpp', diameter, thickness, porosity)or('mass', m). At oblique incidence the air and porous layers keep the trace wavenumber, while the panels react locally.absorption(Zs, angle=0)andrandom_incidence_absorption(f, layers=None, Zs=None): the absorption coefficient at an angle and Paris' integral over the angles of incidence.The Komatsu model and the 1D transmission line were checked against Aretz (2012), Eqs. (7.12) to (7.15), and the Miki constants against the paper, both from my library. The ITA calculator also has the Attenborough model, permeable mass layers and bending plates, after Mechel's Formulas of Acoustics, which are not included.
The tests in
tests/test_absorbers.pyprint the measured differences:Checked with Python 3.12, numpy 1.26 and scipy 1.17. The 7 failures of
development(3 intest_h5io.py, 4 intest_pyttasave.py) are the same with and without this change.Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com