CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Problem with the Fan tutorial (http://www.cfd-online.com/Forums/openfoam/86513-problem-fan-tutorial.html)

widedMed March 24, 2011 10:45

Problem with the Fan tutorial
 
Hi everyone,
I am a new user of OpenFoam and I am trying to run the fan tutorial. I get the following error when I try to compile the tutorial:

(the tutorial is in this web page of the last summer school in Chalmers:

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/ It is the first one on the list)

wmake
Making dependency list for source file actuatorDiskExplicitForceSimpleFoam.C
could not open file incompressible/RASModel/RASModel.H for source file actuatorDiskExplicitForceSimpleFoam.C
Making dependency list for source file actuatorDiskExplicitForce.cpp
SOURCE=actuatorDiskExplicitForceSimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/turbulenceModels/RAS -I/opt/openfoam171/src/transportModels -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/actuatorDiskExplicitForceSimpleFoam.o
actuatorDiskExplicitForceSimpleFoam.C:36:46: error: incompressible/RASModel/RASModel.H: No such file or directory
In file included from actuatorDiskExplicitForceSimpleFoam.C:38:
actuatorDiskExplicitForce.h:43: warning: ‘class Foam::actuatorDiskExplicitForce’ has virtual functions and accessible non-virtual destructor
In file included from actuatorDiskExplicitForceSimpleFoam.C:48:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:54: error: ‘incompressible’ was not declared in this scope
createFields.H:54: error: template argument 1 is invalid
createFields.H:55: error: invalid type in declaration before ‘(’ token
createFields.H:56: error: ‘incompressible’ is not a class or namespace
In file included from actuatorDiskExplicitForceSimpleFoam.C:74:
UEqn.H:6: error: base operand of ‘->’ is not a pointer
actuatorDiskExplicitForceSimpleFoam.C:78: error: base operand of ‘->’ is not a pointer
/opt/openfoam171/src/finiteVolume/lnInclude/readSIMPLEControls.H:6: warning: unused variable ‘momentumPredictor’
/opt/openfoam171/src/finiteVolume/lnInclude/readSIMPLEControls.H:9: warning: unused variable ‘transonic’
make: *** [Make/linux64GccDPOpt/actuatorDiskExplicitForceSimpleFoam.o] Error 1


can anyone help me with that?:confused:

Thank you in advance.

elvis March 24, 2011 16:25

Hello,

my guess you use 1.71 /opt/openfoam171
take a look at the sources of your fan example. if you find in the header something like
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

the code syntax differs very much between versions 1.5 and 1.71 => do not mix Versions

widedMed March 25, 2011 05:23

Quote:

Originally Posted by elvis (Post 300949)
Hello,

my guess you use 1.71 /opt/openfoam171
take a look at the sources of your fan example. if you find in the header something like
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

the code syntax differs very much between versions 1.5 and 1.71 => do not mix Versions

Thnak you Elvis, you are right it is written for the version 1.5, it confused me in the tutorial that they said it should also work for 1.7 ... Thank you again, I guess I will have to install 1.5

widedMed March 29, 2011 04:35

Problem solved by compiling the tutorial using the 1.5.dev version. Tutorial works fine for the moment. Thank you Elvis for the idea.


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