|
[Sponsors] |
Modeling flute-like instrument using libAcoustics. No harmonics. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2018, 10:08 |
Modeling flute-like instrument using libAcoustics. No harmonics.
|
#1 |
New Member
buzz
Join Date: Feb 2018
Posts: 2
Rep Power: 0 |
Hi everyone,
I am trying to do simulation of fluid flow and acoustic field in flute-like instrument. I used two solvers pisoFoam and rhoPimpleFoam. As for fluid flow rhoPimpleFoam gave me much better solution. It created oscillations on the labium of the flute, and thanks that in the resonator pipe pressure also started to oscillate, which is correct due to theory. But results of libAcoustic calculation, are quite strange. FFT show some "harmonics" but on the level of 10kHz, and I expected first harmonic near 1,5kHz. Those harmonics, does not look like harmonics in flute. Has anyone used libAcoustics library for similar purpose? Do you have any idea what I am doing wrong? I am sending my code in tar.gz file. Also, I was trying to play this signal in Matlab or Octave. I used function soundsc, and I calculated Fs from my time step in OpenFOAM simulation, so it was 10e07. But it doesn't work, and it shows me error: unable to open audio playback stream. Any idea? I would be very grateful for any advise. If you need any more information, please let me know. Regards, danadam |
|
February 8, 2018, 09:48 |
|
#2 |
New Member
buzz
Join Date: Feb 2018
Posts: 2
Rep Power: 0 |
As for problem with Octave, I just resampled my signal from 10e7 to 44,1kHz and it worked. But still it did not resolve my main problem.
|
|
March 7, 2018, 15:33 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I received the PM you sent me, but unfortunately I'm not familiar enough with the libAcoustics library. Please try contacting the creators of that library at https://unicfd.ru/en/contacts/
__________________
|
|
February 27, 2021, 08:39 |
|
#4 | |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Quote:
Has this problem been solved? What is the input you use for the sounds function? Regards, Guanjiang |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modeling Flow/Saturation/Absorption in Fibers | Gene Dougherty | Main CFD Forum | 0 | June 6, 2003 14:49 |