|
[Sponsors] |
March 24, 2011, 10:45 |
Problem with the Fan tutorial
|
#1 |
New Member
Join Date: Mar 2011
Posts: 3
Rep Power: 15 |
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. |
|
March 24, 2011, 16:25 |
|
#2 |
Senior Member
|
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 |
|
March 25, 2011, 05:23 |
|
#3 | |
New Member
Join Date: Mar 2011
Posts: 3
Rep Power: 15 |
Quote:
|
||
March 29, 2011, 05:35 |
|
#4 |
New Member
Join Date: Mar 2011
Posts: 3
Rep Power: 15 |
Problem solved by compiling the tutorial using the 1.5.dev version. Tutorial works fine for the moment. Thank you Elvis for the idea.
|
|
Tags |
complilation, fan, tutorial |
|
|
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 |