CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

libcompressibleTurbulenceModel.so

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2010, 04:59
Unhappy libcompressibleTurbulenceModel.so
  #1
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 16
Farshad_Noravesh is on a distinguished road
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
Farshad_Noravesh is offline   Reply With Quote

Old   November 26, 2010, 07:30
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   November 27, 2010, 15:20
Smile except reactingFoam
  #3
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 16
Farshad_Noravesh is on a distinguished road
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
Farshad_Noravesh is offline   Reply With Quote

Old   November 28, 2010, 10:34
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 22:51.