Repository navigation
Conversation
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.e2611, the normal incidence sound transmission of ASTM E2611-09 with four microphones and the transfer matrix method, whichita_impedance_tube_transmissionandita_kundt_calc_impedance_transmissionof the ITA-Toolbox provide:speed_of_sound(temperature)andair_density(temperature, pressure): Eq 4 and 5.wave_components(f, H, l1, s1, l2, s2, c): the forward and backward waves on both sides of the specimen from the transfer functions of the four microphones, Eq 17 to 20.transfer_matrix(f, Ha, Hb=None, l1, s1, l2, s2, d, c, rho): the transfer matrix of the specimen by the two-load method (Eq 22), or by the one-load method for a symmetric specimen (Eq 24).transmission_loss,reflection_coefficient,absorption_coefficientandmaterial_properties: Eq 25 to 30, the transmission loss of the anechoic-backed specimen, the reflection and absorption of the hard-backed one, and the wavenumber and characteristic impedance in the material.As in Fig. 4 of the standard, l1 and l2 are both measured from the front face of the specimen, so l2 includes its thickness. The equations were taken from the text of the standard. The two ITA functions belong to an application of the ITA-Toolbox whose license is "all rights reserved", so only their help text was read.
The tests in
tests/test_e2611.pysynthesize the microphone pressures from a known specimen matrix with Eq 21 and the plane wave field of the tube, and print 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