|
[Sponsors] |
Error in compiling pisoFoam after some changes |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2014, 06:05 |
Error in compiling pisoFoam after some changes
|
#1 |
New Member
anonymous
Join Date: Mar 2011
Posts: 11
Rep Power: 15 |
I have installed openfoam 1.7.0 into ubuntu 12.04 LTS to perform LES. To allow timesteps to be determined by CFL number (maxCo), I modify the file:
/opt/openfoam170/applications/solvers/incompressible/pisoFoam/pisoFoam to add the lines: Code:
#include "readTimeControls.H" Code:
#include "setDeltaT.H" And then compile pisoFoam with the following inputs in the terminal: Code:
cd $FOAM_SOLVERS/incompressible/pisoFoam sudo bash wmake Code:
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/opt/openfoam170/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam170/src/transportModels -I/opt/openfoam170/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam170/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam170/src/OpenFOAM/lnInclude -I/opt/openfoam170/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/pisoFoam.o -L/opt/openfoam170/lib/linux64GccDPOpt \ -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /opt/openfoam170/applications/bin/linux64GccDPOpt/pisoFoam /usr/bin/ld: Make/linux64GccDPOpt/pisoFoam.o: undefined reference to symbol 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)' /usr/bin/ld: note: 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)' is defined in DSO /opt/openfoam170/lib/linux64GccDPOpt/openmpi-system/libPstream.so so try adding it to the linker command line /opt/openfoam170/lib/linux64GccDPOpt/openmpi-system/libPstream.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [/opt/openfoam170/applications/bin/linux64GccDPOpt/pisoFoam] Error 1 Thank you |
|
July 24, 2014, 03:47 |
I have got the answer
|
#2 |
New Member
anonymous
Join Date: Mar 2011
Posts: 11
Rep Power: 15 |
The material here works for me:
http://www.cfd-online.com/Forums/openfoam-installation/78360-openfoam-1-7-x-fedora-13-a.html In the file: wmake/rules/linux64Gcc/general, I do Code:
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so $(FOAM_LIBBIN)/libcompressibleTurbulenceModel.so -lincompressibleTurbulenceModel Then I can compile. For curiousity, I have a question. The drive for this change is for Fedora 13 (and in fact fixed as seen in their discussion), however, I need this change for installing openfoam-1.7.0 in ubuntu 12.04 LTS. Why? |
|
July 24, 2014, 06:09 |
does not recognize turbulence model due to compilation problem
|
#3 |
New Member
anonymous
Join Date: Mar 2011
Posts: 11
Rep Power: 15 |
After I compile pisoFoam with wmake and run, I found:
Code:
--> FOAM FATAL ERROR: Unknown turbulenceModel type RASModel Valid turbulenceModel types: 1 (laminar) I've changed the link lines in wmake/rules/linux64Gcc/c++ to Code:
LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed Code:
LINKLIBSO = $(CC) -shared -Xlinker --add-needed -Xlinker --no-as-needed LINKEXE = $(CC) -Xlinker --add-needed -Xlinker --no-as-needed However, my way of changing pisoFoam is still problematic, such that the time step does not change correctly. I am still finding a way. |
|
Tags |
compile, error, openfoam-1.7.0, ubuntu 12.04, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Differences in solution method for pisoFoam and buoyantBoussinesqPisoFoam | mchurchf | OpenFOAM | 7 | August 6, 2023 10:12 |
pisoFoam, pimpleFoam - Fluent user's questions | RodriguezFatz | OpenFOAM Running, Solving & CFD | 0 | September 4, 2013 05:26 |
Error compiling pisoFOAM | EVBUCF | OpenFOAM Programming & Development | 6 | January 25, 2012 20:00 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |