|
[Sponsors] |
September 26, 2022, 20:37 |
Error while compiling Turbulence Model
|
#1 |
New Member
Michele
Join Date: Mar 2022
Posts: 2
Rep Power: 0 |
Hey guys
In order to understand turbulence implementation, I tried to create "mykEpsilon" model. It's exactly the kEpsilon model, just changing the name to understand the compiling procedure. I'm using openfoam-dev and this tutorial: http://www.tfd.chalmers.se/~hani/kur...lenceModel.pdf . Altough the tutorial is out of date, I based my procedure on it: Code:
foam cp -r --parents src/MomentumTransportModels/momentumTransportModels/RAS/kEpsilon $WM_PROJECT_USER_DIR cd $WM_PROJECT_USER_DIR/src/MomentumTransportModels/momentumTransportModels/RAS mv kEpsilon mykEpsilon cd mykEpsilon mv kEpsilon.C mykEpsilon.C mv kEpsilon.H mykEpsilon.H sed -i s/kEpsilon/mykEpsilon/g mykEpsilon. foam cp --parents src/MomentumTransportModels/incompressible/IncompressibleMomentumTransportModels.C $WM_PROJECT_USER_DIR cp -r --parents src/MomentumTransportModels/incompressible/Make $WM_PROJECT_USER_DIR cd $WM_PROJECT_USER_DIR/src/MomentumTransportModels/incompressible mv IncompressibleMomentumTransportModels.C myIncompressibleMomentumTransportModels.C * Then I changed the myIncompressibleMomentumTransportModels.C to: Code:
#include "turbulentTransportModels.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // -------------------------------------------------------------------------- // // Laminar models // -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- // // RAS models // -------------------------------------------------------------------------- // #include "mykEpsilon.H" makeRASModel(mykEpsilon); // -------------------------------------------------------------------------- // // LES models // -------------------------------------------------------------------------- // // ************************************************************************* // Code:
myIncompressibleMomentumTransportModels.C LIB = $(FOAM_USER_LIBBIN)/libmyIncompressibleMomentumTransportModels Code:
EXE_INC = \ -I../momentumTransportModels/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ LIB_LIBS = \ -lphysicalProperties \ -lmomentumTransportModels \ -lfiniteVolume \ -lmeshTools \ -lmomentumTransportModels \ -lincompressibleMomentumTransportModels Code:
wmakeLnInclude -u ../momentumTransportModels wmake wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file myIncompressibleMomentumTransportModels.C g++ -std=c++14 -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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I../momentumTransportModels/lnInclude -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/physicalProperties/lnInclude -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/MomentumTransportModels/incompressible/lnInclude -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/MomentumTransportModels/momentumTransportModels/lnInclude \ -IlnInclude -I. -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/yanalolux/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c myIncompressibleMomentumTransportModels.C -o Make/linux64GccDPInt32Opt/myIncompressibleMomentumTransportModels.o g++: error: : No such file or directory make: *** [/home/yanalolux/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/myIncompressibleMomentumTransportModels.o] Error 1 Thanks for any help. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 16, 2020 23:44 |
[swak4Foam] swakExpression not writing to log | alexfells | OpenFOAM Community Contributions | 3 | March 16, 2020 18:19 |
New turbulence model in OpenFOAM 5 with porosity scalar | shinjanghosh | OpenFOAM Programming & Development | 0 | January 15, 2020 00:06 |
What model of turbulence choose to study an external aerodynamics case | raffale | OpenFOAM | 0 | August 23, 2012 05:45 |
Wrong calculation of nut in the kOmegaSST turbulence model | FelixL | OpenFOAM Bugs | 27 | March 27, 2012 09:02 |