CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Swak4FOAM 0.2.3 / OF2.2.x installation error (http://www.cfd-online.com/Forums/openfoam-installation/118194-swak4foam-0-2-3-of2-2-x-installation-error.html)

FerdiFuchs May 22, 2013 11:30

Swak4FOAM 0.2.3 / OF2.2.x installation error
 
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

gschaider May 22, 2013 11:42

Quote:

Originally Posted by FerdiFuchs (Post 429281)
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?

dkingsley May 22, 2013 13:11

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.

gschaider May 22, 2013 13:44

Quote:

Originally Posted by dkingsley (Post 429311)
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.

dkingsley May 22, 2013 13:58

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.

FerdiFuchs June 13, 2013 11:19

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!

billie June 13, 2013 11:59

Quote:

Originally Posted by FerdiFuchs (Post 433834)
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

wyldckat June 15, 2013 20:21

1 Attachment(s)
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: http://www.cfd-online.com/Forums/ope...tml#post433484 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

billie June 17, 2013 04:14

Quote:

Originally Posted by wyldckat (Post 434217)
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.

FerdiFuchs June 18, 2013 09:21

same here! Thank you very much!

gschaider June 18, 2013 11:50

Quote:

Originally Posted by wyldckat (Post 434217)
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

wyldckat June 20, 2013 15:49

Greetings to all!
And you're all welcome! :)

Raymond.Leoi July 31, 2013 11:26

Does it work for OpenFoam 2.1?
Quote:

Originally Posted by wyldckat (Post 434217)
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: http://www.cfd-online.com/Forums/ope...tml#post433484 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


gschaider July 31, 2013 18:15

Quote:

Originally Posted by Raymond.Leoi (Post 443091)
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

Raymond.Leoi August 1, 2013 04:55

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 (Post 443168)
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


gschaider August 2, 2013 06:12

Quote:

Originally Posted by Raymond.Leoi (Post 443231)
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)

aujamal20 October 9, 2013 11:49

accessing swake4Foam installed by another user on cluster...
 
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.

gschaider October 9, 2013 16:26

Quote:

Originally Posted by aujamal20 (Post 455977)
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

novakm October 25, 2013 12:06

Quote:

Originally Posted by wyldckat (Post 434217)
  • 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

wyldckat October 26, 2013 05:52

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


All times are GMT -4. The time now is 13:07.