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

Wmake command error while including erosion modelling

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2015, 03:06
Default Wmake command error while including erosion modelling
  #1
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,

Please let me know if i have started the thread in the wrong place..sorry

i have been following http://www.tfd.chalmers.se/~hani/kur...ing_report.pdf

I am stuck at this point where he talks about editing the make file to compile the solver created by the user separately before coupling it with erosion (page 22)

the wmake command is unable to locate the library which i have created separately (lkinematiclagrangianintermediate)
the error given by wmake is: /usr/bin/ld: cannot find -lkinematiclagrangianintermediate

Any help/hint would be very much appreciated!!!! Thank you very much

I am pasting the make/file and make/options for your reference. thank you

make/file
Code:
pimpleKinematicFoam.C
EXE = $(FOAM_USER_APPBIN)/pimpleKinematicFoam
make/options

Code:
LIB_USER_SRC = $(WM_PROJECT_USER_DIR)/src
EXE_INC = \
	-I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
	-I$(LIB_SRC)/transportModels \
	-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
	-I$(LIB_SRC)/finiteVolume/lnInclude\
	-I$(LIB_SRC)/meshTools/lnInclude \
	-I$(LIB_SRC)/fvOptions/lnInclude \
	-I$(LIB_SRC)/sampling/lnInclude \
	-I$(LIB_SRC)/lagrangian/basic/lnInclude \
	-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
	-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
	-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
	-I$(LIB_USER_SRC)/lagrangian/intermediate/lnInclude \
	-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
	-I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \
	-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
	-I$(LIB_SRC)/sampling/lnInclude




EXE_LIBS = \
	-lincompressibleTurbulenceModel \
	-lincompressibleRASModels \
	-lincompressibleLESModels \
	-lincompressibleTransportModels \
	-lfiniteVolume \
	-lmeshTools\
	-lfvOptions \
	-llagrangian\
	-llagrangianIntermediate \
	-lkinematiclagrangianintermediate \
	-lthermophysicalFunctions \
	-lsurfaceFilmModels \
	-ldistributionModels \
	-lregionModels \
	-lspecie \
	-lfluidThermophysicalModels \
	-lliquidProperties \
	-lliquidMixtureProperties \
	-lsolidProperties \
	-lsolidMixtureProperties \
	-lreactionThermophysicalModels \
	-lSLGThermo \
	-lradiationModels \
	-lLESdeltas \
	-lcompressibleTurbulenceModel \
	-lcompressibleRASModels \
	-lcompressibleLESModels \
	-lregionModels \
	-lsurfaceFilmModels \
	-ldynamicFvMesh \
	-lsampling

Last edited by Ananthakrishnan; July 14, 2015 at 07:14.
Ananthakrishnan is offline   Reply With Quote

Old   July 14, 2015, 09:51
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
add -L$(FOAM_USER_LIBBIN) flag to the options

Code:
EXE_LIBS = \
-L$(FOAM_USER_LIBBIN)\
hk318i is offline   Reply With Quote

Old   July 15, 2015, 04:01
Default
  #3
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,

Thanks for the help. It still says the same thing "/usr/bin/ld: cannot find -lkinematiclagrangianintermediate" . !!!!

No clue..

Ananthakrishnan is offline   Reply With Quote

Old   July 15, 2015, 04:18
Default
  #4
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
Could you post the files and option file for your library here?
Are you able to compile it without errors?
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   July 15, 2015, 04:37
Default
  #5
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,
thanks a lot for your continuous help!!!

ya, i am able to compile the library without any error (screen shot attached at the end of this page)

make/file (Library)
Code:
PARCELS=parcels
BASEPARCELS=$(PARCELS)/baseClasses
DERIVEDPARCELS=$(PARCELS)/derived

CLOUDS=clouds
BASECLOUDS=$(CLOUDS)/baseClasses
DERIVEDCLOUDS=$(CLOUDS)/derived


/* Cloud base classes */
$(BASECLOUDS)/kinematicCloud/kinematicCloud.C


/* kinematic parcel sub-models */
KINEMATICPARCEL=$(DERIVEDPARCELS)/basicKinematicParcel
$(KINEMATICPARCEL)/defineBasicKinematicParcel.C
$(KINEMATICPARCEL)/makeBasicKinematicParcelSubmodels.C


/* kinematic colliding parcel sub-models */
KINEMATICCOLLIDINGPARCEL=$(DERIVEDPARCELS)/basicKinematicCollidingParcel
$(KINEMATICCOLLIDINGPARCEL)/defineBasicKinematicCollidingParcel.C
$(KINEMATICCOLLIDINGPARCEL)/makeBasicKinematicCollidingParcelSubmodels.C


submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionData.C
submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C

KINEMATICINJECTION=submodels/Kinematic/InjectionModel
$(KINEMATICINJECTION)/KinematicLookupTableInjection/kinematicParcelInjectionData.C
$(KINEMATICINJECTION)/KinematicLookupTableInjection/kinematicParcelInjectionDataIO.C
$(KINEMATICINJECTION)/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.C
$(KINEMATICINJECTION)/PatchInjection/patchInjectionBase.C


/* integration schemes */
IntegrationScheme/makeIntegrationSchemes.C


/* phase properties */
phaseProperties/phaseProperties/phaseProperties.C
phaseProperties/phaseProperties/phasePropertiesIO.C
phaseProperties/phasePropertiesList/phasePropertiesList.C


/* additional helper classes */
clouds/Templates/KinematicCloud/cloudSolution/cloudSolution.C


LIB = $(FOAM_USER_LIBBIN)/libkinematiclagrangianIntermediate
make/options (Library)
Code:
EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/lagrangian/basic/lnInclude \
    -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/regionModels/regionModel/lnInclude \
    -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
    -I$(LIB_SRC)/dynamicFvMesh/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude

LIB_LIBS = \
    -lfiniteVolume \
    -lmeshTools \
    -llagrangian \
    -ldistributionModels \
    -lspecie \
    -lfluidThermophysicalModels \
    -lliquidProperties \
    -lliquidMixtureProperties \
    -lsolidProperties \
    -lsolidMixtureProperties \
    -lreactionThermophysicalModels \
    -lSLGThermo \
    -lradiationModels \
    -lincompressibleTransportModels \
    -lregionModels \
    -lsurfaceFilmModels \
    -ldynamicFvMesh \
    -lsampling
scrren shot of library getting compiled
I used wclean lib and wmake libso
Ananthakrishnan is offline   Reply With Quote

Old   July 15, 2015, 05:05
Default
  #6
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hey Hassan,

I found the mistake (by gods grace!!!!! )

it was a exteme blunder on my part. I compiled the library with the name containing Intermediate and asked the solver to find the library with the name containing intermediate.. cant believe it.. !!!!!

thanks a lot for your help hassan.. Will now continue adding erosion

sorry guys for posting such mistakes on the forum!!!

thanks
Ananth
Ananthakrishnan is offline   Reply With Quote

Old   July 15, 2015, 05:07
Default
  #7
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
Don't worry it happens alot
hk318i 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28


All times are GMT -4. The time now is 08:01.