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

problem with compiling new RNGkEpsilon

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2014, 10:03
Question problem with compiling new RNGkEpsilon
  #1
New Member
 
Michael
Join Date: Aug 2012
Posts: 6
Rep Power: 14
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.

Code:
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....
java.io.FileNotFoundException: .jar (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:140)
        at java.io.FileInputStream.<init>(FileInputStream.java:96)
        at sun.tools.jar.Main.run(Main.java:168)
        at sun.tools.jar.Main.main(Main.java:1167)
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, 07:29
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
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, 16:03
Default
  #3
New Member
 
Paul
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

Reply

Tags
compilation error, rngkepsilon, turbulence model


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 08:16
Problem with compiling new solver palazi88 OpenFOAM Programming & Development 2 December 24, 2013 20:52
problem with compiling the source code michel1988 OpenFOAM Installation 1 April 17, 2013 18:19
COMPILING PROBLEM ammi FLUENT 1 December 7, 2006 05:07
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 07:45


All times are GMT -4. The time now is 17:39.