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

how to use acoustic lib in openfoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2021, 00:44
Default
  #21
New Member
 
thanat
Join Date: Mar 2021
Posts: 12
Rep Power: 2
thanat is on a distinguished road
Quote:
Originally Posted by guanjiang.chen View Post
Hi thanat,



After simulation finished, you can find the result in the acousticData folder. For each observer, there is a file which has Freq, p', spl. just drawing it is OK. What makes me confused is that the spl in the file shows a symmetry distribution in the frequency range.



Regards,

Guanjiang


IMG_0182.jpg is it gonna be like this one?
Also,what does this code really mean.
IMG_1616046182.146886.jpg
In the line which contains the cod "fftFreq 1024"
thanat is offline   Reply With Quote

Old   March 18, 2021, 17:45
Default
  #22
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 35
Rep Power: 3
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by thanat View Post
Attachment 83387 is it gonna be like this one?
Also,what does this code really mean.
Attachment 83388
In the line which contains the cod "fftFreq 1024"
Hi thanat,

I don't know the first picture you show is from which case. It seems to be the spl result. The spl I got is similar.

I also want to know what the fftFreq means. I think it is a variable for the fft process. As I calculated the spl using my own code, I didn't focus on this number too much. Also, I tried different values for the fftFreq, the results didn't change. If you get the exact answer, please tell me.

Regards,
Guanjiang
Attached Images
File Type: jpg spl.jpg (41.4 KB, 12 views)
guanjiang.chen is offline   Reply With Quote

Old   March 21, 2021, 14:41
Default
  #23
New Member
 
thanat
Join Date: Mar 2021
Posts: 12
Rep Power: 2
thanat is on a distinguished road
Quote:
Originally Posted by guanjiang.chen View Post
Hi thanat,



I don't know the first picture you show is from which case. It seems to be the spl result. The spl I got is similar.



I also want to know what the fftFreq means. I think it is a variable for the fft process. As I calculated the spl using my own code, I didn't focus on this number too much. Also, I tried different values for the fftFreq, the results didn't change. If you get the exact answer, please tell me.



Regards,

Guanjiang


OH can I have your setting pls. I would be great for me. Pheethanat1433@gmail.com
Thanks in advance
thanat is offline   Reply With Quote

Old   March 23, 2021, 07:37
Default
  #24
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 35
Rep Power: 3
guanjiang.chen is on a distinguished road
Hi, I have put my settings in the first page of this thread.
guanjiang.chen is offline   Reply With Quote

Old   March 23, 2021, 12:47
Default
  #25
New Member
 
thanat
Join Date: Mar 2021
Posts: 12
Rep Power: 2
thanat is on a distinguished road
oh thanks, And what is your blockmesh dimension and also the setting in 0 and constant file.
I just want to validate with your result shown earlier. i cannot get the result like you with my setting maybe it is about the observer location i set.
thanat is offline   Reply With Quote

Old   March 23, 2021, 17:34
Default
  #26
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 35
Rep Power: 3
guanjiang.chen is on a distinguished road
https://github.com/unicfdlab/Trainin...cs-OF4.1/cases
https://github.com/unicfdlab/libAcou.../Tutorials-4.1

What I show is from tutorials. I recommend you run the FFWH+cfdbem_3D.
guanjiang.chen is offline   Reply With Quote

Old   March 23, 2021, 22:50
Default
  #27
New Member
 
thanat
Join Date: Mar 2021
Posts: 12
Rep Power: 2
thanat is on a distinguished road
Now, In this time,i just dont want to use BEM for some reasons. I will try it.
thanat is offline   Reply With Quote

Old   March 24, 2021, 07:30
Default
  #28
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 35
Rep Power: 3
guanjiang.chen is on a distinguished road
You can delete the BEM set. just run the curle and fwh.
guanjiang.chen is offline   Reply With Quote

Old   March 25, 2021, 13:47
Default
  #29
New Member
 
thanat
Join Date: Mar 2021
Posts: 12
Rep Power: 2
thanat is on a distinguished road
Can i see your blockMesh of the cylinder,also velocity and turbulence setting.
thanat is offline   Reply With Quote

Old   March 27, 2021, 12:08
Default
  #30
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 35
Rep Power: 3
guanjiang.chen is on a distinguished road
I use ICEM to draw the mesh, and use fluent3DMeshToFoam to import the mesh to Openfoam.
guanjiang.chen is offline   Reply With Quote

Old   April 7, 2021, 05:38
Default
  #31
New Member
 
thanat
Join Date: Mar 2021
Posts: 12
Rep Power: 2
thanat is on a distinguished road
Also, is there any functions to use hanning window in the lib?
thanat is offline   Reply With Quote

Old   April 7, 2021, 06:23
Default
  #32
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 35
Rep Power: 3
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by thanat View Post
Also, is there any functions to use hanning window in the lib?
It may be related to the fftFreq. The code of fft process may be in the FoamFftwDriver.C or AcousticAnalogy.C files. You can also use pwelch function in matlab.
guanjiang.chen is offline   Reply With Quote

Reply

Tags
acoustics, libacoustics, openfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
Acoustic analysis using openfoam 1994bm OpenFOAM Running, Solving & CFD 0 February 15, 2015 02:36
acoustic pressure , velocity, etc. study using openfoam suniljain OpenFOAM 0 January 19, 2010 05:52
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 14:31.