CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

nonNewtonianIcoFoam wmake

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

LinkBack Thread Tools Display Modes
Old   September 29, 2010, 04:50
Post nonNewtonianIcoFoam wmake
Senior Member
Join Date: Sep 2010
Location: France
Posts: 224
Rep Power: 9
T.D. is on a distinguished road

I copied the nonNewtonianIcoFoam solver from the opt/openfoam main directory, to my user directory
and i changed as usual the "files" file inside Make in order to do wmake
when i do wmake i got this error:

user@king:~/applications/solvers/incompressible/nonNewtonianIcoFoam$ wmake
SOURCE=nonNewtonianIcoFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/nonNewtonianIcoFoam.o
In file included from nonNewtonianIcoFoam.C:43:
createFields.H: In function "int main(int, char**)":
createFields.H:49: error: no matching function for call to "Foam::singlePhaseTransportModel::singlePhaseTrans portModel(Foam::volVectorField&, Foam::volScalarField&, Foam::surfaceScalarField&)"
/opt/openfoam171/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:78: note: candidates are: Foam::singlePhaseTransportModel::singlePhaseTransp ortModel(const Foam::volVectorField&, const Foam::surfaceScalarField&)
/opt/openfoam171/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:67: note: Foam::singlePhaseTransportModel::singlePhaseTransp ortModel(const Foam::singlePhaseTransportModel&)
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable "momentumPredictor"
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable "transonic"
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable "nOuterCorr"
make: *** [Make/linuxGccDPOpt/nonNewtonianIcoFoam.o] Error 1
i don't understand why it tries to go back to /opt/ directories to look for the singlePhaseTransportModel, however this singlePhaseTransportModel i have changed it and put it in my user transportModels directory and compiled the libraries wmake libso and all was ok

but when i go to make my solver by wmake in the user also directory , i always get the previous error. ? !

help please

thanks a lot


Last edited by T.D.; September 29, 2010 at 04:51. Reason: grammar
T.D. is offline   Reply With Quote

Old   November 4, 2010, 12:36
Join Date: Mar 2009
Posts: 75
Rep Power: 10
hamcer is on a distinguished road

You have to do some changes in your hidden file .bashrc file
in the end of this file write:

export FOAM_INST_DIR=/home/<name>/OpenFOAM
[ -f $foamDotFile ] && . $foamDotFile

Note: you should have a OpenFOAM installed in your home.
after, launch a new terminal and compile your utilities

hope that your help.

hamcer is offline   Reply With Quote


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
Patches for OpenFOAM 1.7 on MacOS X gschaider OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 101 September 21, 2011 05:37
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
ParaFoam error message joey OpenFOAM Paraview & paraFoam 1 October 2, 2006 13:28

All times are GMT -4. The time now is 18:06.