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

[swak4Foam] swak4foam for OpenFOAM 4.0

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

Like Tree24Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2016, 06:19
Default swak4foam for OpenFOAM 4.0
  #1
Member
 
Join Date: May 2015
Posts: 33
Rep Power: 5
mnikku is on a distinguished road
So, this is pretty soon after the new version was launched, but has anyone managed to install swak4foam for OpenFOAM 4.0? Any ideas is the current version available even compatible? I couldn't get the development version to install "out of the box" and decided to ask around first to see if I should spend time trying on it, that is is it even possible or not.
3004207032 likes this.
mnikku is offline   Reply With Quote

Old   July 11, 2016, 11:07
Thumbs down compilation error !
  #2
Senior Member
 
Join Date: Sep 2010
Location: France
Posts: 226
Rep Power: 11
T.D. is on a distinguished road
Hi,

I tried to compile swak4foam version 0.4 with openfoam4.0 (in 64 bit), but always with no success. here the error:

Code:
...
...
-o Make/linux64GccDPInt64Opt/helpers/exprString.o
In file included from lnInclude/CommonValueExpressionDriver.H:843:0,
                 from helpers/exprString.C:39:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<bool> > Foam::CommonValueExpressionDriver::doLogicalNot(const Foam::Field<bool>&)’:
lnInclude/CommonValueExpressionDriverI.H:1176:22: error: assignment of read-only location ‘(& res.Foam::tmp<T>::operator()<Foam::Field<bool> >())->Foam::Field<bool>::<anonymous>.Foam::List<bool>::<anonymous>.Foam::UList<T>::operator[]<bool>(i)’
             res()[i] = a[i];
                      ^
/home/TD/OpenFOAM/OpenFOAM-4.0/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt64Opt/helpers/exprString.o' failed
make: *** [Make/linux64GccDPInt64Opt/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
Regards,
T.D.
T.D. is offline   Reply With Quote

Old   July 12, 2016, 02:51
Default
  #3
Member
 
Join Date: May 2015
Posts: 33
Rep Power: 5
mnikku is on a distinguished road
Seems pretty similar to the error I received:
Code:
...
In file included from lnInclude/CommonValueExpressionDriver.H:843:0,
                 from helpers/exprString.C:39:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<bool> > Foam::CommonValueExpressionDriver::doLogicalNot(const Foam::Field<bool>&)’:
lnInclude/CommonValueExpressionDriverI.H:1170:22: error: assignment of read-only location ‘(& res.Foam::tmp<T>::operator()<Foam::Field<bool> >())->Foam::Field<bool>::<anonymous>.Foam::List<bool>::<anonymous>.Foam::UList<T>::operator[]<bool>(i)’
             res()[i] = a[i];
                      ^

...

make: *** [Make/linux64GccDPOpt/helpers/exprString.o] Error 1
make: *** Waiting for unfinished jobs....
Parser library did not compile OK. No sense continuing as everything else depends on it
mnikku is offline   Reply With Quote

Old   July 27, 2016, 15:30
Default
  #4
New Member
 
Sam Salehian
Join Date: Jul 2016
Posts: 4
Rep Power: 4
SmokedJuggler is on a distinguished road
Hi everyone,

I am trying to install sawkFOAM

my un=buntu version is 14.04
OpenFOAM version is 4.0

Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)


I am getting the following errors:

reviously compiled for OpenFOAM 4.0

/home/sam/OpenFOAM/sam-4.0/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

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/sam/OpenFOAM/sam-4.0/swak4Foam' (.hg not found)!
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: openfoam
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/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 ‘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];
^
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 would appreciate if someone could help me


Regards,
Attached Files
File Type: gz logs.tar.gz (1.3 KB, 6 views)
SmokedJuggler is offline   Reply With Quote

Old   August 4, 2016, 14:22
Default
  #5
New Member
 
fluidflow
Join Date: Dec 2015
Posts: 5
Rep Power: 4
ARUNAVA SENGUPTA is on a distinguished road
Hi All,

I am also getting the same error while installing swak4Foam in OpenFOAM 4.0 in ubuntu 14.04. Any help how to rectify the error ?


With regards,

here is the tarball attachment of the log file
Attached Files
File Type: gz logs.tar.gz (1.6 KB, 2 views)

Last edited by wyldckat; September 17, 2016 at 06:51. Reason: merged posts done a few minutes apart
ARUNAVA SENGUPTA is offline   Reply With Quote

Old   August 4, 2016, 15:17
Default swak4Foam installation in OpenFOAM 4.0
  #6
