CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

LiftDrag compiling problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2008, 06:25
Default Hi all ! While trying to
  #1
vdb
New Member
 
Valter Dal Bo
Join Date: Mar 2009
Location: Italy
Posts: 7
Rep Power: 17
vdb is on a distinguished road
Hi all !


While trying to compile liftDrag using OpenFOAM 1.4 on RHEL4 x86_64, all is fine until step 7 of the procedure listed below (By pUl| on Sunday, June 25, 2006 - 04:34 am).

There I get the following:

/usr/bin/ld: warning: libincompressibleTransportModels.so, needed by /swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt/libincompressiblePostProcessin g.so, not found (try using -rpath or -rpath-link)


And then from there on a load of warnings all the way until I get the final:

collect2: ld returned 1 exit status

make: ***

[/swcae/OpenFOAM/OpenFOAM-1.4/applications/bin/linux64Gcc4DPOpt/liftDrag] Error 1 and no executable gets created.

I setup the LD_RUN_PATH variable to point to /swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt where the lib is located but that didn't work either.

Any clue on how to solve the problem ?

Ta !

------ procedure --------

I just finished including the liftDrag utility into OpenFOAM 1.3 as Hrv mentioned.

Here are the instructions (for the AMD64 architecture) on how to do this (for new users):


Step 1: Grab the relevant OpenFOAM 1.2 gzipped tarballs:

(a) wget http://internap.dl.sourceforge.net/s...2.General.gtgz
(b) wget http://internap.dl.sourceforge.net/s...inuxAMD64Gcc4O pt.gtgz


Step 2: Create a temporary directory for OpenFOAM 1.2 and unpack the downloaded files into it:

[username@hostname ~]$ mkdir foam12
[username@hostname ~]$ cd foam12
[username@hostname foam12]$ tar xzf OpenFOAM-1.2.General.gtgz
[username@hostname foam12]$ tar xzf OpenFOAM-1.2.linuxAMD64Gcc4Opt.gtgz
[username@hostname foam12]$ ls
OpenFOAM-1.2 OpenFOAM-1.2.General.gtgz OpenFOAM-1.2.linuxAMD64Gcc4Opt.gtgz


Step 3: Find the relevant portions that need to be copied:

[username@hostname foam12]$ find ./ -name liftDrag -print
/home/username/foam12/OpenFOAM-1.2/applications/utilities/postProcessing/miscell aneous/liftDrag
/home/username/foam12/OpenFOAM-1.2/applications/bin/linuxAMD64Gcc4Opt/liftDrag
/home/username/foam12/OpenFOAM-1.2/src/postProcessing/incompressible/liftDrag

We are interested in the first and third directories. The second entry is merely a pre-compiled binary (which we will recreate anyway, so let us not bother about it).


Step 4: Copy the missing directories into the OpenFOAM 1.3 installation (~/OpenFOAM/OpenFOAM-1.3/ in this example):

[username@hostname foam12]$ cp -r ./OpenFOAM-1.2/src/postProcessing/ ~/OpenFOAM/OpenFOAM-1.3/src/
[username@hostname foam12]$ cp -r ./OpenFOAM-1.2/applications/utilities/postProcessing/miscellaneous/liftDrag/ ~/OpenFOAM/
OpenFOAM-1.3/applications/utilities/postProcessing/miscellaneous/


Step 5: Edit the 'options' file to suit OpenFOAM 1.3:

The two 'options' files are located at:

(a) ~/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/miscellaneous/lift Drag/Make/options
(b) ~/OpenFOAM/OpenFOAM-1.3/src/postProcessing/incompressible/Make/options

Under the EXE_INC section in each of the above files, change -I$(LIB_SRC)/cfdTools/general/lnInclude to -I$(LIB_SRC)/finiteVolume/lnInclude/

The need for this change is explained in the Wiki[1].


Step 6: Update the libincompressiblePostProcessing.so shared library:

[username@hostname ~]$ cd OpenFOAM/OpenFOAM-1.3/src/postProcessing/
[username@hostname postProcessing]$ ./Allwmake


Step 7: Finally, build the liftDrag binary:

[username@hostname ~]$ cd OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/miscellaneous/liftDr ag/
[username@hostname liftDrag]$ wclean && wmake


And there you have it, trivially compiled ;)


References:

[1] http://openfoamwiki.net/index.php/HowTo_port_from _older_versions_to_13

----------------------------
vdb is offline   Reply With Quote

Old   June 13, 2008, 17:58
Default hi Valter Did you check you
  #2
Member
 
mohd mojab
Join Date: Mar 2009
Posts: 31
Rep Power: 17
mou_mi is on a distinguished road
hi Valter

Did you check your $FOAM_USER_LIBBIN or $FOAM_LIBBIN to be sure that you have libincompressibleTransportModels.so.

mou
mou_mi is offline   Reply With Quote

Old   June 16, 2008, 10:45
Default Hi ! Thank you for the
  #3
vdb
New Member
 
Valter Dal Bo
Join Date: Mar 2009
Location: Italy
Posts: 7
Rep Power: 17
vdb is on a distinguished road
Hi !



Thank you for the answer.



I have both FOAM_USER_LIBBIN and FOAM_LIBBIN setup:

FOAM_USER_LIBBIN is set to /homes/zeus/OpenFOAM/zeus-1.4/lib/linux64Gcc4DPOpt

and FOAM_LIBBIN to /swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt



The shared object can be found in:

/swcae/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/miscellaneous /liftDrag/libincompressibleTransportModels.so

/swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt/libincompressibleTransportMode ls.so

/swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4SPOpt/libincompressibleTransportMode ls.so



I have a common installation for a few machines and that explains why the software is installed in a common nfs mounted disk (/swcae) rather than in the user's home directory.



Should any of those variables be pointing somewhere different ?



Cheers

Valter
vdb 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Compiling liftDrag crashed with initc%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartsadgif%22 ALT%3d%22%22 BORDER%3d0%3etext0x20 undefined reference to %60mainb sponiar OpenFOAM Running, Solving & CFD 2 January 17, 2008 05:00
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 07:45
Compiling problem Alper Albayraq FLUENT 7 August 26, 2005 02:39


All times are GMT -4. The time now is 21:00.