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

nonNewtonianIcoFoam wmake

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2010, 04:50
Post nonNewtonianIcoFoam wmake
  #1
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
HI

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:

Quote:
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

T.D.

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

Old   November 4, 2010, 11:36
Default
  #2
Member
 
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17
hamcer is on a distinguished road
hi,

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
foamDotFile=$FOAM_INST_DIR/OpenFOAM-1.6/etc/bashrc
[ -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.

hamdi
hamcer 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
Patches for OpenFOAM 1.7 on MacOS X gschaider OpenFOAM Installation 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 04:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28


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