This offering is not approved or endorsed by Silicon Graphics International Corp.,
the producer of the OpenFOAM® software and owner of the OpenFOAM® trade mark.

Please note: The regular registration for the 7th OpenFOAM® Workshop taking place June 25-28 in Darmstadt, Germany, has just started!
Click here. transientSimpleDyMFoam compilation errors
(1 viewing) (1) Guest
 | | |
TOPIC: transientSimpleDyMFoam compilation errors |
|---|
|
| transientSimpleDyMFoam compilation errors 10 Months ago | Karma: 0 | Dear all, I am having trouble compiling to transientSimpleDyMFoam solver to use for the Timisoara Swirl Generator test case (error file attached). I have updated all permissions for 1.6-ext to user. The paths searched for during compilation also appear to be correct... Is anyone able to help? Thanks in advance Tom Lloyd _________________________________________________ tpl106@UOS-202364:~/OpenFOAM®/tpl106-1.6-ext/transientSimpleDyMFoam$ wmake SOURCE=transientSimpleDyMFoam.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/usr/lib/OpenFOAM®-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM®-1.6-ext/src/meshTools/lnInclude -I/usr/lib/OpenFOAM®-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM®-1.6-ext/src/turbulenceModels/incompressible/RAS/lnInclude -I/usr/lib/OpenFOAM®-1.6-ext/src/turbulenceModels -I/usr/lib/OpenFOAM®-1.6-ext/src/transportModels -IlnInclude -I. -I/usr/lib/OpenFOAM®-1.6-ext/src/OpenFOAM®/lnInclude -I/usr/lib/OpenFOAM®-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/transientSimpleDyMFoam.o transientSimpleDyMFoam.C:41:19: error: fvCFD.H: No such file or directory In file included from /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:42, from transientSimpleDyMFoam.C:42: /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:40:26: error: IOdictionary.H: No such file or directory /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:41:26: error: volFieldsFwd.H: No such file or directory /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:42:30: error: surfaceFieldsFwd.H: No such file or directory In file included from transientSimpleDyMFoam.C:42: /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:43:21: error: autoPtr.H: No such file or directory transientSimpleDyMFoam.C:43:22: error: RASModel.H: No such file or directory transientSimpleDyMFoam.C:44:27: error: dynamicFvMesh.H: No such file or directory transientSimpleDyMFoam.C:50:28: error: setRootCase.H: No such file or directory transientSimpleDyMFoam.C:51:27: error: createTime.H: No such file or directory transientSimpleDyMFoam.C:52:36: error: createDynamicFvMesh.H: No such file or directory transientSimpleDyMFoam.C:53:35: error: initContinuityErrs.H: No such file or directory In file included from transientSimpleDyMFoam.C:54: createFields.H:30:26: error: createPhi.H: No such file or directory In file included from transientSimpleDyMFoam.C:62: readControls.H:1:33: error: readTimeControls.H: No such file or directory readControls.H:2:33: error: readPISOControls.H: No such file or directory transientSimpleDyMFoam.C:64:30: error: CourantNo.H: No such file or directory transientSimpleDyMFoam.C:69:30: error: setDeltaT.H: No such file or directory transientSimpleDyMFoam.C:77:34: error: volContinuity.H: No such file or directory In file included from transientSimpleDyMFoam.C:83: correctPhi.H:27:31: error: continuityErrs.H: No such file or directory transientSimpleDyMFoam.C:91:38: error: meshCourantNo.H: No such file or directory In file included from /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:42, from transientSimpleDyMFoam.C:42: /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:56: error: expected class-name before ‘{’ token /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:73: error: ISO C++ forbids declaration of ‘volVectorField’ with no type /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:73: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:86: error: ISO C++ forbids declaration of ‘volScalarField’ with no type /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:86: error: ‘volScalarField’ declared as a ‘virtual’ field /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/transportModel/transportModel.H:86: error: expected ‘;’ before ‘&’ token In file included from transientSimpleDyMFoam.C:42: /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:62: error: ISO C++ forbids declaration of ‘autoPtr’ with no type /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:62: error: expected ‘;’ before ‘<’ token /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:81: error: ISO C++ forbids declaration of ‘volVectorField’ with no type /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:81: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:94: error: ISO C++ forbids declaration of ‘volScalarField’ with no type /usr/lib/OpenFOAM®-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H:94: error: expected ‘;’ before ‘&’ token In file included from transientSimpleDyMFoam.C:54: 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:17: error: ‘volVectorField’ was not declared in this scope createFields.H:17: error: expected ‘;’ before ‘U’ createFields.H:33: error: ‘label’ was not declared in this scope createFields.H:33: error: expected ‘;’ before ‘pRefCell’ createFields.H:34: error: ‘scalar’ was not declared in this scope createFields.H:34: error: expected ‘;’ before ‘pRefValue’ createFields.H:35: error: ‘p’ was not declared in this scope createFields.H:35: error: ‘mesh’ was not declared in this scope createFields.H:35: error: ‘pRefCell’ was not declared in this scope createFields.H:35: error: ‘pRefValue’ was not declared in this scope createFields.H:35: error: ‘setRefCell’ was not declared in this scope createFields.H:37: error: expected ‘;’ before ‘totalVolume’ createFields.H:39: error: expected ‘;’ before ‘rAU’ createFields.H:52: error: ‘singlePhaseTransportModel’ was not declared in this scope createFields.H:52: error: expected ‘;’ before ‘laminarTransport’ createFields.H:54: error: ‘autoPtr’ was not declared in this scope createFields.H:54: error: ‘incompressible’ has not been declared createFields.H:56: error: ‘incompressible’ has not been declared createFields.H:56: error: ‘U’ was not declared in this scope createFields.H:56: error: ‘phi’ was not declared in this scope createFields.H:56: error: ‘laminarTransport’ was not declared in this scope createFields.H:57: error: ‘turbulence’ was not declared in this scope transientSimpleDyMFoam.C:60: error: ‘runTime’ was not declared in this scope In file included from transientSimpleDyMFoam.C:62: readControls.H:5: error: ‘piso’ was not declared in this scope readControls.H:7: error: ‘Switch’ was not declared in this scope readControls.H:11: error: ‘piso’ was not declared in this scope readControls.H:13: error: ‘Switch’ was not declared in this scope In file included from transientSimpleDyMFoam.C:63: checkTotalVolume.H:1: error: expected ‘;’ before ‘newTotalVolume’ checkTotalVolume.H:3: error: ‘newTotalVolume’ was not declared in this scope checkTotalVolume.H:3: error: ‘totalVolume’ was not declared in this scope checkTotalVolume.H:4: error: ‘mag’ is not a member of ‘Foam’ transientSimpleDyMFoam.C:67: error: ‘fvc’ has not been declared transientSimpleDyMFoam.C:73: error: ‘nl’ was not declared in this scope In file included from transientSimpleDyMFoam.C:83: correctPhi.H:2: error: ‘wordList’ was not declared in this scope correctPhi.H:2: error: expected ‘;’ before ‘pcorrTypes’ correctPhi.H:4: error: expected ‘;’ before ‘i’ correctPhi.H:4: error: ‘i’ was not declared in this scope correctPhi.H:8: error: ‘pcorrTypes’ was not declared in this scope correctPhi.H:8: error: ‘fixedValueFvPatchScalarField’ has not been declared correctPhi.H:12: error: expected ‘;’ before ‘pcorr’ correctPhi.H:30: error: ‘fvc’ has not been declared correctPhi.H:31: error: ‘rAU’ was not declared in this scope correctPhi.H:33: error: ‘nNonOrthCorr’ was not declared in this scope correctPhi.H:35: error: ‘fvScalarMatrix’ was not declared in this scope correctPhi.H:35: error: expected ‘;’ before ‘pcorrEqn’ correctPhi.H:40: error: ‘pcorrEqn’ was not declared in this scope transientSimpleDyMFoam.C:87: error: ‘fvc’ has not been declared transientSimpleDyMFoam.C:96: error: ‘nOuterCorr’ was not declared in this scope In file included from transientSimpleDyMFoam.C:100: UEqn.H:1: error: ‘fvVectorMatrix’ was not declared in this scope UEqn.H:1: error: expected ‘;’ before ‘UEqn’ UEqn.H:8: error: ‘UEqn’ was not declared in this scope UEqn.H:11: error: ‘fvc’ has not been declared UEqn.H:11: error: ‘solve’ was not declared in this scope transientSimpleDyMFoam.C:102: error: ‘rAU’ was not declared in this scope transientSimpleDyMFoam.C:105: error: ‘fvc’ has not been declared transientSimpleDyMFoam.C:108: error: ‘adjustPhi’ was not declared in this scope transientSimpleDyMFoam.C:112: error: ‘nNonOrthCorr’ was not declared in this scope transientSimpleDyMFoam.C:114: error: ‘fvScalarMatrix’ was not declared in this scope transientSimpleDyMFoam.C:114: error: expected ‘;’ before ‘pEqn’ transientSimpleDyMFoam.C:119: error: ‘pEqn’ was not declared in this scope transientSimpleDyMFoam.C:142: error: ‘fvc’ has not been declared transientSimpleDyMFoam.C:144: error: ‘fvc’ has not been declared make: *** [Make/linux64GccDPOpt/transientSimpleDyMFoam.o] Error 1 |
| | Last Edit: 2011/07/18 17:46 By TomLloyd. | |
|
| Re:transientSimpleDyMFoam compilation errors 10 Months ago | Karma: 0 | Seems I have fixed it - using 1.5-dev instead too. Is it possible to run this case in parallel? decomposePar crashes due to 'Unknown global face zone STROUT_OUTLET_ZONE'. Tom |
| | | |
|
| Re:transientSimpleDyMFoam compilation errors 10 Months ago | Karma: 0 | Did you use the Allrun or make it "by hand"? I suggest to have a look at the setBatch file. |
| | | |
|
| Re:transientSimpleDyMFoam compilation errors 10 Months ago | Karma: 1 | Hi Thomas, Concerning transientSimpleDyMFoam in 1.6-ext, it works nicely to compile if you have a working 1.6-ext version available (including source code), and the environment correctly set up. Compiler error messages are often very long. Please don't panic! Look for the first error message (the rest might be due to the first one), in this case: transientSimpleDyMFoam.C:41:19: error: fvCFD.H: No such file or directory Now, my interpretation of this tricky message is that the file fvCFD.H does not exist. At least not where the compiler is looking for it. The compiler will look for it where it is told to look for it, which is set up when you source the OpenFOAM® files (see installation instructions). According to your compiler message, it will include files from (amongst others): -I/usr/lib/OpenFOAM®-1.6-ext/src/finiteVolume/lnInclude (please note that this web page automatically includes the 'registered' sign after OpenFOAM®, so ignore that). This is where fvCFD.H should be located according to your environment. However, my educated guess is that you don't find fvCFD.H in that directory (if that directory is there at all. That means that you have a problem with your installation. Either you are lacking the source files, or the enviroment is not set up according to where you have installed OpenFOAM®. You can find the file fvCFD.H by either of the following commands, to help you set up the environent properly: find / -name fvCFD.H locate fvCFD.H The rest of the error messages are either of the same type, i.e. some files can not be found (will be solved when you have solved it for fvCFD.H), or declarations that have not been done, since the files declaring those were not found. I.e. solving only the first problem should solve all problems in this case. Best regards, Håkan |
| | | |
|
| Re:transientSimpleDyMFoam compilation errors 9 Months, 4 Weeks ago | Karma: 0 | Thank you both for your response. Christian-Henrik: I just added decomposePar now to the Allrun script - it was the first time I decomposed a GGI case, hence the problem! Håkan: Thank you for your advice. It can seem daunting to debug what looks like a large number of errors! However, I found that the 'files' and 'options' files in the Make folder of transientSimpleDyMFoam that I had were wrong. The layout of the src folder is different between 1.5-dev and 1.6-ext, thus the compiler could not find the files. I'm a bit confused as I am sure I downloaded the correct version of the solver. However, I solved it by simply changing the paths in the 'options' file. I will try to see where the difference between the 'options' files originated from - maybe different versions of 1.6-ext exist? Regards, Thomas |
| | | |
|
 | | |


OpenFOAM®-Extend World
You need to upgrade your Flash Player

©Copyright 2012 The OpenFOAM® Extend Project
Powered by Joomla! Designed by Joomla Templates, ecommerce web hosting, Thanks to J! Developer Goran Gligorin for support! Joomla SEF URLs by Artio. Powered by Staff Master v0.9.8 Valid: XHTML and CSS