CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Swak4FOAM 0.2.3 / OF2.2.x installation error

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

Like Tree9Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 22, 2013, 11:30
Default Swak4FOAM 0.2.3 / OF2.2.x installation error
  #1
New Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Freiburg im Breisgau, Germany
Posts: 11
Rep Power: 3
FerdiFuchs is on a distinguished road
hello everybody!

im trying to build Swak4FOAM 0.2.3 with:
- OpenFOAM2.2.x
- gcc-4.6.4
- flex-2.5.37
- bison-2.4.1

second run of ./Allwmake gives me the following error/message:

Code:
fpfender@sx200:/disk1/users/fpfender/OpenFOAM/source/Swak4Foam_2.x_release_0.2.3$ ./Allwmake
Reading variables from 'swakConfiguration'
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 2 Patch -1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make: *** [/disk1/users/fpfender/OpenFOAM/fpfender-2.2.x/platforms/linux64Gcc46DPOpt/lib/libswak4FoamParsers.so] 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
fpfender@sx200:/disk1/users/fpfender/OpenFOAM/source/Swak4Foam_2.x_release_0.2.3$
I dont really know what to do. I got it to work on another machine with a similar constellation:
- OpenFOAM-2.2.x
- gcc-4.6.4
- flex-2.5.35
- bison-2.4.1
FerdiFuchs is offline   Reply With Quote

Old   May 22, 2013, 11:42
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,751
Rep Power: 36
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by FerdiFuchs View Post
hello everybody!

im trying to build Swak4FOAM 0.2.3 with:
- OpenFOAM2.2.x
- gcc-4.6.4
- flex-2.5.37
- bison-2.4.1

second run of ./Allwmake gives me the following error/message:

Code:
fpfender@sx200:/disk1/users/fpfender/OpenFOAM/source/Swak4Foam_2.x_release_0.2.3$ ./Allwmake
Reading variables from 'swakConfiguration'
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 2 Patch -1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make: *** [/disk1/users/fpfender/OpenFOAM/fpfender-2.2.x/platforms/linux64Gcc46DPOpt/lib/libswak4FoamParsers.so] 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
fpfender@sx200:/disk1/users/fpfender/OpenFOAM/source/Swak4Foam_2.x_release_0.2.3$
I dont really know what to do. I got it to work on another machine with a similar constellation:
- OpenFOAM-2.2.x
- gcc-4.6.4
- flex-2.5.35
- bison-2.4.1
That is weird. Almost nothing in OF would work without libfiniteVolume.so. Check with "ls $FOAM_LIBBIN" if that variable is pointing to the right location. It also states that you have a swakConfiguration-file. Could it be that something in there breaks the variables for compilation?
__________________
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

Last edited by gschaider; May 22, 2013 at 11:42. Reason: Typo
gschaider is online now   Reply With Quote

Old   May 22, 2013, 13:11
Default
  #3
Member
 
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 7
dkingsley is on a distinguished road
Almost everytime I have had a problem with libfiniteVolume.so its been the flex/flex++ definitions under wmake/rules/General that need tweaking for your installed version of flex.
dkingsley is offline   Reply With Quote

Old   May 22, 2013, 13:44
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,751
Rep Power: 36
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by dkingsley View Post
Almost everytime I have had a problem with libfiniteVolume.so its been the flex/flex++ definitions under wmake/rules/General that need tweaking for your installed version of flex.
With swak too? Because that brings its own rules for flex-files. And I don't see how that should influence the linking phase.
__________________
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 online now   Reply With Quote

Old   May 22, 2013, 13:58
Default
  #5
Member
 
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 7
dkingsley is on a distinguished road
my guess is that OpenFOAM 2.2.x did not buillt correctly and libfiniteVolume.so was not created. I have a cluster built on Rocks 5.3.1 which has an old verison of flex that requires changing the rules files. I don't think its a swak problem, it builds just fine on my cluster with OF22x.

EDIT: I just retrieved a new copy of the swak sources from bitbucket and confirmed that it builds against my OF2.2.x that was compiled this morning.

