How to install libAcoustics - OpenFOAM Tutorial
Автор: Guilherme “iNeewbie” Antonio
Загружено: 2023-11-17
Просмотров: 505
I'm using OpenFOAMv2112, libAcousticsv2112, FFTW 3.3.10 in Windows 11 WSL
-Download and install OpenFOAM precompiled (https://develop.openfoam.com/Development/o...)
-Download libAcoustics (https://github.com/unicfdlab/libAcoustics)
-Download FFTW (https://www.fftw.org/download.html)
-Download ThirdParty source (https://dl.openfoam.com/source/v2112/Third...)
-Move every zipped file to your $HOME directory so we can use the same commands
-Optional: create an alias to source your OpenFoam version
cd $HOME
nano .bashrc (or just open the file and edit it manually)
-write by the end of the file
alias ofv2112="source /usr/lib/openfoam/openfoam2112/etc/bashrc"
-it could be different based on where you installed your openfoam and version
-source OpenFOAM
reload bashrc: source ~/.bashrc
-using the alias we just created
ofv2112
-Unzip the download files:
cd $HOME
-unzip libAcoustics.zip
tar -zxvf ThirdParty-v2112.tgz
tar -zxvf fftw-3.3.10.tar.gz
-Install FFTW
cd fftw-3.3.10
./configure
make
sudo make all
-Rename the existing file named 'ThirdParty'
cd $WM_PROJECT_DIR/
sudo mv ThirdParty ThirdParty.bkp
-Move your ThirdParty folder to OpenFOAM directory
cd $HOME
sudo mv ThirdParty-v2112 $WM_PROJECT_DIR/
-Rename the new ThirdParty
foam
sudo mv ThirdParty-v2112 ThirdParty
-Edit makeFFTW file to your version
cd $WM_PROJECT_DIR/etc/config.sh
sudo nano FFTW
-Enter ThirdParty folder and exec makeFFTW
cd $WM_PROJECT_DIR/ThirdParty
./makeFFTW
-Go one folder back and Allwmake the libraries
cd ..
./Allwmake
If you don't have permission to do any of the following commands of this tutorial, type: chmod +x command
-Go to your libAcoustics folder and compile the library
cd $HOME/libAcoustics-digitef-dev-2112
cd Sources/lib
chmod +x wcleanAll
chmod +x wmakeAll
cd ..
cd ..
bash ./cleanLibrary.sh
bash ./makeLibrary.sh
Songs:
Track 1: "Sunset in Ipanema Por do sol em Ipanema", Mu'gambi
Track2: "Cloudy", Ponder
Track3: "Ink In My Veins", Essequibo
Track4: "Lunarize", goosetaf
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: