|
[Sponsors] |
March 25, 2010, 11:26 |
erros when compiling simpleSRFFoam
|
#1 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Hello everyone,
I've installed OpenFoam 1.6 in suse 11.2. When I try to compile the simpleSRFFoam or other user defined solvers, I always receive these errors: Making dependency list for source file simpleSRFFoam.C g++ simpleSRFFoam.C -o simpleSRFFoam simpleSRFFoam.C:34:19: error: fvCFD.H: file or directory not fund simpleSRFFoam.C:35:39: error: singlePhaseTransportModel.H: file or directory not fund simpleSRFFoam.C:36:22: error: RASModel.H: Datei oder Verzeichnis nicht gefunden simpleSRFFoam.C:37:22: error: SRFModel.H: Datei oder Verzeichnis nicht gefunden simpleSRFFoam.C:43:29: error: setRootCase.H: Datei oder Verzeichnis nicht gefunden simpleSRFFoam.C:44:28: error: createTime.H: Datei oder Verzeichnis nicht gefunden simpleSRFFoam.C:45:28: error: createMesh.H: Datei oder Verzeichnis nicht gefunden simpleSRFFoam.C:47:36: error: initContinuityErrs.H: Datei oder Verzeichnis nicht gefunden simpleSRFFoam.C:57:40: error: readSIMPLEControls.H: Datei oder Verzeichnis nicht gefunden In file included from simpleSRFFoam.C:65: pEqn.H:26:31: error: continuityErrs.H: Datei oder Verzeichnis nicht gefunden In file included from simpleSRFFoam.C:46: createFields.H: In function ‘int main(int, char**)’: createFields.H:1: error: ‘Info’ was not declared in this scope createFields.H:1: error: ‘endl’ was not declared in this scope createFields.H:2: error: ‘volScalarField’ was not declared in this scope createFields.H:2: error: expected `;' before ‘p’ createFields.H:16: error: ‘volVectorField’ was not declared in this scope createFields.H:16: error: expected `;' before ‘Urel’ createFields.H:30: error: ‘surfaceScalarField’ was not declared in this scope createFields.H:30: error: expected `;' before ‘phi’ createFields.H:43: error: ‘label’ was not declared in this scope createFields.H:43: error: expected `;' before ‘pRefCell’ createFields.H:44: error: ‘scalar’ was not declared in this scope createFields.H:44: error: expected `;' before ‘pRefValue’ createFields.H:45: error: ‘p’ was not declared in this scope createFields.H:45: error: ‘mesh’ was not declared in this scope createFields.H:45: error: ‘pRefCell’ was not declared in this scope createFields.H:45: error: ‘pRefValue’ was not declared in this scope createFields.H:45: error: ‘setRefCell’ was not declared in this scope createFields.H:47: error: ‘singlePhaseTransportModel’ was not declared in this scope createFields.H:47: error: expected `;' before ‘laminarTransport’ createFields.H:49: error: ‘autoPtr’ was not declared in this scope createFields.H:49: error: ‘incompressible’ has not been declared createFields.H:51: error: ‘incompressible’ has not been declared createFields.H:51: error: ‘Urel’ was not declared in this scope createFields.H:51: error: ‘phi’ was not declared in this scope createFields.H:51: error: ‘laminarTransport’ was not declared in this scope createFields.H:52: error: ‘turbulence’ was not declared in this scope createFields.H:55: error: ‘SRF’ has not been declared createFields.H:57: error: ‘SRF’ has not been declared createFields.H:58: error: ‘SRF’ was not declared in this scope simpleSRFFoam.C:53: error: ‘runTime’ was not declared in this scope simpleSRFFoam.C:55: error: ‘nl’ was not declared in this scope ...etc. It's strange, because the files (e.g. fvCFD.H) are included in the file finiteVolume. Does someone have any idea how can I figure it out? Regards. |
|
April 21, 2010, 14:05 |
|
#2 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Could someone tell me which can be the problem? I've tried to solve it by myself, but I can not. Is it something about the compiler installed in my computer?
|
|
April 21, 2010, 14:15 |
|
#3 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
are you using wmake?
if you dont know what Im talking about you should consult the UserGuide documentation. |
|
April 22, 2010, 04:19 |
|
#4 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Hi niklas,
yes i'm using wmake. if i just change the code of (for example) simpleFoam it works, but if i try to compile a new foam, no way. I hope you can help me more. Best Regards! |
|
April 22, 2010, 04:39 |
|
#5 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
You haven't included the include search paths in the Make/options file.
Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude |
|
April 22, 2010, 04:55 |
|
#6 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Hello niklas,
But i do include that in the Make/option file: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel EXE_LIBS = \ -lincompressibleRASModels \ -lincompressibleTransportModels \ -lfiniteVolume \ -lmeshTools The "fvCFD.H" is also included in the "simpleSRFFoam.C" file. I cannot understand why he doesn't find it. Best Regards! |
|
April 22, 2010, 10:51 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all,
June, have you tried seeing if the file "fvCFD.H" does exist in the folder "$FOAM_SRC/finiteVolume/lnInclude"? Actually, it should be a symbolic link... For example, try: Code:
ls -l $FOAM_SRC/finiteVolume/lnInclude/fvCFD.H Code:
lrwxrwxrwx 1 xxx xxx 2010-01-18 16:58 /home/xxx/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H -> ../cfdTools/general/include/fvCFD.H The other possibility is: how did you run wmake? Try this inside the folder where you have your solver: Code:
wclean wmake Best regards, Bruno
__________________
|
|
April 23, 2010, 04:34 |
|
#8 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Hi Bruno,
that's exactly what i can not understand. The fvCFD.H exist, but can not be fund. I've tried to rebuild OpenFOAM, it didn't help. About the wmake i alway do it as you said. So I'm thinking maybe it's something wrong with my system or compiler. But I don't know how can I figure out. What will you say? Best regards, June |
|
April 23, 2010, 18:25 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings June,
OK, lets try the following possibilities:
So, to sum up, the less information you provide on how you installed OpenFOAM, the less likely we'll be able to guess or reproduce the problem you are having right now! Of course too much information would also be counter productive Best regards, Bruno
__________________
|
|
April 24, 2010, 05:47 |
|
#10 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi June,
Strange problem, I just gave it a try (with OpenFOAM-1.6.x on OpenSUSE 11.2) and no problem occurred. But then again, I have compiled 1.6.x (with Alberto Passalacqua's howTo). Maybe it's an idea to compile the whole lot?
__________________
Regards, Gijs |
|
April 26, 2010, 11:18 |
|
#11 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Greetings Bruno,
Thanks very much for you suggestion. I did the things you`ve mentioned: 1. with the code "gcc -v" I got the version: gcc version 4.3.3. The whole message is: Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --enable-languages=c,c++ --with-pkgversion=OpenFOAM --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-system-zlib --prefix=/home/dm2/henry/OpenFOAM/ThirdParty/gcc-4.3.3/platforms/linux64 --with-mpfr=/home/dm2/henry/OpenFOAM/ThirdParty/mpfr-2.4.1/platforms/linux64 --with-gmp=/home/dm2/henry/OpenFOAM/ThirdParty/gmp-4.2.4/platforms/linux64 Thread model: posix gcc version 4.3.3 (OpenFOAM) 2. SOURCE=volFieldTest.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/yang/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/yang/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/yang/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/volFieldTest.o /home/yang/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMatrixSolve.C: In member function ‘Foam::lduMatrix::solverPerformance Foam::fvMatrix<Type>::solve(const Foam::dictionary&) [with Type = Foam::SphericalTensor<double>]’: /home/yang/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMatrixSolve.C:186: instantiated from ‘Foam::lduMatrix::solverPerformance Foam::fvMatrix<Type>::solve() [with Type = Foam::SphericalTensor<double>]’ /home/yang/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMatrix.C:1288: instantiated from ‘Foam::lduMatrix::solverPerformance Foam::solve(const Foam::tmp<Foam::fvMatrix<Type> >&) [with Type = Foam::SphericalTensor<double>]’ volFieldTest.C:95: instantiated from here /home/yang/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMatrixSolve.C:88: error: no matching function for call to ‘Foam::SphericalTensor<int>::SphericalTensor(Foam: :SymmTensor<int>)’ /home/yang/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude /SphericalTensorI.H:63: note: candidates are: Foam::SphericalTensor<Cmpt>::SphericalTensor(Foam: :Istream&) [with Cmpt = int] /home/yang/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/SphericalTensorI.H:55: note: Foam::SphericalTensor<Cmpt>::SphericalTensor(const Cmpt&) [with Cmpt = int] /home/yang/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/SphericalTensorI.H:47: note: Foam::SphericalTensor<Cmpt>::SphericalTensor(const Foam::VectorSpace<Foam::SphericalTensor<Cmpt>, Cmpt, 1>&) [with Cmpt = int] /home/yang/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/SphericalTensorI.H:38: note: Foam::SphericalTensor<Cmpt>::SphericalTensor() [with Cmpt = int] /home/yang/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/SphericalTensor.H:56: note: Foam::SphericalTensor<int>::SphericalTensor(const Foam::SphericalTensor<int>&) make: *** [Make/linux64GccDPOpt/volFieldTest.o] Fehler 1 one error exist. What did this mean? 3. I've installed Openfoam in the local folder before, but I unstalled it. The OpenFoam I'm using now is installed in my home folder like most people do . 4. I always try to build the simpleSRFFoam in the turtorial folder, I think it should be right. Best Regards, June |
|
April 26, 2010, 12:08 |
|
#12 |
New Member
June
Join Date: Dec 2009
Posts: 18
Rep Power: 17 |
Hi Gij,
Thank you very much for the information. Maybe I'll try it later. |
|
April 26, 2010, 19:53 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings June,
OK, as for the reply to each point on the list: 1. you're using gcc-4.3.3 - this is good, because this is a must for building OpenFOAM 1.6; 2. Sorry about that, I only checked in OpenFOAM 1.6.x. I've now checked in OpenFOAM 1.6 and it gave me the exact same response. These specific errors that it gives in 1.6 are already fixed in 1.6.x. The good thing about this one is that it actually means that fvCFD.H was found! Which means that simpleSRFFoam should build! 3. OK, so far so good. 4. Actually, as a precautionary measure, you should have followed the User Guide's instructions (see --> here <--): Code:
mkdir -p $FOAM_RUN cp -r $FOAM_TUTORIALS $FOAM_RUN Uhm... this is very odd. The only thing left that seems possibly logical to me is that due to some specific chain of events, the following things happened:
So, only two possibilities remain:
Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error compiling OpenFoam 1.6.x with intel compiler icc | mak_04 | OpenFOAM Installation | 5 | October 28, 2011 08:06 |
error msg when compiling user fortran | Ollimarc | CFX | 0 | March 13, 2008 19:16 |
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 | sponiar | OpenFOAM Running, Solving & CFD | 3 | February 26, 2008 07:31 |
some problem about compiling Nektar | ztdep | Main CFD Forum | 0 | July 30, 2005 10:43 |
Discussing UDF and C++ Compiling | Big Stone | FLUENT | 9 | April 12, 2004 16:07 |