CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] swak4Foam and OpenFoam 3.0.x

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2016, 08:20
Default
  #21
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
Quote:
Originally Posted by ancolli View Post
if i do the installation as you say i obtain an error in:

git checkout port_2.0.x

Code:
error: pathspec 'port_2.0.x' did not match any file(s) known to git.
Ok, this is not a big deal. I copied to you my private notes for swak4Foam installation and may be the command above is not needed or a mistake.

However, if you successfully downloaded swak4Foam via HG or GIT or whatever, you should compile Bison. This should take a while, but has to finish without any errors. The error point to a line in swakConfiguration which is related to Bison, so I assume that there is some error. Be sure that all necessary packages for swak4Foam are installed and all environment variables are set correctly, e.g., check this link
https://openfoamwiki.net/index.php/I...ling_On/Ubuntu

Best regards,
Fabian
fs82 is offline   Reply With Quote

Old   April 8, 2016, 08:44
Default
  #22
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Quote:
Originally Posted by fs82 View Post
Ok, this is not a big deal. I copied to you my private notes for swak4Foam installation and may be the command above is not needed or a mistake.

However, if you successfully downloaded swak4Foam via HG or GIT or whatever, you should compile Bison. This should take a while, but has to finish without any errors. The error point to a line in swakConfiguration which is related to Bison, so I assume that there is some error. Be sure that all necessary packages for swak4Foam are installed and all environment variables are set correctly, e.g., check this link
https://openfoamwiki.net/index.php/I...ling_On/Ubuntu

Best regards,
Fabian
Yes, I have done all that is indicated in that link. I can not find an error

make.log.tar.gz
ancolli is offline   Reply With Quote

Old   April 8, 2016, 09:02
Default
  #23
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
What is the output of ./maintainanceScripts/compileRequirements.sh
fs82 is offline   Reply With Quote

Old   April 8, 2016, 09:06
Default
  #24
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Quote:
Originally Posted by fs82 View Post
What is the output of ./maintainanceScripts/compileRequirements.sh

This script is rather crude. If it doesn't work try the steps by hand. And be sure to run it from the root of the swak-installation (as ./maintainanceScripts/compileRequirements.sh). Otherwise it probably won't work

Bison alread installed/compiled
Bison successfully compiled

Add /home/ancolli/OpenFOAM/ancolli-v3.0+/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically
ancolli is offline   Reply With Quote

Old   April 8, 2016, 09:26
Default
  #25
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
If I am right you are using OpenFoam 3.0+ provided by ESI right? If so, it might be possible that swak4Foam does not compile due to incompatibilities between OpenFoam+ and OpenFoam. May be some of the scripts detect the wrong or no OpenFoam version. That is something beyond my knowledge.
fs82 is offline   Reply With Quote

Old   April 8, 2016, 09:32
Default
  #26
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Quote:
Originally Posted by fs82 View Post
If I am right you are using OpenFoam 3.0+ provided by ESI right? If so, it might be possible that swak4Foam does not compile due to incompatibilities between OpenFoam+ and OpenFoam. May be some of the scripts detect the wrong or no OpenFoam version. That is something beyond my knowledge.
I think...,. I recently installed Linux Mint and downloaded the latest version of OF. What version Should i use?. do u know how to uninstall the current version?
Thank u very much
ancolli is offline   Reply With Quote

Old   April 8, 2016, 09:39
Default
  #27
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
The correct version depends on what you want to do. You could use the OpenFoam provided by ESI Group (www.openfoam.com), or the version provided by the OpenFoam Foundation of Henry Weller & Co. (www.openfoam.org), or the OpenFoam-Ext version of Hrvoje Jasak & Co (http://www.extend-project.de). All have advantages and disadvantages. You should read and check the cfd-online forum for more information.

The uninstall of OpenFoam depends on how you installed it. Did you compiled it by yourself just remove the OpenFoam directory. Did you downloaded some sort of package *.deb or used the package manager (synaptics or so) than you have to use your package manager to uninstall OpenFoam.
fs82 is offline   Reply With Quote

Old   April 8, 2016, 10:01
Default
  #28
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Quote:
Originally Posted by fs82 View Post
The correct version depends on what you want to do. You could use the OpenFoam provided by ESI Group (www.openfoam.com), or the version provided by the OpenFoam Foundation of Henry Weller & Co. (www.openfoam.org), or the OpenFoam-Ext version of Hrvoje Jasak & Co (http://www.extend-project.de). All have advantages and disadvantages. You should read and check the cfd-online forum for more information.

The uninstall of OpenFoam depends on how you installed it. Did you compiled it by yourself just remove the OpenFoam directory. Did you downloaded some sort of package *.deb or used the package manager (synaptics or so) than you have to use your package manager to uninstall OpenFoam.
What a mess... Like one year without using openfoam. But i did not know that there exist 3 providers. I will look in foros about it. but for sure esi installation is not what i am looking for (i need grovyBC).

I did the source code installation... can i just remove the OpenFoam directory?
ancolli is offline   Reply With Quote

Old   April 8, 2016, 10:20
Default
  #29
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
Yes, just remove the OpenFoam directory and the entries in your bashrc.
fs82 is offline   Reply With Quote

Old   April 20, 2016, 18:52
Default Swak4foam in of3.0+?
  #30
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 11
Minisasi is on a distinguished road
Hello,
I have just installed the v3.0+ release. I did not manage to successfully install swak4foam. I am using ubuntu 14.04.

Here what I have done:
1) downloading swak4foam from this link
https://openfoamwiki.net/index.php/Installation/swak4Foam/Downloading#swak4Foam_development_version_for_Open FOAM_2.x.2F3.x.2Fdev_and_foam-extend_3.x
Section 4

2) I run the script to change the bison version
./maintainanceScripts/compileRequirements.sh

