|
[Sponsors] |
Make/options problem while porting model to OF 5.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 3, 2017, 11:56 |
Make/options problem while porting model to OF 5.0
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
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 |
|
August 9, 2017, 17:59 |
|
#2 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Dear Klaus,
first of all, one nice thing: Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The problem of Stiff Chemistry Solver in Multiphase model | shenzhou1987 | FLUENT | 1 | January 11, 2016 03:52 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
Turbulence model for mixing problem??? | nileshjrane | Main CFD Forum | 7 | September 14, 2010 05:57 |