Last edited by dkingsley; May 22, 2013 at 15:28.
dkingsley is offline   Reply With Quote

Old   June 13, 2013, 11:19
Default
  #6
New Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Freiburg im Breisgau, Germany
Posts: 11
Rep Power: 3
FerdiFuchs is on a distinguished road
i did it again. the problem was, my openfoam wasnt build correctly.
but now i got a new problem which im trying to solve since days.

compiling Swak4Foam works, with a few errors:

Code:
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::foreignMeshesFollowTime’ has no member named ‘timeSet’
In file included from /disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
                 from manipulatePatchFieldFunctionObject.H:50,
                 from manipulatePatchFieldFunctionObject.C:37:
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::timeSet() [with OutputFilter = Foam::manipulatePatchField]’:
manipulatePatchFieldFunctionObject.C:51:1:   instantiated from here
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::manipulatePatchField’ has no member named ‘timeSet’
make: *** [Make/linux64Gcc46DPOpt/createSampledSetFunctionObject.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/linux64Gcc46DPOpt/createSampledSurfaceFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/expressionFieldFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/clearExpressionFieldFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/addGlobalVariableFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/manipulateFieldFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/addForeignMeshesFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/foreignMeshesFollowTimeFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/manipulatePatchFieldFunctionObject.o] Error 1
.
.
.
.
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::solveLaplacianPDE’ has no member named ‘timeSet’
make: *** [Make/linux64Gcc46DPOpt/solveLaplacianPDEFunctionObject.o] Error 1
.
.
.
Im getting a few more error messages like this. Does anyone know whats this 'timeSet' and how i get rid of it?

thanks a lot!
FerdiFuchs is offline   Reply With Quote

Old   June 13, 2013, 11:59
Default
  #7
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 96
Rep Power: 4
billie is on a distinguished road
Quote:
Originally Posted by FerdiFuchs View Post
compiling Swak4Foam works, with a few errors:

Code:
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::foreignMeshesFollowTime’ has no member named ‘timeSet’
In file included from /disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
                 from manipulatePatchFieldFunctionObject.H:50,
                 from manipulatePatchFieldFunctionObject.C:37:
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::timeSet() [with OutputFilter = Foam::manipulatePatchField]’:
manipulatePatchFieldFunctionObject.C:51:1:   instantiated from here
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::manipulatePatchField’ has no member named ‘timeSet’
make: *** [Make/linux64Gcc46DPOpt/createSampledSetFunctionObject.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/linux64Gcc46DPOpt/createSampledSurfaceFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/expressionFieldFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/clearExpressionFieldFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/addGlobalVariableFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/manipulateFieldFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/addForeignMeshesFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/foreignMeshesFollowTimeFunctionObject.o] Error 1
make: *** [Make/linux64Gcc46DPOpt/manipulatePatchFieldFunctionObject.o] Error 1
.
.
.
.
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::solveLaplacianPDE’ has no member named ‘timeSet’
make: *** [Make/linux64Gcc46DPOpt/solveLaplacianPDEFunctionObject.o] Error 1
.
.
.
Im getting a few more error messages like this. Does anyone know whats this 'timeSet' and how i get rid of it?

thanks a lot!
It is a new hook to functionObject which was added recently [1] on 2.2.x. I guess swak4foam needs to be adapted to make it build with these new changes but this has not yet happened.

[1] https://github.com/OpenFOAM/OpenFOAM...f57922bec7b80b
billie is offline   Reply With Quote

Old   June 15, 2013, 20:21
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,987
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all!

@Daniel: Many thanks for the report! I've submitted this issue to swak4Foam's bug tracker: https://sourceforge.net/apps/mantisb...iew.php?id=174 - along with the bug fix.

In addition, two notes:
  1. swak4Foam 0.2.4 is already available: swak4Foam - New release post #29
  2. Attached is a patch for this version 0.2.4, for compiling with the latest OpenFOAM 2.2.x.
    • Additionally, for those who don't have Git nor SVN ready to be used for getting the latest swak4Foam 0.2.4, feel free to use the ZIP button at the upper left corner of this page: https://github.com/wyldckat/swak4foam/tree/OF22X - it's already patched for building with OpenFOAM 2.2.x.