3) I add the path
export PATH=
$/home/userG/OpenFOAM/userG-v3.0+/solvers/swak4Foam/privateRequirements/bin:$PATH

4) I compiled by
./Allwmake > make.log 2>&1

below my make.log

Any hints?

Thank you
Attached Files
File Type: gz make.log.tar.gz (1.6 KB, 14 views)
Minisasi is offline   Reply With Quote

Old   April 22, 2016, 06:25
Default
  #31
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
To be honest, I do not have a clue and not enough time to figure it out. This is a question which should be answered by the developers for swak4foam or the developers of OpenFoam+. I guess it is something with the python scripts and the detection of the correct OpenFoam version. If you look into your make.log ist shows

Code:
OpenFOAM-version: Major  Minor v0 Patch v-1+ (-1 == x / v-1+)
which to my opinion does not make sense. All errors that occur later are related to some version variables, e.g.,
Code:
lnInclude/swak.H:50:30: error: operator '<' has no left operand
 #if (FOAM_VERSION4SWAK_MAJOR < 2)
which seems to support my guess. However, one has to go step by step through all Allwmake files and check where exactly the error occurs and which variables are affected. As I am not one of the swak4Foam developers, this is a very time consuming work. As a starting point I would go through Libraries/Allwmake and trying it step by step.
fs82 is offline   Reply With Quote

Old   April 22, 2016, 12:33
Default
  #32
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 11
Minisasi is on a distinguished road
Thank you for your hint,
I 'll try to check over there and see what happens.
I needed swak4foam to use grooveBC. So worst case scenario I'll have to implement my own BC.

Keep trying,
Thx anyway
Minisasi is offline   Reply With Quote

Old   August 1, 2016, 08:02
Post Different error
  #33
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Hi everyone
I'm using Ubuntu 15.10 with OpenFOAM v1606+ and I'm trying to compile either foamCalcEx or swak4Foam and got a similar error message for both cases:

For swak4Foam I'm getting this error:

Quote:
Previously compiled for OpenFOAM v1606+

