CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   libcompressibleTurbulenceModel.so (http://www.cfd-online.com/Forums/openfoam/82436-libcompressibleturbulencemodel-so.html)

Farshad_Noravesh November 26, 2010 04:59

libcompressibleTurbulenceModel.so
 
Hello,
I am trying to compile reactingFoam and other combustion solvers in openfoam1.7.0
The following error is common in all these compilations:
[farshad@farshad reactingFoam]$ wclean
[farshad@farshad reactingFoam]$ wmake
Making dependency list for source file reactingFoam.C
SOURCE=reactingFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/compressible/turbulenceModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/reactionThermo/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/basic/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/chemistryModel/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/ODE/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/reactingFoam.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/compressible/turbulenceModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/reactionThermo/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/basic/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/chemistryModel/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/ODE/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/reactingFoam.o -L/home/farshad/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt \
-lcompressibleRASModels -lcompressibleLESModels -lreactionThermophysicalModels -lspecie -lbasicThermophysicalModels -lchemistryModel -lODE -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/farshad/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/reactingFoam
/usr/bin/ld: Make/linux64GccDPOpt/reactingFoam.o: undefined reference to symbol 'Foam::compressible::turbulenceModel::New(Foam::Ge ometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&)'
/usr/bin/ld: note: 'Foam::compressible::turbulenceModel::New(Foam::Ge ometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&)' is defined in DSO /home/farshad/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleTurbulenceModel.so so try adding it to the linker command line
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleTurbulenceModel.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [/home/farshad/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/reactingFoam] Error 1
[farshad@farshad reactingFoam]$
.................................................. .........................................
please tell me where i can find a better source for compressibleturbulence library.
Kind Regards,
Farshad

wyldckat November 26, 2010 07:30

Greetings Farshad,

I saw your previous thread yesterday, but I postponed answering to you and eventually forgot to come back :(

Anyway, my guess is that you're building OpenFOAM 1.7.0 in a Fedora 13 or 14, which is a very relevant information! And for Fedora, you better read this thread: http://www.cfd-online.com/Forums/ope...dora-13-a.html

Best regards and good luck!
Bruno

Farshad_Noravesh November 27, 2010 15:20

except reactingFoam
 
Dear Bruno,

Thanks for your nice help .Following your advice, i could compile all combustion solvers except reactingFoam and it gives me several errors such as:

/home/farshad/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:153: error: expected ‘;’ before ‘&’ token
/home/farshad/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:159: error: expected ‘;’ before ‘const’
/home/farshad/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:159: error: ISO C++ forbids declaration of ‘volVectorField’ with no type
/home/farshad/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:159: error: expected ‘;’ before ‘&’ token

Again i thank you for your kind help.
Farshad

wyldckat November 28, 2010 10:34

Hi Farshad,

This is odd... there must have been some other error as well before that, something about a missing header file. Because those errors are indicative of missing header files that define "volScalarField" and "volVectorField".

If you are using Fedora, it would be best to use OpenFOAM 1.7.x.

Best regards,
Bruno


All times are GMT -4. The time now is 07:15.