|
[Sponsors] |
January 4, 2022, 18:36 |
|
#41 | |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Quote:
I made some changes in \Make\file and \Make\options, But I am not sure is that works in your case. file is changed to : SoundObserver/SoundObserver.C FoamFourierAnalysis/FoamFftwDriver.C /* Acoustic analogies */ analogies/AcousticAnalogy/AcousticAnalogy.C analogies/Curle/Curle.C analogies/FfowcsWilliamsHawkings/fwhFormulation.C analogies/FfowcsWilliamsHawkings/Farassat1AFormulation.C analogies/FfowcsWilliamsHawkings/GTFormulation.C analogies/FfowcsWilliamsHawkings/FfowcsWilliamsHawkings.C /* Coupling with BEM and FFT */ samplingBEM/sampledSurface/writers/gmsh/gmshSurfaceWriter.C samplingBEM/soundPressureSampler/soundPressureSampler.C LIB = $(FOAM_USER_LIBBIN)/libAcoustics and options is changed to : fftw_root=$(FOAM_USER_LIBBIN)/fftw-3.3.3 EXE_INC = \ -I$(LIB_SRC)/fileFormats/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/compressible/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/functionObjects/forces/lnInclude \ -I$(LIB_SRC)/surfMesh/lnInclude \ -I$(fftw_root)/include LIB_LIBS = \ -lcompressibleTransportModels \ -lsampling \ -lturbulenceModels \ -lincompressibleTurbulenceModels \ -lcompressibleTurbulenceModels \ -lincompressibleTransportModels \ -lfluidThermophysicalModels \ -lspecie \ -lfileFormats \ -lfiniteVolume \ -lmeshTools \ -lforces \ -lsurfMesh \ -L$(fftw_root)/lib \ -lfftw3 |
||
January 4, 2022, 18:56 |
|
#42 | |
New Member
zhang runze
Join Date: Jan 2022
Posts: 4
Rep Power: 4 |
Quote:
I checked one by one but they are the same with your post, could you please tell me where did you modified? file: SoundObserver/SoundObserver.C FoamFourierAnalysis/FoamFftwDriver.C /* Acoustic analogies */ analogies/AcousticAnalogy/AcousticAnalogy.C analogies/Curle/Curle.C analogies/FfowcsWilliamsHawkings/fwhFormulation.C analogies/FfowcsWilliamsHawkings/Farassat1AFormulation.C analogies/FfowcsWilliamsHawkings/GTFormulation.C analogies/FfowcsWilliamsHawkings/FfowcsWilliamsHawkings.C /* Coupling with BEM and FFT */ samplingBEM/sampledSurface/writers/gmsh/gmshSurfaceWriter.C samplingBEM/soundPressureSampler/soundPressureSampler.C LIB = $(FOAM_USER_LIBBIN)/libAcoustics options: fftw_root=$(FOAM_USER_LIBBIN)/fftw-3.3.3 EXE_INC = \ -I$(LIB_SRC)/fileFormats/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/compressible/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/functionObjects/forces/lnInclude \ -I$(LIB_SRC)/surfMesh/lnInclude \ -I$(fftw_root)/include LIB_LIBS = \ -lcompressibleTransportModels \ -lsampling \ -lturbulenceModels \ -lincompressibleTurbulenceModels \ -lcompressibleTurbulenceModels \ -lincompressibleTransportModels \ -lfluidThermophysicalModels \ -lspecie \ -lfileFormats \ -lfiniteVolume \ -lmeshTools \ -lforces \ -lsurfMesh \ -L$(fftw_root)/lib \ -lfftw3 |
||
January 4, 2022, 19:14 |
|
#43 |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Sorry, I compiled version 2.3 and version 4 to Openfoam 6, and I forget which one I changed. I have attached them. If they don't work, maybe you can try to check your environment. I couldn't do this on a computer because it didn't have fftw-3.
|
|
May 1, 2022, 09:44 |
|
#44 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
the Xfer method have been removed by this commit :
https://github.com/OpenFOAM/OpenFOAM...1c806ff2dd24ea faces.xfer() is now move(faces)
__________________
« Debugging is what CFD is about. 5 minutes to modify your code, 5 months to find why it does not work anymore. » |
|
August 15, 2022, 14:09 |
|
#45 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Quote:
I run the example of cylinder case in version v2112 , in the acousticData folder, there is only time, pressure fluctuation data on the overserved points. There is no Freq, and spl. Could you help me to figure out what is the problem? thanks! hewei |
||
November 26, 2022, 18:38 |
|
#46 |
Member
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6 |
Hi,
This may be a modification of the new version. As you already have time and pressure fluctuations. You can calculate spl or PSD using matlab. https://www.mathworks.com/matlabcent...vel-calculator Regards, Guanjiang |
|
November 28, 2022, 07:13 |
|
#47 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Hi Guanjiang,
I solved it by activating the "writeFfft"in commonSettings file. Either I can calculate spl equation using the p' value. Thank you very much! regards, W. Quote:
|
||
September 29, 2023, 04:50 |
compile error libAcoustics
|
#48 |
Member
Ervin Adorean
Join Date: Mar 2009
Posts: 76
Rep Power: 17 |
Hello,
I want to compile libAcoustics-digitef-dev-2112 on OpenFOAM-v2112. I get error /usr/bin/ld cannot find -lrandomProcesses. Can someone please help me out? Thank you! Ervin |
|
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 |