CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compilation of the Solver of mydieselFoam (http://www.cfd-online.com/Forums/openfoam-solving/94955-compilation-solver-mydieselfoam.html)

kmpang November 30, 2011 23:53

Compilation of the Solver of mydieselFoam
 
Hi Foamers!

I'm starting to learn OpenFOAM with the dieselFoam Tutorial. At the final part, I compiled the library but failed to compile the solver. Following is the message at the terminal.

===============================================

Making dependency list for source file dieselFoam.C
SOURCE=dieselFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam201/src/../applications/solvers/combustion/dieselEngineFoam -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -I/home/karmun/OpenFOAM/karmun-2.0.1/src/lagrangian/mydieselSpray/lnInclude -I/opt/openfoam201/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam201/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam201/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam201/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/opt/openfoam201/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam201/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam201/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/opt/openfoam201/src/../applications/solvers/reactionThermo/XiFoam -I/opt/openfoam201/src/thermophysicalModels/chemistryModel/lnInclude -I/opt/openfoam201/src/ODE/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/dieselFoam.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam201/src/../applications/solvers/combustion/dieselEngineFoam -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -I/home/karmun/OpenFOAM/karmun-2.0.1/src/lagrangian/mydieselSpray/lnInclude -I/opt/openfoam201/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam201/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam201/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam201/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/opt/openfoam201/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam201/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam201/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/opt/openfoam201/src/../applications/solvers/reactionThermo/XiFoam -I/opt/openfoam201/src/thermophysicalModels/chemistryModel/lnInclude -I/opt/openfoam201/src/ODE/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/dieselFoam.o -L/opt/openfoam201/platforms/linuxGccDPOpt/lib \
-lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -lreactionThermophysicalModels -llagrangian -lmeshTools -ldieselSpray -lliquidProperties -lliquidMixtureProperties -lthermophysicalFunctions -lspecie -lbasicThermophysicalModels -llaminarFlameSpeedModels -lchemistryModel -lODE -ldistributionModels -lfiniteVolume -lpdf -L/home/karmun/OpenFOAM/karmun-2.0.1/lib/linuxGccDPOpt -lmydieselSpray -lOpenFOAM -ldl -lm -o /home/karmun/OpenFOAM/karmun-2.0.1/platforms/linuxGccDPOpt/bin/mydieselFoam
/usr/bin/ld: cannot find -lpdf
/usr/bin/ld: cannot find -lmydieselSpray

===============================================

I followed the steps taught in the tutorial by adding

-lpdf \
-L$(WM_PROJECT_USER_DIR)/lib/$(WM_OPTIONS) \
-lmydieselSpray

in the /mydieselSpray/Make/options file.

But when I searched around the OpenFOAM directories and sub-directories, I couldn't find libraries of pdf and mydieselSpray. Did I miss any important step? Can anyone of you kindly advise me? :confused:

For your information, I'm using OpenFOAM 2.0.1 and I installed it at /opt.

Many thanks in advance.

Best regards,
Kar.

kmpang December 3, 2011 22:28

Oopss! I think I found the solution. Apparently lpdf doesn't exist in OpenFOAM 2.0.1 but only in those older-version OpenFOAM.


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