For applying the attached patch, do the following steps:
  1. Place the attached file inside the main swak4Foam source code folder (version 0.2.4).
  2. Run the following commands:
    Code:
    gunzip patch_swak2Foam_024_OF22x_49808a1c.gz
    patch -p1 < patch_swak2Foam_024_OF22x_49808a1c
  3. And finally, build swak4Foam:
    Code:
    ./Allwmake > make.log 2>&1
Best regards,
Bruno
Attached Files
File Type: gz patch_swak2Foam_024_OF22x_49808a1c.gz (1.9 KB, 498 views)
wyldckat is offline   Reply With Quote

Old   June 17, 2013, 04:14
Default
  #9
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 96
Rep Power: 4
billie is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Attached is a patch for this version 0.2.4, for compiling with the latest OpenFOAM 2.2.x.
Bruno, thank you very much for the patch. It works perfect.
billie is offline   Reply With Quote

Old   June 18, 2013, 09:21
Default
  #10
New Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Freiburg im Breisgau, Germany
Posts: 11
Rep Power: 3
FerdiFuchs is on a distinguished road
same here! Thank you very much!
FerdiFuchs is offline   Reply With Quote

Old   June 18, 2013, 11:50
Default
  #11
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,751
Rep Power: 36
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Daniel: Many thanks for the report! I've submitted this issue to swak4Foam's bug tracker: https://sourceforge.net/apps/mantisb...iew.php?id=174 - along with the bug fix.
Thanks for the report and the fix. I'm still in Korea so answers are a little slow from my side. Fix is pushed to the Mercurial-repository
__________________
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 online now   Reply With Quote

Old   June 20, 2013, 15:49
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,987
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all!
And you're all welcome!
wyldckat is offline   Reply With Quote

Old   July 31, 2013, 11:26
Default
  #13
Member
 
Join Date: Feb 2012
Posts: 55
Rep Power: 4
Raymond.Leoi is on a distinguished road
Does it work for OpenFoam 2.1?
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Daniel: Many thanks for the report! I've submitted this issue to swak4Foam's bug tracker: https://sourceforge.net/apps/mantisb...iew.php?id=174 - along with the bug fix.

In addition, two notes:
  1. swak4Foam 0.2.4 is already available: swak4Foam - New release post #29
  2. Attached is a patch for this version 0.2.4, for compiling with the latest OpenFOAM 2.2.x.
    • Additionally, for those who don't have Git nor SVN ready to be used for getting the latest swak4Foam 0.2.4, feel free to use the ZIP button at the upper left corner of this page: https://github.com/wyldckat/swak4foam/tree/OF22X - it's already patched for building with OpenFOAM 2.2.x.


For applying the attached patch, do the following steps:
  1. Place the attached file inside the main swak4Foam source code folder (version 0.2.4).
  2. Run the following commands:
    Code:
    gunzip patch_swak2Foam_024_OF22x_49808a1c.gz
    patch -p1 < patch_swak2Foam_024_OF22x_49808a1c
  3. And finally, build swak4Foam:
    Code:
    ./Allwmake > make.log 2>&1
Best regards,
Bruno
Raymond.Leoi is offline   Reply With Quote

Old   July 31, 2013, 18:15
Default
  #14
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,751
Rep Power: 36
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Raymond.Leoi View Post
Does it work for OpenFoam 2.1?
I think you won't need it there. The problem was introduced by a method added with 2.2.x ... so 2.1 is fine
__________________
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 online now   Reply With Quote

Old   August 1, 2013, 04:55
Default
  #15
Member
 
Join Date: Feb 2012
Posts: 55
Rep Power: 4
Raymond.Leoi is on a distinguished road
Thanks, Bernhard. I wonder where I can directly download the swak4Foam source code? For some reason, the method in wikiOpenfoam didn't work to me.

Quote:
Originally Posted by gschaider View Post
I think you won't need it there. The problem was introduced by a method added with 2.2.x ... so 2.1 is fine
Raymond.Leoi is offline   Reply With Quote

