CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

error: ‘incompressible’ was not declared in this scope

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

Like Tree2Likes
  • 2 Post By ameya2310

LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2018, 01:55
Default error: ‘incompressible’ was not declared in this scope
New Member
Join Date: Jan 2018
Posts: 5
Rep Power: 8
ameya2310 is on a distinguished road
Hello OF Experts,

I am trying to compile a new solver in openFoam 17.1,
Link to the solver:

in the process I encountered following error msg:

Making dependency list for source file massBuoyantBoussinesqSimpleFoam.C
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/TurbulenceModels/incompressible/lnInclude -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/transportModels -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/transportModels/incompressible/singlePhaseTransportModel -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/finiteVolume/lnInclude -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/meshTools/lnInclude -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/sampling/lnInclude -IlnInclude -I. -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c massBuoyantBoussinesqSimpleFoam.C -o /home/ameya2310/OpenFOAM-in-Box-17.10/OpenFOAM-dev/platforms/linux64Gcc62DPInt32Opt/applications/solvers/massBuoyantBoussinesqSimpleFoam/massBuoyantBoussinesqSimpleFoam.o
In file included from massBuoyantBoussinesqSimpleFoam.C:61:0:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:78:13: error: ‘incompressible’ was not declared in this scop
autoPtr<incompressible::RASModel> turbulence
createFields.H:78:37: error: template argument 1 is invalid
autoPtr<incompressible::RASModel> turbulence
createFields.H:80:9: error: ‘incompressible’ is not a class, namespace, or enumeration
incompressible::RASModel::New(U, phi, laminarTransport)

Any help is appreciated, Thank You.
Attached Files
File Type: txt completeErrorOutput.txt (5.0 KB, 12 views)
File Type: txt modifiedOptionsFile.txt (552 Bytes, 14 views)
yewi and Gang Wang like this.
ameya2310 is offline   Reply With Quote

Old   January 10, 2019, 09:52
New Member
Yehezkiel Wiliardy
Join Date: Feb 2018
Location: Singapore
Posts: 9
Rep Power: 8
yewi is on a distinguished road
Hey did you manage to solve the problem? I am having similar situation while compiling this solver.

yewi is offline   Reply With Quote


new solver, openfoam 1.7.0, options, wmake problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 07:43
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07

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