|
[Sponsors] |
February 11, 2020, 21:54 |
how to use acoustic lib in openfoam
|
#1 |
New Member
zein elserfy
Join Date: May 2018
Posts: 25
Rep Power: 8 |
Hi all,
Have anyone used acoustic library developed by unicfdlab? http://github.com/unicfdlab/libAcoustics I want to use it for predicting the far-field noise for flow over aerofoil.I have also found the presentation for some tutorials for using it named ofwAcoustics.pdf https://github.com/unicfdlab/Trainin...ustics-OFv1812 can anyone give some help concerning how to used and it capabilities? |
|
February 12, 2020, 00:12 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
i would dive into trying to use it in some way, and ask more specific questions along the way for the problems that appear.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 12, 2020, 19:19 |
|
#3 |
New Member
zein elserfy
Join Date: May 2018
Posts: 25
Rep Power: 8 |
||
February 13, 2020, 02:45 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
never used it.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 18, 2020, 03:45 |
|
#5 | |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Quote:
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
||
May 18, 2020, 17:41 |
|
#6 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
sorry - mistaken - thus deleted. Great work, thank you!
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
October 7, 2020, 19:51 |
|
#7 | |
New Member
Tommy
Join Date: May 2020
Location: United States
Posts: 6
Rep Power: 6 |
Quote:
Hi Matvey, Many thanks for making this library available! I am trying to use it to compute airfoil noise for a low mach number flow, using the FWH analogy. I am running into some trouble using the library with an incompressible solver (pimplefoam). The error occurs when reading the velocity field: "request for volScalarField rho from objectRegistry region0 failed" I have set a uniform volScalarField "rho" in the "0" folder, but it doesn't appear to be read by the library. I was wondering if you had any advice on using libAcoustics.so with an incompressible solver. thank you! Tommy Malkus |
||
October 8, 2020, 06:28 |
|
#8 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hello, when you use pimpleFoam, you have to specify value of density in the dictionary where other properties of the acoustic analogy are given:
Code:
rho rhoInf; //indicates that you must use constant value for density rhoInf 1; //value of density
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
October 9, 2020, 15:00 |
|
#9 | |
New Member
Tommy
Join Date: May 2020
Location: United States
Posts: 6
Rep Power: 6 |
Quote:
-Tommy |
||
November 9, 2020, 16:00 |
|
#10 | |
New Member
Tommy
Join Date: May 2020
Location: United States
Posts: 6
Rep Power: 6 |
Quote:
I had a few more quick questions if you don't mind: 1) Is there a way to run libAcoustics after a finished run, i.e. if the pressure on the FWH surface has been stored. I am running relatively large LES cases and was hoping I could run the FWH on the stored data. 2) How does the value of dRef scale pFluct for a 3D simulation/what should this be set at for a 3D sim? It seems like it is scaling the output of as 1/dRef^2. I have dRef=1 but am off by a scale factor when validating against an experiment with a different span length. My SPL spectrum is suspiciously off by a factor of 10*log(span), but this could very well be another error in the scaling somewhere which I am chasing down thanks again Tommy |
||
November 10, 2020, 10:41 |
|
#11 | |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Quote:
Hi, 1) we have this in plans, we still don't have enough time for the implementation 2) dRef can be used only for 2D simulations -- it is and attempt to normalize results, obtained in 2D OpenFOAM simulations by the depth in empty direction. For 3D it must -1.
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
||
January 27, 2021, 13:26 |
|
#12 | |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Quote:
|
||
February 21, 2021, 19:35 |
|
#13 | |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Quote:
I have a question. How do you produce triSurface for the FWH calculation? Which software is chosen? I use UG NX, but the trisurface is too coarse, having only few triangle surfaces. Thanks, Guanjiang |
||
March 2, 2021, 16:33 |
Could anyone pls provide me a case of turbulence and laminar flow
|
#14 |
New Member
thanat
Join Date: Mar 2021
Posts: 13
Rep Power: 5 |
Could anyone provide me a tutorial cases for turbulence and laminar flow through a rigid surface integrate with acoustic library. I use openFoam v2012. I spent so much time with it but still not used to it yet. So, I hope anyone can provide me some cases for me to learn about it more easier.
Thanks in advance |
|
March 3, 2021, 10:34 |
|
#15 |
New Member
thanat
Join Date: Mar 2021
Posts: 13
Rep Power: 5 |
--> FOAM FATAL ERROR: (openfoam-2012)
Could not find rho:rho From void Foam::functionObjects::forces::initialise() in file forces/forces.C at line 235. FOAM exiting I have this issue when i used acoustic lib Do you have any ideas about it `? |
|
March 3, 2021, 14:27 |
|
#16 | |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Quote:
rhoInf 1; //value of density I think this can help. delete your rho in 0 and constant folder. |
||
March 8, 2021, 19:46 |
Flow past a cylinder
|
#17 |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Hi,
I am trying to use acoustic analogy methods to a LES case of flow past a cylinder. I have tried the curle and Farassate1A methods. The observers are set around the cylinder with a distance of 100D from the origin. For the results of curle, the frequency of the tonal peak seems right, but the results of farassat are totally different. I think there may be something wrong in my fwh set. What I think may have problems are interpolationScheme, nonUniformSurfaceMotion, responseDelay. Maybe my control surface is not good. Could anyone give me some suggestions? [IMG]D:\case\transfer\openfoamonline\libacoustic\comput ational domain and control surface.tif[/IMG] [IMG]D:\case\transfer\openfoamonline\libacoustic\curle vs farassat.tif[/IMG] Code:
CurleAnalogy1 { functionObjectLibs ("libAcoustics.so"); type Curle; log true; order second; probeFrequency 2; patches ("CYLINDER"); interpolationScheme cell; surfaces ( CYLINDER { type patch; patches ("CYLINDER"); interpolate false; } ); timeStart 1.4; timeEnd 2; c0 340; dRef -1; pInf 0.0; pName p; rho rhoInf; rhoInf 1.205; CofR (0 0 0); cleanFreq 100; writeFft true; observers { R-1 { position (-2 0 0); pRef 2.0e-5; fftFreq 1024; } R-2 { position ( -1.931852e+00 5.176381e-01 0 ); pRef 2.0e-5; fftFreq 1024; } R-3 { position ( -1.732051e+00 1 0 ); pRef 2.0e-5; fftFreq 1024; } R-4 { position ( -1.414214e+00 1.414214e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-5 { position ( -1 1.732051e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-6 { position ( -5.176381e-01 1.931852e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-7 { position ( -1.225150e-16 2 0 ); pRef 2.0e-5; fftFreq 1024; } R-8 { position ( 5.176381e-01 1.931852e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-9 { position ( 1 1.732051e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-10 { position ( 1.414214e+00 1.414214e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-11 { position ( 1.732051e+00 1 0 ); pRef 2.0e-5; fftFreq 1024; } R-12 { position ( 1.931852e+00 5.176381e-01 0 ); pRef 2.0e-5; fftFreq 1024; } R-13 { position ( 2 2.450300e-16 0 ); pRef 2.0e-5; fftFreq 1024; } } } } Code:
smallLEStrisurface_farassat { type FfowcsWilliamsHawkings; functionObjectLibs ("libAcoustics.so"); log true; probeFrequency 2; timeStart 1.4;//0.0001; timeEnd 2; c0 340; dRef -1; //a coefficients for 2D case; set -1 for 3D cases pName p; pInf 0; rho rhoInf; rhoInf 1.205; CofR (0 0 0); writeFft true; patches ("CYLINDER"); interpolationScheme cell;////// surfaces ( CYLINDER1 { type sampledTriSurfaceMesh; surface smallLES_trisurface_refine2.stl; source cells; interpolate false; } ); nonUniformSurfaceMotion false;//////// U0 (7.572614108 0 0); Ufwh (.0 .0 .0); cleanFreq 100; formulationType Farassat1AFormulation; fixedResponseDelay true; responseDelay 1e-3;///////// observers { R-1 { position (-2 0 0); pRef 2.0e-5; fftFreq 1024; } R-2 { position ( -1.931852e+00 5.176381e-01 0 ); pRef 2.0e-5; fftFreq 1024; } R-3 { position ( -1.732051e+00 1 0 ); pRef 2.0e-5; fftFreq 1024; } R-4 { position ( -1.414214e+00 1.414214e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-5 { position ( -1 1.732051e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-6 { position ( -5.176381e-01 1.931852e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-7 { position ( -1.225150e-16 2 0 ); pRef 2.0e-5; fftFreq 1024; } R-8 { position ( 5.176381e-01 1.931852e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-9 { position ( 1 1.732051e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-10 { position ( 1.414214e+00 1.414214e+00 0 ); pRef 2.0e-5; fftFreq 1024; } R-11 { position ( 1.732051e+00 1 0 ); pRef 2.0e-5; fftFreq 1024; } R-12 { position ( 1.931852e+00 5.176381e-01 0 ); pRef 2.0e-5; fftFreq 1024; } R-13 { position ( 2 2.450300e-16 0 ); pRef 2.0e-5; fftFreq 1024; } } } |
|
March 8, 2021, 19:56 |
|
#18 |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
These are attached files for my former message.
|
|
March 9, 2021, 05:49 |
|
#19 |
New Member
thanat
Join Date: Mar 2021
Posts: 13
Rep Power: 5 |
Can you tell me how to plot SPL with the strouhal number. Is there any essential functions, which needs to declare in the system file ?. Also can i change the SPL data into frequency domain, If i can then which function need to be used in openfoam
|
|
March 9, 2021, 06:22 |
|
#20 | |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Quote:
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 |
||
Tags |
acoustics, libacoustics, openfoam |
|
|
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 04:18 |
Acoustic analysis using openfoam | 1994bm | OpenFOAM Running, Solving & CFD | 0 | February 15, 2015 03:36 |
acoustic pressure , velocity, etc. study using openfoam | suniljain | OpenFOAM | 0 | January 19, 2010 06:52 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |