CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

wmake error for a new viscosity model

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 27, 2009, 12:12
Default wmake error for a new viscosity model
  #1
ICL
New Member
 
Ali Sh
Join Date: Jun 2009
Location: London
Posts: 28
Rep Power: 8
ICL is on a distinguished road
Hey guyz,

I got the following errors when I tried to compile (wmake) a viscosity model. Everything was fine before with the same change. I don`t really know why I got these errors now:

incompressible]$ wmake
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I.. -I/home/ahajisha/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/ahajisha/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/ahajisha/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/transportModel.o Make/linux64GccDPOpt/singlePhaseTransportModel.o Make/linux64GccDPOpt/viscosityModel.o Make/linux64GccDPOpt/newViscosityModel.o Make/linux64GccDPOpt/Roelands.o Make/linux64GccDPOpt/EyringRoelands.o Make/linux64GccDPOpt/Doolittle.o Make/linux64GccDPOpt/Newtonian.o -L/home/ahajisha/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt \
-lOpenFOAM -liberty -ldl -lm -o OpenFOAM.out
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
Make/linux64GccDPOpt/viscosityModel.o: In function `Foam::fvPatchField<Foam::SymmTensor<double> >::type() const':
viscosityModel.C.text._ZNK4Foam12fvPatchFieldINS _10SymmTensorIdEEE4typeEv[Foam::fvPatchField<Foam::SymmTensor<double> >::type() const]+0x3): undefined reference to `Foam::fvPatchField<Foam::SymmTensor<double> >::typeName'
Make/linux64GccDPOpt/viscosityModel.o: In function `Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh>::type() const':
.
.
.
.
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1

I would be very grateful if anyone can lead me to the source of the error.

Thanks alot,
Ali
ICL is offline   Reply With Quote

Old   October 27, 2009, 13:01
Default
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Probably you want to build a library, not an executable. Use 'wmake libso' to build a library. This is not a bug.
mattijs is offline   Reply With Quote

Old   October 27, 2009, 13:05
Default
  #3
ICL
New Member
 
Ali Sh
Join Date: Jun 2009
Location: London
Posts: 28
Rep Power: 8
ICL is on a distinguished road
I compiled the new viscosity model with wmake and I used to compile it with wmake every time I changed it. This time I only changed a constant value in it and got the above-mentioned error using wmake! I don`t know what is the reason...
ICL is offline   Reply With Quote

Old   October 27, 2009, 13:07
Default
  #4
ICL
New Member
 
Ali Sh
Join Date: Jun 2009
Location: London
Posts: 28
Rep Power: 8
ICL is on a distinguished road
I typed wmake in src/transportModels/incompressible by the way. As I mentioned it was fine using wmake for that before.
ICL is offline   Reply With Quote

Old   October 30, 2009, 07:44
Default Correction
  #5
ICL
New Member
 
Ali Sh
Join Date: Jun 2009
Location: London
Posts: 28
Rep Power: 8
ICL is on a distinguished road
First of all, that was not a bug ( Sorry for that)
Use of wmake is possible for executable files such as Solvers. There is a library specified to transportmodels/incompressible and that should be updated using wmake libso incompressible in src/transportmodels directory.
ICL is offline   Reply With Quote

Reply

Tags
compile, error, openfoam, wmake

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
Implementing new viscosity model prjohnston OpenFOAM Running, Solving & CFD 6 July 3, 2015 04:26
Yielding viscosity for Herschel Bulkley model Godwin FLUENT 1 December 12, 2011 06:42
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Power Law Viscosity Model cpplabs OpenFOAM Running, Solving & CFD 1 February 13, 2008 09:09
Casson Viscosity model as one user define function Zahra Rahmdel FLUENT 0 November 6, 2004 06:53


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