CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Compiling turbulenceModels

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 8, 2006, 00:28
Default Hello dear friends I want t
  #1
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 8
kumar2 is on a distinguished road
Hello dear friends

I want to modify the SpalartAllmaras turbulence model. i thought i will add this to the library of turbulence models. But before i got into any trouble i wanted to check how the turbulence models that i downloaded from openFoam website behaved during wmake. ( this is version 1.2) BUT THE PROBLEM IS I AM GETTING ERRORS WHEN I WMAKE THIS from /src/turbulenceModel/incompressible

error
---[yoshikiy@kai incompressible]$ wmake
make: Nothing to be done for `allFiles'.
make: `Make/linuxAMD64Gcc4Opt/dependencies' is up to date.

/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/wmake/bashScripts/mkObjectDir OpenFOAM.out
g++ -m64 -DlinuxAMD64 -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/src/cfdTools/general/lnInclude -I/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/src/cfdTools/general/wallDist -I/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/src/meshTools/lnInclude -I/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/src/transportModels -I/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC Make/linuxAMD64Gcc4Opt/turbulenceModel.o Make/linuxAMD64Gcc4Opt/newTurbulenceModel.o -L/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/lib/linuxAMD64Gcc4Opt \
-lOpenFOAM -lm -o OpenFOAM.out
/usr/lib/../lib64/crt1.o(.text+0x20): In function `_start':
: undefined reference to `main'
Make/linuxAMD64Gcc4Opt/turbulenceModel.o(.text+0xed1): In function `Foam::turbulenceModel::~turbulenceModel()':
turbulenceModel.C: undefined reference to `Foam::nearWallDist::~nearWallDist()'
Make/linuxAMD64Gcc4Opt/turbulenceModel.o(.text+0x13b1): In function `Foam::turbulenceModel::~turbulenceModel()':
turbulenceModel.C: undefined reference to `Foam::nearWallDist::~nearWallDist()'
Make/linuxAMD64Gcc4Opt/turbulenceModel.o(.text+0x1881): In function `Foam::turbulenceModel::~turbulenceModel()':
turbulenceModel.C: undefined reference to `Foam::nearWallDist::~nearWallDist()'
Make/linuxAMD64Gcc4Opt/turbulenceModel.o(.text+0x2aa8): In function `Foam::turbulenceModel::turbulenceModel(Foam::word const&, Foam::GeometricField<foam::vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::transportModel&)':
turbulenceModel.C: undefined reference to `Foam::nearWallDist::nearWallDist(Foam::fvMesh const&)'
Make/linuxAMD64Gcc4Opt/turbulenceModel.o(.text+0x3308): In function `Foam::turbulenceModel::turbulenceModel(Foam::word const&, Foam::GeometricField<foam::vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::transportModel&)':
turbulenceModel.C: undefined reference to `Foam::nearWallDist::nearWallDist(Foam::fvMesh const&)'
Make/linuxAMD64Gcc4Opt/turbulenceModel.o(.text+0x7a): In function `Foam::turbulenceModel::correct()':
turbulenceModel.C: undefined reference to `Foam::nearWallDist::correct()'
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1
---

////////////END OF ERROR///////////////

The problem seems to be with nearWallDist. But i have made sure this file is available by copying this file ( both .H & .C ) into the /turbulenceModel . Also i have rechecked the options file in /Make and that also looks good. i wonder what the problem is.

Please help me.

Thanks

Kumar
kumar2 is offline   Reply With Quote

Old   June 8, 2006, 04:03
Default Use 'wmake libso' when compili
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Use 'wmake libso' when compiling a library (creating a .so). Use 'wmake' when compiling an application (creating an executable).

See the 'Allwmake' script in the directory or one up.
mattijs is offline   Reply With Quote

Old   June 8, 2006, 06:15
Default Hi Mattijis Thanks a lot fo
  #3
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 8
kumar2 is on a distinguished road
Hi Mattijis

Thanks a lot for the info. I am able to make the new library now.

Regards

kumar
kumar2 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling UDF Claud FLUENT 10 December 18, 2006 17:52
Compiling my UDF chris FLUENT 5 July 12, 2006 08:49
Compiling UDF Rahul FLUENT 3 March 23, 2003 06:12
Compiling MON FLUENT 0 October 20, 2002 20:48
Compiling UDF Zhang_clement FLUENT 5 February 3, 2002 01:56


All times are GMT -4. The time now is 01:15.