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

Problem with the Fan tutorial

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2011, 10:45
Unhappy Problem with the Fan tutorial
  #1
New Member
 
Join Date: Mar 2011
Posts: 3
Rep Power: 15
widedMed is on a distinguished road
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?

Thank you in advance.
widedMed is offline   Reply With Quote

Old   March 24, 2011, 16:25
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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
elvis is offline   Reply With Quote

Old   March 25, 2011, 05:23
Default
  #3
New Member
 
Join Date: Mar 2011
Posts: 3
Rep Power: 15
widedMed is on a distinguished road
Quote:
Originally Posted by elvis View Post
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 is offline   Reply With Quote

Old   March 29, 2011, 05:35
Default
  #4
New Member
 
Join Date: Mar 2011
Posts: 3
Rep Power: 15
widedMed is on a distinguished road
Problem solved by compiling the tutorial using the 1.5.dev version. Tutorial works fine for the moment. Thank you Elvis for the idea.
widedMed is offline   Reply With Quote

Reply

Tags
complilation, fan, tutorial


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
Fluent SI engine tutorial problem Jonny6001 FLUENT 4 January 22, 2012 20:26
XiFOAM tutorial Problem 21kalee OpenFOAM Running, Solving & CFD 0 April 22, 2008 19:18
Radial fan problem : Attn Razvan and all Farhath FLUENT 0 September 26, 2007 05:18
Some problem about tutorial stress analysis of plate with hole ztdep OpenFOAM Running, Solving & CFD 0 August 12, 2005 08:05
Problem With User-Defined Fan Model Panel neihad FLUENT 0 November 25, 2001 18:21


All times are GMT -4. The time now is 02:20.