CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   wmake error in openFoam1.6 about randomperturbation (https://www.cfd-online.com/Forums/openfoam/75821-wmake-error-openfoam1-6-about-randomperturbation.html)

mrn May 6, 2010 04:22

wmake error in openFoam1.6 about randomperturbation
 
dear freinds
hi
i have a this problem about wmake of my randomperturbation data in openFoam1.6.do you have any experience about that?your help makes me happy.:(


mohammad@mohammad:~/Desktop/initialize/RandomPertubration$ wmake
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohammad/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/mohammad/OpenFOAM/OpenFOAM-1.6/src/cfdTools/general/lnInclude -IlnInclude -I. -I/home/mohammad/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/mohammad/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/RandomPertubration.o -L/home/mohammad/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt \
-lfiniteVolume -lfoamUtil -lOpenFOAM -liberty -ldl -lm -o /home/mohammad/OpenFOAM/mohammad-1.6/applications/bin/linuxGccDPOpt/RandomPertubration
/usr/bin/ld: cannot find -lfoamUtil
collect2: ld returned 1 exit status
make: *** [/home/mohammad/OpenFOAM/mohammad-1.6/applications/bin/linuxGccDPOpt/RandomPertubration] Error 1

wyldckat May 7, 2010 17:56

Greetings mrn,

After I did a little research, it seems that you are trying to use an old application for OpenFOAM with a more recent version. More specifically, your application was designed to work with a version prior to 1.4.1.
My information came from the file OpenFOAM-1.4.1.General.gtgz, available here: OpenFOAM at sourceforge.net
In its README file it states:
Quote:

- foamUser and foamUtil libraries replaced by the more general dlopen method
in which any libraries may be included at run-time using the optional 'libs'
entry in the case controlDict, e.g. to replicate previous automatic inclusion
of the foamUser and foamUtil libraries include
libs ("libfoamUser.so" "libfoamUtil.so");
in controlDict.
I can only estimate that you can try removing the entry that says "-lfoamUtil" from the file "~/Desktop/initialize/RandomPertubration/Make/options". Then run wmake again and trying to resolve the new issues that will arise from it missing.

I searched for "RandomPertubration" online but I didn't find where you got it from, so I can only make estimations as to how you can fix the compiling problems.

Best regards,
Bruno

mrn May 11, 2010 01:06

re:wmake error
 
dear wyldckat
hi
thanks for your help.i did however you said.your guess exactly was true.and about random perturbation,this document is used to make random flow generation.it means that with this code and exe file for it we can make initial guess for our Les solution.we used it because our solution without random perturbation had tended to laminar characteristics of flow.of course my application has a two periodic B.C at stream wise and span wise directions.
best regards


All times are GMT -4. The time now is 20:45.