unicfdlab / libAcoustics

libAcoustics - OpenFOAM library for far-field noise computation
140 stars 57 forks source link

Elementary FWH surface source. #71

Closed Charly-28 closed 2 years ago

Charly-28 commented 2 years ago

Hello, I would like to access the elementary FWH surface source. How to extract the acoustic contribution of an element from the surface source? Thanks

unicfdlab commented 2 years ago

Hi, it is not possible to extract contribution of a single element using libAcoustics standard interfaces. However, you can write your own code, which takes data from internal libAcoustics data structures qds and fds, which store contribution from monopole and dipole face sources, respectively. See, for example https://github.com/unicfdlab/libAcoustics/blob/digitef-dev-2012/Sources/lib/analogies/FfowcsWilliamsHawkings/Farassat1AFormulation.C lines 232 and 283.

Also, you can create custom STL containing only 1 triangle of interest

Charly-28 commented 2 years ago

Hi, thanks for you reply. I will write my own code based on your example. Thanks, Charly

unicfdlab commented 2 years ago

Just a few hours ago I've found this tutorial on libAcoustics API by Chalmers TU: http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2021/DebarsheeGhosh/OSCFD21_FinalPresentation.pdf

Charly-28 commented 2 years ago

Very nice. Thanks again. Charly