/home/sahm/OpenFOAM/ThirdParty-v1606+/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
swakConfiguration: line 13: [: : integer expression expected
Checking swak4Foam-version and generating file
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.39 (Minor version: 39)
OpenFOAM-version: Major 1606 Minor 0 Patch -1 (-1 == x / 98) Fork: openfoamplus
No change to swak4FoamParsers/foamVersion4swak.H
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/finiteVolume/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/sampling/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/fileFormats/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/triSurface/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/dynamicMesh/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/surfMesh/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/lagrangian/basic/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/meshTools/lnInclude -IlnInclude -I. -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/OpenFOAM/lnInclude -I/home/sahm/OpenFOAM/OpenFOAM-v1606+/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/exprString.C -o Make/linux64GccDPInt32Opt/helpers/exprString.o
In file included from lnInclude/CommonValueExpressionDriver.H:843:0,
from helpers/exprString.C:39:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::updateSet(Foam: :autoPtr<T>&, const Foam::word&, Foam::CommonValueExpressionDriver::SetOrigin) const’:
lnInclude/CommonValueExpressionDriverI.H:316:32: error: ‘class Foam::IOobject’ has no member named ‘headerOk’
header.headerOk()
^
lnInclude/CommonValueExpressionDriverI.H:321:65: error: ‘class Foam::IOobject’ has no member named ‘filePath’
Pout << "Rereading from " << header.filePath()
^
lnInclude/CommonValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<bool> > Foam::CommonValueExpressionDriver::doLogicalNot(co nst Foam::Field<bool>&)’:
lnInclude/CommonValueExpressionDriverI.H:1176:22: error: assignment of read-only location ‘(& res.Foam::tmp<T>:perator()<Foam::Field<bool> >())->Foam::Field<bool>::<anonymous>.Foam::List<bool>:: <anonymous>.Foam::UList<T>:perator[]<bool>(i)’
res()[i] = a[i];
^
/home/sahm/OpenFOAM/OpenFOAM-v1606+/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed
make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
I got a similar error message related to headerOk member function when I was trying to make the foamCalcEx library. What is causing this error and how can I fix it? I tried finding this error message in forums and couldn't find much. I would appreciate any help. As you can see, there's a similar error related to filePath member function (which doesn't exist).

Thanks.
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 6, 2016, 07:08
Default
  #34
New Member
 
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10
Esmaeelef is on a distinguished road
Dear Sergei,

I am using Ubuntu 14.04 and OpenFoam 3. I desperately need swak4foam, however, when I want to compile it I receive an error as below:

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
abort: no repository found in '/home/esmaeel/swak4Foam' (.hg not found)!
Swak version is 0.4.0
./Allwmake: line 61: wmake: command not found

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard

I would be so thankful if you let me know any solution you have to solve this problem. Thank you in advance.



Quote:
Originally Posted by Zeppo View Post
I have recompiled OpenFOAM with WM_LABEL_SIZE=32 and then swak4Foam has been built with no issues. Are you sure you really need more than (2^32)/2=2147483648 cells, patches, regions etc in your simulations? Just wondering.

Btw, shouldn't "label" be typedefed as "unsigned int" or "unsigned long int"? As far as I can see, objects of this type is only used to index data containers.

I opened a ticket with a bug report: https://sourceforge.net/p/openfoam-e...swak4foam/233/
Esmaeelef is offline   Reply With Quote

Old   August 6, 2016, 14:51
Default
  #35
New Member
 
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 11
towanda is on a distinguished road
I think you need to configure a mercurial file.
Esmaeelef likes this.
towanda is offline   Reply With Quote

Old   August 10, 2016, 02:57
Default
  #36
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Salam AghaEsmaeel

I think you didn't download it using mercurial, but I suggest you do so. In case you don't have it, You should install mercurial first (sudo apt-get install mercurial) and then use the installer guide of swak4foam to install it.
Esmaeelef likes this.
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 10, 2016, 04:07
Default
  #37
New Member
 
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10
Esmaeelef is on a distinguished road
Quote:
Originally Posted by sahm View Post
Salam AghaEsmaeel

I think you didn't download it using mercurial, but I suggest you do so. In case you don't have it, You should install mercurial first (sudo apt-get install mercurial) and then use the installer guide of swak4foam to install it.
Dear Sahm,

Salam

Many thanks for your response, actually, I was in a hurry, so I installed Ubuntu 12.04 and OpenFoam 220 on which previously I could successfully install swak4foam. So, the Swak4foam is already installed on my system. But, thank you for your suggestion; I will implement it later on when I upgrade my Linux environment.
Esmaeelef is offline   Reply With Quote

Old   June 25, 2018, 13:01
Default
  #38
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14
ahmmedshakil is on a distinguished road
Hi
Can you enlighten me how you solve the following problem?

/home/admin1/OpenFOAM/openfoam-extend-swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Checking swak4Foam-version and generating file
Swak version is 0.4.1
Bison is version 2.7.12-4996
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 5 Minor 0 Patch 0 (-1 == x / 0) Fork: openfoam
No change to swak4FoamParsers/foamVersion4swak.H
wmake libso swak4FoamParsers
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/surfMesh/lnInclude -I/opt/openfoam5/src/sampling/lnInclude -I/opt/openfoam5/src/fileFormats/lnInclude -I/opt/openfoam5/src/triSurface/lnInclude -I/opt/openfoam5/src/dynamicMesh/lnInclude -I/opt/openfoam5/src/lagrangian/basic/lnInclude -I/opt/openfoam5/src/surfMesh/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/exprString.C -o Make/linux64GccDPInt32Opt/helpers/exprString.o
In file included from lnInclude/CommonValueExpressionDriver.H:847:0,
from helpers/exprString.C:39:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::updateSet(Foam: :autoPtr<T>&, const Foam::word&, Foam::CommonValueExpressionDriver::SetOrigin) const’:
lnInclude/CommonValueExpressionDriverI.H:326:32: error: ‘class Foam::IOobject’ has no member named ‘headerOk’
header.headerOk()
^~~~~~~~
lnInclude/CommonValueExpressionDriverI.H:336:43: error: ‘class Foam::IOobject’ has no member named ‘filePath’; did you mean ‘rootPath’?
<< header.filePath()
^~~~~~~~
rootPath
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed
make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
ahmmedshakil is offline   Reply With Quote

Old   September 10, 2018, 18:44
Default
  #39
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 8
foadsf is on a distinguished road
I am also having similar issue compiling. i get the error message:

Quote:
In file included from lnInclude/CommonValueExpressionDriver.H:847:0,
from helpers/exprString.C:39:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::updateSet(Foam: :autoPtr<T>&, const Foam::word&, Foam::CommonValueExpressionDriver::SetOrigin) const’:
lnInclude/CommonValueExpressionDriverI.H:326:32: error: ‘class Foam::IOobject’ has no member named ‘headerOk’
header.headerOk()
^
lnInclude/CommonValueExpressionDriverI.H:336:43: error: ‘class Foam::IOobject’ has no member named ‘filePath’
<< header.filePath()
^
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed
make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
I reported the bug over here and also informed their Twitter account over here
foadsf is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Problem with swak4Foam and OpenFOAM 2.3.1 behzad-cfd OpenFOAM Community Contributions 4 March 25, 2017 17:19
[swak4Foam] Installing swak4Foam with openFoam v3.0+ RebelLion OpenFOAM Community Contributions 0 March 11, 2016 20:10
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51


All times are GMT -4. The time now is 03:45.