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

Make/options problem while porting model to OF 5.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2017, 10:56
Default Make/options problem while porting model to OF 5.0
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 280
Rep Power: 22
klausb will become famous soon enough
Hello,

I want to use a model which I used on OF 4.1 on OF 5.0.

There were no issues at all installing it on OF 4.1.

The problem: during compilation on OF 5.0, the laminar.H header file is not found even so I adjusted the Make/options file.

laminar.H is located in:

/opt/openfoam5/src/combustionModels/laminar

/opt/openfoam5/src/regionModels/surfaceFilmModels/submodels/kinematic/filmTurbulenceModel/laminar


The Make/options file looks like this:

EXE_INC = \
-I../turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude
-I$(LIB_SRC)/combustionModels/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = \
-lincompressibleTransportModels \
-lturbulenceModels \
-lregionModels \
-lcombustionModels \
-lfiniteVolume \
-lmeshTools

The error message says the following:

... Making dependency list for source file myTurbulentFluidThermoModels.C
could not open file laminar.H for source file turbulentFluidThermoModels/myTurbulentFluidThermoModels.C due to No such file or directory
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I../turbulenceModels/lnInclude -I/opt/openfoam5/src/TurbulenceModels/compressible/lnInclude -I/opt/openfoam5/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam5/src/transportModels/compressible/lnInclude -I/opt/openfoam5/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam5/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam5/src/thermophysicalModels/solidThermo/lnInclude -I/opt/openfoam5/src/thermophysicalModels/solidSpecie/lnInclude -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c turbulentFluidThermoModels/myTurbulentFluidThermoModels.C -o Make/linux64GccDPInt32Opt/turbulentFluidThermoModels/myTurbulentFluidThermoModels.o
turbulentFluidThermoModels/myTurbulentFluidThermoModels.C:35:21: fatal error: laminar.H: Datei oder Verzeichnis nicht gefunden
compilation terminated.
...

"Datei oder Verzeichnis nicht gefunden" = "file or directory not found"

What causes this problem?

Klaus
klausb is offline   Reply With Quote

Old   August 9, 2017, 16:59
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear Klaus,

first of all, one nice thing:

Quote:
"Datei oder Verzeichnis nicht gefunden" = "file or directory not found"


However, back to your topic. The path you mentioned are okay. I guess you already found the mistake, did you? Out of the box and with your mentioned option file I see one mistake:

Code:
EXE_INC = \
    -I../turbulenceModels/lnInclude \
    -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
    -I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
    -I$(LIB_SRC)/incompressible/lnInclude \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
    -I$(LIB_SRC)/regionModels/regionModel/lnInclude \           <<<< Missing \
    -I$(LIB_SRC)/combustionModels/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
The problem of Stiff Chemistry Solver in Multiphase model shenzhou1987 FLUENT 1 January 11, 2016 02:52
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Turbulence model for mixing problem??? nileshjrane Main CFD Forum 7 September 14, 2010 04:57


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