![]() |
swak4Foam compilation for OF-2.0.0
HI Everybody,
I have downloaded and installed swak4Foam as it is described in the wiki. First the compilation process seemed normal to me but then I discovered that it doesnt work. So I got a closer look at the compilation output: It starts normal with: Quote:
further down I find more odd lines: Quote:
Quote:
Quote:
Quote:
Quote:
thanks camoesas |
I just detected, that the compilation process made me a new Directory:
/OpenFOAM/OpenFOAM-2.0.x/ But I am using: /OpenFOAM/OpenFOAM-2.0.0/ Could it be, that I have to define a path somewhere? |
Greetings Camoesas,
The current version of swak4Foam is designed for 2.0.x, not 2.0.0 and might not work in 2.0.1. If you really want it to work for those older versions, you'll need to get an older version of swak4Foam from SVN. Search for a tutorial on how to use SVN (subversion) and go back to one of the older versions ;) Best regards, Bruno |
Quote:
Bruno is right in the other posting: it seems that swak4Foam does not correctly compile with 2.0.0 as the header fixedJumpFvPatchField.H was introduced afterwards. As a workaround remove the line groovyBCJumpFvPatchFields.C from Libraries/groovyBC/Make/files and it should work. Probably you won't need that BC anyway. The new directory thing is strange. I don't see how an innocent compilation can create that Bernhard |
Hi Bernhard and Camoesas!
I forgot about that issue... probably it's a conflict of multiple installations of OpenFOAM. For these issues I have a blog post about it: Advanced tips for working with the OpenFOAM shell environment ;) Best regards, Bruno |
Hi Bruno,
Hi Bernhard, I removed the line: groovyBCJumpFvPatchFields.C And AFAIK its working now. Thank you very much! Camoesas |
Hi all,
i am trying to compile swak4foam on OpenFoam 2.1.0. I got some warnings of the same type of camoesas and some errors: Code:
"../FieldValueExpressionLexer.ll", line 25: unrecognized %option: reentrantCode:
Make/linux64GccDPOpt/funkySetBoundaryField.o: In function `main':thanks andrea |
Greetings Andrea,
It would be good to know the following details:
Bruno |
HI Bruno,
I updated flex to the required version and i managed to compile. That was the problem. thanks andrea |
I get below errors after "wmake all" for swak4Foam. Could anybody help me how to solve the problem?
Your cooperation is highly appreciated. /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: tmp declared as a virtual field /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ; before < token funkySetFields.C:864: error: expected } at end of input /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: tmp declared as a virtual field /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of tmp with no type /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ISO C++ forbids declaration of tmp with no type /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ISO C++ forbids declaration of tmp with no type make[1]: *** [Make/linux64GccDPOpt/funkySetFields.o] Error 1 make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/funkySetFields' not remade because of errors. make: *** [funkySetFields] Error 2 In file included from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volFields.H:38, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: tmp declared as a virtual field /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: tmp declared as a virtual field from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.C:30, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: expected ; before < token from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:234, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ; before virtual /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ; before virtual from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolate.H:41, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: ISO C++ forbids declaration of tmp with no type /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: ISO C++ forbids declaration of tmp with no type from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvc.H:39, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: tmp declared as a virtual field /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: tmp declared as a virtual field from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:8, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ; before < token from funkyDoCalc.C:39: /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of tmp with no type /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of tmp with no type /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected template-name before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ; before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected { before < token In file included from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volFields.H:38, In file included from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volFields.H:38, /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected unqualified-id before < token from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.C:30, from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.C:30, funkyDoCalc.C:160: error: expected } at end of input from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:234, from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:234, from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolate.H:41, from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolate.H:41, make[1]: *** [Make/linux64GccDPOpt/funkyDoCalc.o] Error 1 from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvc.H:39, make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' not remade because of errors. make: *** [funkyDoCalc] Error 2 from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvc.H:39, from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:8, from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:8, from replayTransientBC.C:39: from funkySetBoundaryField.C:39: /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected template-name before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected template-name before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected { before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected { before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected unqualified-id before < token /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected unqualified-id before < token replayTransientBC.C:182: error: expected } at end of input funkySetBoundaryField.C:186: error: expected } at end of input make[1]: *** [Make/linux64GccDPOpt/replayTransientBC.o] Error 1 make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/replayTransientBC' not remade because of errors. make: *** [replayTransientBC] Error 2 make[1]: *** [Make/linux64GccDPOpt/funkySetBoundaryField.o] Error 1 make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' not remade because of errors. make: *** [funkySetBoundaryField] Error 2 make: Target `application' not remade because of errors. |
Quote:
Just for fun: above the line #include "fvCFD.H" insert the line #include "tmp.H" into funkySetFields.C and see what happens (BTW: the libraries compile without problem? THAT is strange) |
compiling swak4Foam on openfoam-2.1.0
Dear
I am using openfaom-2.1.0 and attempted to compile swak4Foam. I just followed the instruction give on openfoamwiki, but it showed problems. (I think i did not setup swakconfiguration file correctly) and showing error of "cannot find -lOpenfaom" and after running the ./Allwmake from swak4Foam other utilities also stop working. And if i try to compile the standard solvers or utilites the same error pop up ...:confused: Regards Jamal |
Quote:
Quote:
Please let me know which thing are required to set firt before compilining swak4foam, while i am using OpenFoam-2.1.0 |
Quote:
|
Quote:
The other output you post only has warnings so I can't tell what the problem is |
Dear
a) download and extract the swak4foam package b) without making any change in any file i ran ./Allwmake Following are the starting lines after ./Allwmake from the swak4foam folder located in user directory in application/utilities. Quote:
Do i need to make any change in any file to work it properly. thanks |
Quote:
Warnings are warnings: indications that there MIGHT be a problem but do not necessarily that there IS a problem. Most of these warnings can't be avoided as they come from the code generated by the bison compiler-generator and are not problems. Rerun ./Allwmake. Output should now be much shorter. If there are errors in that, then you have a problem. Also check whether binaries were written to the directories $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN, whether the funkySetFields-utility runs. |
Dear
I appreciate your help and looking for more. Following message is written after rerun ./Allwmake Quote:
|
Quote:
My suggestion: don't set the SWAK_PYTHON-variables at all. That way swak will be compiled without Python-support. If you later need it you can retry configuring it correctly |
Dear
Thanks. It configured correctly and have compiled. Regards |
| All times are GMT -4. The time now is 19:04. |