CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Modeling flute-like instrument using libAcoustics. No harmonics.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2018, 10:08
Default Modeling flute-like instrument using libAcoustics. No harmonics.
  #1
New Member
 
buzz
Join Date: Feb 2018
Posts: 2
Rep Power: 0
danadam is on a distinguished road
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
Attached Files
File Type: pdf fluteSimulationFFT.pdf (30.4 KB, 43 views)
File Type: pdf fluteRealFFT.pdf (15.2 KB, 36 views)
File Type: gz caseCurleLong4.tar.gz (5.5 KB, 24 views)
danadam is offline   Reply With Quote

Old   February 8, 2018, 09:48
Default
  #2
New Member
 
buzz
Join Date: Feb 2018
Posts: 2
Rep Power: 0
danadam is on a distinguished road
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.
danadam is offline   Reply With Quote

Old   March 7, 2018, 15:33
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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/
guanjiang.chen likes this.
__________________
wyldckat is offline   Reply With Quote

Old   February 27, 2021, 08:39
Default
  #4
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by danadam View Post
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
Hi,

Has this problem been solved? What is the input you use for the sounds function?

Regards,
Guanjiang
guanjiang.chen is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:58.