New Member
 
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 4
fluidflowsteel is on a distinguished road
Hi All,


I am trying to install swak4Foam in OpenFOAM 4.0 in Ubuntu 14.04. Getting the following error. also find attached the tarball of the log file.



Code:
Previously compiled for OpenFOAM 4.0
/home/arunava/OpenFOAM/arunava-4.0/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)
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/arunava/OpenFOAM/arunava-4.0/swak4Foam' (.hg not found)!
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: openfoam
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/exprString.C -o Make/linux64GccDPInt32Opt/helpers/exprString.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c repositories/GlobalVariablesRepository.C -o Make/linux64GccDPInt32Opt/repositories/GlobalVariablesRepository.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c namedEnums/MeshInterpolationOrder.C -o Make/linux64GccDPInt32Opt/namedEnums/MeshInterpolationOrder.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c namedEnums/LogicalAccumulationNamedEnum.C -o Make/linux64GccDPInt32Opt/namedEnums/LogicalAccumulationNamedEnum.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c namedEnums/NumericAccumulationNamedEnum.C -o Make/linux64GccDPInt32Opt/namedEnums/NumericAccumulationNamedEnum.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c ExpressionDriverWriter.C -o Make/linux64GccDPInt32Opt/ExpressionDriverWriter.o
In file included from lnInclude/CommonValueExpressionDriver.H:843:0,
from helpers/exprString.C:39:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<bool> > Foam::CommonValueExpressionDriver::doLogicalNot(const Foam::Field<bool>&)’:
lnInclude/CommonValueExpressionDriverI.H:1176:22: error: assignment of read-only location ‘(& res.Foam::tmp<T>::operator()<Foam::Field<bool> >())->Foam::Field<bool>::<anonymous>.Foam::List<bool>::<anonymous>.Foam::UList<T>::operator[]<bool>(i)’
res()[i] = a[i];
^
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c ExpressionResult/ExpressionResult.C -o Make/linux64GccDPInt32Opt/ExpressionResult/ExpressionResult.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c ExpressionResult/StoredExpressionResult.C -o Make/linux64GccDPInt32Opt/ExpressionResult/StoredExpressionResult.o
In file included from CommonValueExpressionDriver.H:843:0,
from ExpressionDriverWriter.C:39:
CommonValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<bool> > Foam::CommonValueExpressionDriver::doLogicalNot(const Foam::Field<bool>&)’:
CommonValueExpressionDriverI.H:1176:22: error: assignment of read-only location ‘(& res.Foam::tmp<T>::operator()<Foam::Field<bool> >())->Foam::Field<bool>::<anonymous>.Foam::List<bool>::<anonymous>.Foam::UList<T>::operator[]<bool>(i)’
res()[i] = a[i];
^
make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
make: *** Waiting for unfinished jobs....
ExpressionResult/ExpressionResult.C: In member function ‘void Foam::ExpressionResult::uglyDelete()’:
ExpressionResult/ExpressionResult.C:311:20: warning: deleting ‘void*’ is undefined [enabled by default]
delete valPtr_;
^
make: *** [Make/linux64GccDPInt32Opt/ExpressionDriverWriter.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
with regards,
Attached Files
File Type: gz logs.tar.gz (1.6 KB, 3 views)

Last edited by wyldckat; September 11, 2016 at 15:58. Reason: Added [CODE][/CODE] markers
fluidflowsteel is offline   Reply With Quote

Old   August 4, 2016, 17:18
Default
  #7
Member
 
Jeff
Join Date: May 2016
Posts: 40
Rep Power: 4
jf_vt is on a distinguished road
According to the developper:
https://twitter.com/swakPyFoam

OF 4.0 is not supported in swak 0.4.0

I am also waiting

JF
jf_vt is offline   Reply With Quote

Old   August 16, 2016, 12:43
Default
  #8
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 5
pupo is on a distinguished road
Any updates on this front?

cheers
pupo is offline   Reply With Quote

Old   September 9, 2016, 16:27
Default bump!
  #9
New Member
 
Skanner Darkly
Join Date: Jul 2016
Posts: 3
Rep Power: 4
samtheman23 is on a distinguished road
me too!

Would love to see swak4Foam work in OF4.0. Seems like an amazing 'toolset'.
samtheman23 is offline   Reply With Quote

Old   September 14, 2016, 05:47
Default me too, too
  #10
New Member
 
Kim Ravn-Jensen
Join Date: Oct 2013
Location: Copenhagen, Denmark
Posts: 3
Rep Power: 7
kimrj is on a distinguished road
I would have liked to contribute with a swak4Foam build for OpenFOAM 4.0. In the absense of that, I can contribute with:
  1. samtheman23: swak4Foam is an amazing toolset. I use swak4Foam on a daily basis with OpenFOAM 2.3.1.
  2. The compilation error message quoted above in this thread is a rather trivial consequence of a class method layout modification in OpenFOAM 4.0. However, when this has been corrected, (to me) nontrivial compilation error messages follow. I believe that swak4Foam can only be updated by somebody who really understands the swak4Foam code as well as the new class standards of OpenFOAM 4.0.
Coding gurus, please come to our rescue...
kimrj is offline   Reply With Quote

Old   September 16, 2016, 11:43
Default
  #11
New Member
 
Lucas
Join Date: Aug 2016
Location: Netherland
Posts: 8
Rep Power: 4
LucasCosta is on a distinguished road
have someone resolved this problem?
LucasCosta is offline   Reply With Quote

Old   September 17, 2016, 06:56
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,381
Blog Entries: 41
Rep Power: 114
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer to everyone on this thread: Bernhard, the author of swak4Foam, is working on this, as he's mentioned here: https://twitter.com/bgschaid/status/776174507073699841 - and I quote:
Quote:
Currently working on making #swak4foam compile on 4.0 The removal of „const &“ breaks a lot of stuff
There were a lot of changes made between OpenFOAM 3.0 and 4.0, which has lead to the current delay in an update for swak4Foam. And since each release of swak4Foam has to support more than one OpenFOAM version, it's taking longer this time to solve the current massive changes that happened in OpenFOAM.

You may have to wait at least a few more weeks until it's fully operational. In the meantime, if you truly need to use swak4Foam, you might want to take a step back to OpenFOAM 3.0.1.
__________________
wyldckat is offline   Reply With Quote

Old   September 26, 2016, 18:23
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,381
Blog Entries: 41
Rep Power: 114
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick news update: Bernhard has managed to finish adapting swak4Foam to build with OpenFOAM 4.0 and OpenFOAM+ v1606+: https://twitter.com/swakPyFoam/statu...93042482642948

I won't be able to update and test the wiki right now, but here is what I expect that will work as intended, for the steps on how to download swak4Foam from the Mercurial repository:
  1. First, go into a good working folder. Run the following commands in a terminal to get to a good folder:
    Code:
    mkdir -p $FOAM_RUN
    cd "$FOAM_RUN/../"
  2. The use either the first or the second option below:
    1. From the main Mercurial development repository, using the hg command, download from the repository and checkout the right branch:
      Code:
      hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
      cd swak4Foam && hg update develop
    2. Or manually download a snapshot from the Mercurial interface at Sourceforge.net:
      1. Go to this page: Mercurial repository for swak4Foam - branch "develop"
      2. Request a snapshot on that page; in other words click on the link Download Snapshot.
      3. Unpack the downloaded file and move the unpacked folder, into the folder indicated by this command: pwd
      4. Rename the folder to "swak4Foam".
These steps above will replace the step #3 on this list: http://openfoamwiki.net/index.php/In...tall_swak4Foam


edit: On post #40 you can find more details about how these instructions alone were a bit flawed.
arvindpj and mf3 like this.

Last edited by wyldckat; October 30, 2016 at 10:37. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   September 27, 2016, 14:58
Default
  #14
New Member
 
Pedram
Join Date: Sep 2016
Posts: 3
Rep Power: 4
cfdGeek is on a distinguished road
Thanks wyldckat,
Though it's still giving the same error:

make: *** [Make/linux64GccDPInt32Opt/FieldValueExpressionParser.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
cfdGeek is offline   Reply With Quote

Old   September 27, 2016, 15:39
Default
  #15
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,076
Rep Power: 44
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by cfdGeek View Post
Thanks wyldckat,
Though it's still giving the same error:

make: *** [Make/linux64GccDPInt32Opt/FieldValueExpressionParser.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
The actual error is a few lines above what you're posting. Please look for that
BTW: are you using the released version of OF 4.0?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 27, 2016, 16:27
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,381
Blog Entries: 41
Rep Power: 114
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quote:
Originally Posted by gschaider View Post
The actual error is a few lines above what you're posting. Please look for that
BTW: are you using the released version of OF 4.0?
Quick status: swak4Foam "develop" branch, commit "3077:1989d3b9632b":
  1. Cannot be built with OpenFOAM 4.0, due at least to a bug in "src/finiteVolume/finiteVolume/fvc/fvcD2dt2.C", that was fixed here: https://github.com/OpenFOAM/OpenFOAM...3fdbb2d78ebe3e
  2. Cannot be built with the released OpenFOAM+ v1606+, due to the same exact bug
  3. Can be built with OpenFOAM 4.x, at least with the tree up commit be7fba6cff9b.
The tweet was a bit misleading The released snapshot versions are not supported, only the repository versions seem to be...
wyldckat is offline   Reply With Quote

Old   September 27, 2016, 17:31
Default
  #17
New Member
 
Pedram
Join Date: Sep 2016
Posts: 3
Rep Power: 4
cfdGeek is on a distinguished road
Quote:
Originally Posted by gschaider View Post
The actual error is a few lines above what you're posting. Please look for that
BTW: are you using the released version of OF 4.0?
Thanks for quick reply, here is the error:
../FieldValueExpressionParser.yy:3697:13: required from here
/opt/openfoam4/src/finiteVolume/lnInclude/fvcD2dt2.C:53:20: error: passing ‘const Foam::fv::d2dt2Scheme<Foam::SphericalTensor<double > >’ as ‘this’ argument of ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > Foam::fv::d2dt2Scheme<Type>::fvcD2dt2(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::SphericalTensor<double>]’ discards qualifiers [-fpermissive]

and to answer your question yes I'm using OF 4.0
cfdGeek is offline   Reply With Quote

Old   September 27, 2016, 19:12
Default
  #18
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,076
Rep Power: 44
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Quick status: swak4Foam "develop" branch, commit "3077:1989d3b9632b":
  1. Cannot be built with OpenFOAM 4.0, due at least to a bug in "src/finiteVolume/finiteVolume/fvc/fvcD2dt2.C", that was fixed here: https://github.com/OpenFOAM/OpenFOAM...3fdbb2d78ebe3e
  2. Cannot be built with the released OpenFOAM+ v1606+, due to the same exact bug
  3. Can be built with OpenFOAM 4.x, at least with the tree up commit be7fba6cff9b.
The tweet was a bit misleading The released snapshot versions are not supported, only the repository versions seem to be...
Nope. I added patches to the sources https://sourceforge.net/p/openfoam-e...distroPatches/ and also pointed to them in the README. There is only soo much place in a tweet
wyldckat and Vanadyel like this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 27, 2016, 19:14
Default
  #19
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,076
Rep Power: 44
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by cfdGeek View Post
Thanks for quick reply, here is the error:
../FieldValueExpressionParser.yy:3697:13: required from here
/opt/openfoam4/src/finiteVolume/lnInclude/fvcD2dt2.C:53:20: error: passing ‘const Foam::fv::d2dt2Scheme<Foam::SphericalTensor<double > >’ as ‘this’ argument of ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > Foam::fv::d2dt2Scheme<Type>::fvcD2dt2(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::SphericalTensor<double>]’ discards qualifiers [-fpermissive]

and to answer your question yes I'm using OF 4.0
Yep. That is a bug in the OF 4.0 sources. Have a look in the distroPatches directory and apply the patch to your distribution. The problem should be fixed in the next OF-release
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 30, 2016, 09:05
Default swak4foam for OpenFOAM 4.0
  #20
New Member
 
Sachin
Join Date: Sep 2016
Location: Poitiers,France
Posts: 17
Rep Power: 4
smodh is on a distinguished road
hi....i am new in openfoam. is there anybody know how to install swak4Foam in openfoam4.0.


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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c repositories/RepositoryBase.C -o Make/linux64GccDPInt32Opt/repositories/RepositoryBase.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c repositories/SurfacesRepository.C -o Make/linux64GccDPInt32Opt/repositories/SurfacesRepository.o
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/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/fileFormats/lnInclude -I/opt/openfoam4/src/triSurface/lnInclude -I/opt/openfoam4/src/dynamicMesh/lnInclude -I/opt/openfoam4/src/surfMesh/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c repositories/MeshesRepository.C -o Make/linux64GccDPInt32Opt/repositories/MeshesRepository.o
/opt/openfoam4/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed
make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
make: *** Waiting for unfinished jobs....
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
smodh is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4Foam installation on OpenFOAM 4.0 blttkgl OpenFOAM Community Contributions 1 March 14, 2017 11:06
[swak4Foam] and twoPhaseEulerFoam mnikku OpenFOAM Community Contributions 1 February 19, 2016 05:21
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 10:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 17:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00


All times are GMT -4. The time now is 19:01.