Old   August 2, 2013, 06:12
Default
  #16
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,751
Rep Power: 36
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Raymond.Leoi View Post
Thanks, Bernhard. I wonder where I can directly download the swak4Foam source code? For some reason, the method in wikiOpenfoam didn't work to me.
Which methods did you try and what is the problem? (both repositories - SVN and Mercurial - are up and running)
__________________
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 online now   Reply With Quote

Old   October 9, 2013, 11:49
Default accessing swake4Foam installed by another user on cluster...
  #17
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 3
aujamal20 is an unknown quantity at this point
Hello Formers,
My problem is ...
OF 2.2.x is installed on server and one of the users have installed swak4foam0.2.3 in his user_directory. I am trying to use that installation by adding the following line in bash_profile-->
export SWAKFFOAM_SRC= /OpenFOAM/user-2.2.x/lib/Swak4Foam.0.2.3/Libraries
But groovyBC remains unknown.....
waiting for valuable suggestion.

Regards.
aujamal20 is offline   Reply With Quote

Old   October 9, 2013, 16:26
Default
  #18
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,751
Rep Power: 36
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aujamal20 View Post
Hello Formers,
My problem is ...
OF 2.2.x is installed on server and one of the users have installed swak4foam0.2.3 in his user_directory. I am trying to use that installation by adding the following line in bash_profile-->
export SWAKFFOAM_SRC= /OpenFOAM/user-2.2.x/lib/Swak4Foam.0.2.3/Libraries
But groovyBC remains unknown.....
waiting for valuable suggestion.

Regards.
My guess is that you forgot to add the library to the libs-entry.

Or the problem is that swak installs its libraries to FOAM_USER_LIBBIN which is different for different users
__________________
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 online now   Reply With Quote

Old   October 25, 2013, 12:06
Default
  #19
Member
 
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 56
Rep Power: 3
novakm is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
  • Attached is a patch for this version 0.2.4, for compiling with the latest OpenFOAM 2.2.x.
Hi Bruno.

Thanks for the patch

I ve noticed problems together with moving meshes. Specially with dynamicTopoFvMesh (Sandeep Menon). The problem was in file ../simpleFunctionObjects/lnInclude/simpleFunctionObject.H at line 177.

Code:
#ifdef FOAM_FUNCTIONOBJECT_NEEDS_UPDATEMESH
    // make functionObject happy but fail because this is not an implementation
    virtual void updateMesh(const mapPolyMesh&) {
        notImplemented("simpleFunctionObject::updateMesh");
    }

    // make functionObject happy but fail because this is not an implementation
    virtual void movePoints(const polyMesh&) {
        notImplemented("simpleFunctionObject::movePoints");
    }
#endif
It causes crashes of the computation.
By erasing the notImplemented stuff (sandeep's suggest) the problem seems to be solved.
Code:
#ifdef FOAM_FUNCTIONOBJECT_NEEDS_UPDATEMESH
    // make functionObject happy but fail because this is not an implementation
    virtual void updateMesh(const mapPolyMesh&) {
    }

    // make functionObject happy but fail because this is not an implementation
    virtual void movePoints(const polyMesh&) {
    }
#endif

Hope, this helps somebody. (Much more hope it will not have any influence on the results )

Best regards

Martin
novakm is offline   Reply With Quote

Old   October 26, 2013, 05:52
Default
  #20
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,987
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Martin,

Many thanks for sharing! I've reported this to the bug tracker for swak4Foam: https://sourceforge.net/apps/mantisb...iew.php?id=190 - this way Bernhard feels a bit more obligated to fix it

By the way Martin, please provide a simple test case at that bug report, so that Bernhard can reproduce the problem!

Best regards,
Bruno
wyldckat 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
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 53 April 10, 2014 05:45
installing funkySetFields igo OpenFOAM 1 November 20, 2012 20:16
Problem running perturbUCyl sen.1986 OpenFOAM 14 March 23, 2012 05:12
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06:18
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07


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