CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Installation Problem with OF 6 version (https://www.cfd-online.com/Forums/openfoam-community-contributions/204659-installation-problem-6-version.html)

Aurel July 29, 2018 11:49

Installation Problem with OF 6 version
 
1 Attachment(s)
Dear all,


I've got problems with the installation of swak4Foam for the OpenFoam 6 version.

May I get some assistance how to fix it?
Attached please find the errors after command './Allwmake' .


I'm using:
Ubuntu 16.04
OF 6
Swak version 0.4.1
Bison is version 2.7.12
Flex is version 2.6.0

Regards
Marc

jf_vt July 30, 2018 07:47

Hi

According to https://twitter.com/swakpyfoam?lang=en
posted on July 15:
your swak version (0.4.1) is too old to compile with OF6.
You should use the development version (0.4.2 as of now) instead

JF

cyss38 July 30, 2018 09:46

You can download and install the new swak4foam version compatible with openfoam-6 with the following command lines :
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam -u develop
cd swak4Foam
./maintainanceScripts/compileRequirements.sh
./Allwmake

Aurel July 30, 2018 16:29

Now swak4Foam it's working.
Thank you very much for your support!!!


Marc

amdk136 November 29, 2018 11:08

Hi,



I am having problems installing swak4FOAM for openFOAM 6. I am using version 0.4.2 of Swak.


The maintenanceScripts folder is compiling correctly, however swak isnšt compiling properly and I have the following errors.
Quote:

Reading variables from 'swakConfiguration'
Checking swak4Foam-version and generating file
Swak version is 0.4.2
hg info: 3ee52640067a (develop) tip
Bison: /home/stss2/OpenFOAM/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison is version 3.0.4
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 6 Minor 0 Patch -1 (-1 == x / 98) Fork: org
No swak4FoamParsers/foamVersion4swak.H. Generated

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude
wmake libso swak4FoamParsers
make: Warning: File 'Make/linux64GccDPInt32Opt/options' has modification time 39 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File 'Make/linux64GccDPInt32Opt/options' has modification time 39 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File 'Make/linux64GccDPInt32Opt/sourceFiles' has modification time 39 s in the future
wmakeLnInclude: linking include files to ./lnInclude
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File 'Make/linux64GccDPInt32Opt/sourceFiles' has modification time 38 s in the future
Making dependency list for source file SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
Making dependency list for source file SampledSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/SampledSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/FaceZoneValuePluginFunction.C due to No such file or directory
Making dependency list for source file FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceSetValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/FaceSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellZoneValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/CellZoneValuePluginFunction.C due to No such file or directory
Making dependency list for source file CellSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellSetValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/CellSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file PatchValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file plugins/PatchValuePluginFunction.C due to No such file or directory
could not open file directMappedPatchBase.H for source file plugins/PatchValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/PatchValuePluginFunction.C due to No such file or directory
Making dependency list for source file FieldValuePluginFunction.C
could not open file FieldValueExpressionParser.tab.hh for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file foamString.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedFvPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedPointPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
Making dependency list for source file CommonPluginFunction.C
could not open file foamString.H for source file plugins/CommonPluginFunction.C due to No such file or directory
Making dependency list for source file initSwakFunctionObject.C
could not open file foamTime.H for source file initSwakFunctionObject.C due to No such file or directory
could not open file foamString.H for source file initSwakFunctionObject.C due to No such file or directory
Making dependency list for source file SampledSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSetValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file SampledSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file SampledSurfaceValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file FaceZoneValueExpressionDriver.C due to No such file or directory
Making dependency list for source file CellZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file CellZoneValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file FaceSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file CellSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SetSubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SetSubsetValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file SetSubsetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file SubsetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SubsetValueExpressionLexer.ll
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll due to No such file or directory
could not open file foamString.H for source file SubsetValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file PatchValueExpressionDriver.C
could not open file directMappedFvPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedPointPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionLexer.ll due to No such file or directory
could not open file foamString.H for source file PatchValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file foamString.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file foamString.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file CommonValueExpressionDriver.C
could not open file foamString.H for source file CommonValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SubsetValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy due to No such file or directory
could not open file foamString.H for source file SubsetValueExpressionParser.yy due to No such file or directory
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy due to No such file or directory

This continues on for much longer than this, I've just taken a portion of what I get. A fresh download and compile has been tried, with the same errors occurring every time.



Could anyone shed any light on this?



Thank you
Arthur

cyss38 November 29, 2018 11:44

Do you have DL swak4foam with the '-u develop' option?



hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam -u develop

amdk136 November 29, 2018 12:10

Quote:

Originally Posted by cyss38 (Post 717313)
Do you have DL swak4foam with the '-u develop' option?



hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam -u develop


Hi,


yes, that is the version I was using that got the errors.


Arthur

cyss38 November 29, 2018 12:50

There is no error in your log. There is only warning...


The "could not open.... " lines are not a problem

amdk136 November 30, 2018 08:22

Hi,


Once I let it finish the compiling and I run a file using swak libraries, it tells me that it cannot access swak libraries "...swak...blahblah.so". This is surely to do with those messages saying it cannot open files no?


Thank you for your quick reply!


Arthur

cyss38 November 30, 2018 11:20

i think not... I have the same messages and i have no problems.
Can you send the log output of the compilation?


Perhaps a problem with your $FOAM_USER_LIBBIN $FOAM_USER_APPBIN?


try "ls $FOAM_USER_LIBBIN" and "ls $FOAM_USER_APPBIN" to check if swak4foam is correctly compiled.

prakashPra November 7, 2020 20:05

swak4Foam installation error
 
1 Attachment(s)
Hello Everyone,
I have been trying to create a ono-rectangular alpha.water field fow which I am trying to install swak4Foam. But I guess there is some problem in its installation. I have attached the log.make file with this. It will be really helpful if you could take a look at it.
Thank you

olesen November 8, 2020 10:39

Can also use setExprField instead of swak funky fields if you have access to OpenFOAM-v1912 or v2006

gschaider November 8, 2020 19:35

Quote:

Originally Posted by prakashPra (Post 787102)
Hello Everyone,
I have been trying to create a ono-rectangular alpha.water field fow which I am trying to install swak4Foam. But I guess there is some problem in its installation. I have attached the log.make file with this. It will be really helpful if you could take a look at it.
Thank you

The problem is that in the latest release the compilation script tries to compile funkySetAreaFields which is not supported on the Foundation-flavour of OpenFOAM (OF6, OF7, OF8, not sure about OF9)


The good news is that all the libraries are already compiled (so groovyBC and all functionObjects are already usable) but some utilities (basically those that are alphabetically after funkySetAreaFields). The simplest thing to do is to compile them like this:
Code:

wmake Utilities/funkySetFields
one by one
The problem is already fixed for the next release

prakashPra November 17, 2020 16:35

setExprField: command not found
 
Quote:

Originally Posted by olesen (Post 787140)
Can also use setExprField instead of swak funky fields if you have access to OpenFOAM-v1912 or v2006

Thank you Mark for the reply.
I have been trying to the same thing but unfortunately I can't find it. An error appears, 'command not found'. I am using blueCFD 5.X on windows as well as openfoam7 on ubuntu wsl. I checked into the src/ulitiles folder as well, I couldn't find the file there.

Any help or suggestion would be much appreciated as I have been trying over it for quite good time.

olesen November 18, 2020 17:18

Quote:

Originally Posted by prakashPra (Post 788033)
Thank you Mark for the reply.
I have been trying to the same thing but unfortunately I can't find it. An error appears, 'command not found'. I am using blueCFD 5.X on windows as well as openfoam7 on ubuntu wsl. I checked into the src/ulitiles folder as well, I couldn't find the file there.

Any help or suggestion would be much appreciated as I have been trying over it for quite good time.


openfoam7 (from openfoam.org) will not have this capability, you need openfoam1912 or openfoam2006 (openfoam.com). There is a mingw cross-compiled version for windows (I don't have a link for you, but should be possible to find). Or the ubuntu packages: https://develop.openfoam.com/Develop...ompiled/debian


All times are GMT -4. The time now is 09:32.