how to use acoustic lib in openfoam
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? |
i would dive into trying to use it in some way, and ask more specific questions along the way for the problems that appear.
|
Quote:
is it reliable tool to use? |
never used it.
|
Quote:
|
sorry - mistaken - thus deleted. Great work, thank you!
|
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 |
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 |
Quote:
-Tommy |
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 |
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. |
Quote:
|
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 |
Could anyone pls provide me a case of turbulence and laminar flow
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 |
--> 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 `? |
Quote:
rhoInf 1; //value of density I think this can help. delete your rho in 0 and constant folder. |
Flow past a cylinder
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 Code:
smallLEStrisurface_farassat |
4 Attachment(s)
These are attached files for my former message.
|
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
|
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 |
All times are GMT -4. The time now is 23:02. |