abdull12 |
July 16, 2023 10:53 |
Installation Problems during Solver installation in OpenFOAM
Hi all,
I hope you are all doing good. I have been trying to install a custom solver named "porousGasificationFoam" ( https://github.com/btuznik/porousGasificationFoam) on Openfoam 2212. I am using Ubuntu 22.04.2 LTS on WSL for the Openfoam. The mentioned solver and its libraries were made on Openfoam8 originally. The installation guidelines are listed in the document on this link ( https://github.com/btuznik/porousGas...oam_manual.pdf).
However, when I run the installation command "./Allwmake" I encounter the following errors.
Code:
./Allwmake: 3: source: not found
wmake libso (fieldPorosityModel)
ln: ./lnInclude
Making dependencies: fieldPorosityModel.C
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2212 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/usr/lib/openfoam/openfoam2212/src/triSurface/lnInclude -I/usr/lib/openfoam/openfoam2212/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2212/src/finiteVolume/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2212/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2212/src/OSspecific/POSIX/lnInclude -fPIC -c fieldPorosityModel.C -o Make/linux64GccDPInt32Opt/fieldPorosityModel.o
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2212 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/usr/lib/openfoam/openfoam2212/src/triSurface/lnInclude -I/usr/lib/openfoam/openfoam2212/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2212/src/finiteVolume/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2212/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2212/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/fieldPorosityModel.o -L/usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib \
-ltriSurface -lmeshTools -lfiniteVolume -o /home/abi/OpenFOAM/abi-v2212/platforms/linux64GccDPInt32Opt/lib/libfieldPorosityModel.so
/usr/bin/ld: cannot find -ltriSurface: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [/usr/lib/openfoam/openfoam2212/wmake/makefiles/general:206: /home/abi/OpenFOAM/abi-v2212/platforms/linux64GccDPInt32Opt/lib/libfieldPorosityModel.so] Error 1
wmake libso (radiationModels)
ln: ./lnInclude
Making dependencies: heterogeneousMeanTemp.C
wmkdepend: could not open 'heterogeneousAbsorptionEmissionModel.H' for source file 'heterogeneousRadiationModels/heterogeneousMeanTemp/heterogeneousMeanTemp.C': No such file or directory
wmkdepend: could not open 'scatterModel.H' for source file 'heterogeneousRadiationModels/heterogeneousMeanTemp/heterogeneousMeanTemp.C': No such file or directory
Making dependencies: heterogeneousP1.C
wmkdepend: could not open 'heterogeneousAbsorptionEmissionModel.H' for source file 'heterogeneousRadiationModels/heterogeneousP1/heterogeneousP1.C': No such file or directory
wmkdepend: could not open 'scatterModel.H' for source file 'heterogeneousRadiationModels/heterogeneousP1/heterogeneousP1.C': No such file or directory
Making dependencies: heterogeneousNoRadiation.C
Making dependencies: heterogeneousRadiationModelNew.C
Making dependencies: heterogeneousRadiationModel.C
wmkdepend: could not open 'heterogeneousAbsorptionEmissionModel.H' for source file 'heterogeneousRadiationModels/heterogeneousRadiationModel/heterogeneousRadiationModel.C': No such file or directory
wmkdepend: could not open 'scatterModel.H' for source file 'heterogeneousRadiationModels/heterogeneousRadiationModel/heterogeneousRadiationModel.C': No such file or directory
wmkdepend: could not open 'sootModel.H' for source file 'heterogeneousRadiationModels/heterogeneousRadiationModel/heterogeneousRadiationModel.C': No such file or directory
make: *** No rule to make target 'Make/linux64GccDPInt32Opt/heterogeneousAbsorptionEmissionModels/heterogeneousAbsorptionEmissionModel/heterogeneousAbsorptionEmissionModel.C.dep', needed by 'Make/linux64GccDPInt32Opt/heterogeneousAbsorptionEmissionModels/heterogeneousAbsorptionEmissionModel/heterogeneousAbsorptionEmissionModel.o'. Stop.
./Allwmake: 23: ./Allwmake: Permission denied
wmake libso (pyrolysisModels)
ln: ./lnInclude
Making dependencies: volPyrolysis.C
wmkdepend: could not open 'compressibleTransportModel.H' for source file 'pyrolysisModel/volPyrolysis/volPyrolysis.C': No such file or directory
wmkdepend: could not open 'HGSSolidThermo.H' for source file 'pyrolysisModel/volPyrolysis/volPyrolysis.C': No such file or directory
wmkdepend: could not open 'heatTransferModel.H' for source file 'pyrolysisModel/volPyrolysis/volPyrolysis.C': No such file or directory
wmkdepend: could not open 'specieTransferModel.H' for source file 'pyrolysisModel/volPyrolysis/volPyrolysis.C': No such file or directory
wmkdepend: could not open 'BasicSolidChemistryModel.H' for source file 'pyrolysisModel/volPyrolysis/volPyrolysis.C': No such file or directory
Making dependencies: heterogeneousPyrolysisModelNew.C
wmkdepend: could not open 'compressibleTransportModel.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModelNew.C': No such file or directory
wmkdepend: could not open 'HGSSolidThermo.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModelNew.C': No such file or directory
wmkdepend: could not open 'heatTransferModel.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModelNew.C': No such file or directory
wmkdepend: could not open 'specieTransferModel.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModelNew.C': No such file or directory
Making dependencies: heterogeneousPyrolysisModel.C
wmkdepend: could not open 'compressibleTransportModel.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.C': No such file or directory
wmkdepend: could not open 'HGSSolidThermo.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.C': No such file or directory
wmkdepend: could not open 'heatTransferModel.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.C': No such file or directory
wmkdepend: could not open 'specieTransferModel.H' for source file 'pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.C': No such file or directory
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2212 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/thermophysicalModels/solid/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/pyrolysisModels/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/thermophysicalModels/HGSSolidThermo/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/thermophysicalModels/solidChemistryModel/lnInclude -I/usr/lib/openfoam/openfoam2212/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2212/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/reactionThermo/lnInclude -I/usr/lib/openfoam/openfoam2212/src/MomentumTransportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/specie/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/solidSpecie/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2212/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2212/src/OSspecific/POSIX/lnInclude -fPIC -c pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.C -o Make/linux64GccDPInt32Opt/pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.o
In file included from /usr/lib/openfoam/openfoam2212/src/thermophysicalModels/basic/lnInclude/psiThermo.H:44,
from /usr/lib/openfoam/openfoam2212/src/thermophysicalModels/reactionThermo/lnInclude/psiReactionThermo.H:44,
from pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.H:49,
from pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.C:26:
/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/basic/lnInclude/fluidThermo.H:42:10: fatal error: compressibleTransportModel.H: No such file or directory
42 | #include "compressibleTransportModel.H"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/openfoam/openfoam2212/wmake/rules/General/transform:38: Make/linux64GccDPInt32Opt/pyrolysisModel/heterogeneousPyrolysisModel/heterogeneousPyrolysisModel.o] Error 1
Making dependencies: porousGasificationFoam.C
wmkdepend: could not open 'fluidThermoMomentumTransportModel.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'psiReactionThermophysicalTransportModel.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'compressibleTransportModel.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'turbulentFluidThermoModel.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'BasicSolidChemistryModel.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'HGSSolidThermo.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'heatTransferModel.H' for source file 'porousGasificationFoam.C': No such file or directory
wmkdepend: could not open 'specieTransferModel.H' for source file 'porousGasificationFoam.C': No such file or directory
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2212 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/usr/lib/openfoam/openfoam2212/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2212/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2212/src/sampling/lnInclude -I/usr/lib/openfoam/openfoam2212/src/MomentumTransportModels/momentumTransportModels/lnInclude -I/usr/lib/openfoam/openfoam2212/src/MomentumTransportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2212/src/ThermophysicalTransportModels/lnInclude -I/usr/lib/openfoam/openfoam2212/src/ThermophysicalTransportModels/psiReactionThermo/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/specie/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/reactionThermo/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/solidThermo/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2212/src/thermophysicalModels/chemistryModel/lnInclude -I/usr/lib/openfoam/openfoam2212/src/ODE/lnInclude -I/usr/lib/openfoam/openfoam2212/src/combustionModels/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/thermophysicalModels/HGSSolidThermo/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/pyrolysisModels/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/thermophysicalModels/solid/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/thermophysicalModels/solidChemistryModel/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/radiationModels/lnInclude -I/home/abi/OpenFOAM/abi-v2212/applications/porousGasificationMedia/fieldPorosityModel/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2212/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2212/src/OSspecific/POSIX/lnInclude -fPIC -c porousGasificationFoam.C -o Make/linux64GccDPInt32Opt/porousGasificationFoam.o
porousGasificationFoam.C:39:10: fatal error: fluidThermoMomentumTransportModel.H: No such file or directory
39 | #include "fluidThermoMomentumTransportModel.H"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/openfoam/openfoam2212/wmake/rules/General/transform:38: Make/linux64GccDPInt32Opt/porousGasificationFoam.o] Error 1
./Allwmake: 32: ./Allwmake: Permission denied
There have been some errors like the permission errors that I have been able to resolve by giving access permissions of write, read and execute however, still the "fatal errors" like "fatal error: compressibleTransportModel.H: No such file or directory
42 | #include "compressibleTransportModel.H"" are not being resolved.
This solver is an important starting point for my thesis on Biomass Combustion in porous media so I am really in need of help with it.
|