CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

problem with compiling new RNGkEpsilon

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2014, 09:03
Question problem with compiling new RNGkEpsilon
New Member
Join Date: Aug 2012
Posts: 6
Rep Power: 13
buck_s is on a distinguished road
Hey Everybody,

While trying to implement an edited version of the turbulence model RNGkEpsilon, I get this error when trying to compile it with wmake.

SOURCE=myRNGkEpsilon/myRNGkEpsilon.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/turbulenceModels -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/basic/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/solidThermo/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/meshTools/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/turbulenceModels/compressible/RAS/lnInclude -IlnInclude -I. -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/myRNGkEpsilon.o
jar cfm /disk/OpenFOAM/mhanna-2.2.x/platforms/linux64Gcc46DPOpt/lib/libmyCompressibleRASModels .jar -lcompressibleTurbulenceModel -lfiniteVolume -lfluidThermophysicalModels -lspecie -lmeshTools -C Make/classes .
g++: error: .so: No such file or directory
make: *** [.so] Error 1
make: *** Waiting for unfinished jobs.... .jar (No such file or directory)
        at Method)
make: *** [/disk/OpenFOAM/mhanna-2.2.x/platforms/linux64Gcc46DPOpt/lib/libmyCompressibleRASModels] Error 1
Could anyone help me find out, where this error is coming from?

Thanks in advance
buck_s is offline   Reply With Quote

Old   November 14, 2014, 06:29
Senior Member
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
For future readers. I had a similar error message for a boundary condition. If you have this error, take a few steps back to the original files that you copied. For the above example, be sure to replace all occurences of "RNGkEpsilon" with something unique, e.g. "myRNGkEpsilon". That solved it for me.

Another hint that might help future readers: there are depencies. Copy the Make files and options, and in options, add the original library where you copied the source from (as well as the lnInclude path). By the way, I had this issue in OpenFOAM version 2.1
Bernhard is offline   Reply With Quote

Old   March 21, 2016, 15:03
New Member
Join Date: May 2012
Posts: 23
Rep Power: 14
pmdelgado2 is on a distinguished road
I ran into this same problem and fixed it by alternative means. Notice that the error says that the compiler is looking for a file called ".jar", but can't find it. This means that, somehow, your make file was created in such a way that it included an extra space in between "libmyCompressibleRASModels" and ".jar". When I inspected the file "Make/files", I noticed that the line:

LIB = $(FOAM_LIBBIN)/libCompressibleRASModels

had an extra space at the end of it. By removing the extra space at the line, it worked fine.
pmdelgado2 is offline   Reply With Quote


compilation error, rngkepsilon, turbulence model

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
C_T(c,t) problem while compiling (OK interpreted) crevoise Fluent UDF and Scheme Programming 6 February 4, 2014 07:16
Problem with compiling new solver palazi88 OpenFOAM Programming & Development 2 December 24, 2013 19:52
problem with compiling the source code michel1988 OpenFOAM Installation 1 April 17, 2013 17:19
COMPILING PROBLEM ammi FLUENT 1 December 7, 2006 04:07
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 06:45

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