CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Compilation of the Solver of mydieselFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 30, 2011, 23:53
Default Compilation of the Solver of mydieselFoam
  #1
New Member
 
Pang
Join Date: Mar 2011
Location: Denmark
Posts: 25
Rep Power: 6
kmpang is on a distinguished road
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?

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

Many thanks in advance.

Best regards,
Kar.
kmpang is offline   Reply With Quote

Old   December 3, 2011, 22:28
Default
  #2
New Member
 
Pang
Join Date: Mar 2011
Location: Denmark
Posts: 25
Rep Power: 6
kmpang is on a distinguished road
Oopss! I think I found the solution. Apparently lpdf doesn't exist in OpenFOAM 2.0.1 but only in those older-version OpenFOAM.
kmpang is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
A New Solver for Supersonic Combustion nakul OpenFOAM 6 March 30, 2014 03:00
A New Solver for Supersonic Combustion nakul OpenFOAM Announcements from Other Sources 18 February 19, 2013 08:48
Development of a Low mach PISO solver nishant_hull OpenFOAM Programming & Development 0 August 25, 2009 12:48
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 11:41.