|
[Sponsors] |
October 2, 2016, 17:40 |
|
#21 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- Which version of OF 4.0 are you using? Released or git? - You're using the latest version of swak4Foam - Is the file ./Libraries/swak4FoamParsers/helpers/exprString.C in your -swak-sources - Did you previously attempt to compile this swak-installation? (Try ./Allwclean to make sure that no problems from earlier compilations exist. Then retry ./Allwmake)
__________________
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 |
||
October 3, 2016, 05:50 |
|
#22 |
New Member
Sachin
Join Date: Sep 2016
Location: Poitiers,France
Posts: 17
Rep Power: 10 |
thnx gschaider for replying,
1) I am using released version of OF 4.0 ; downloaded from openfoam.org website. 2)I am using latest version of swak4Foam, downloaded from ( "git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam" ) 3)yes....I checked swak4Foam folder. 4) Today I again uninstall and try to install swak4Foam again but I have still same problem. Hope you know some solution. Thx. |
|
October 3, 2016, 06:55 |
|
#23 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam cd swak4Foam hp update develop
__________________
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 |
||
October 4, 2016, 08:07 |
|
#24 |
New Member
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 17
Rep Power: 12 |
When I try to install swak4Foam (develop) version, after following the instructions in this post.
Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam cd swak4Foam hg update develop Code:
../FieldValueExpressionParser.yy:2517:21: required from here /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:53:20: error: passing ‘const Foam::fv::d2dt2Scheme<double>’ as ‘this’ argument discards qualifiers [-fpermissive] )().fvcD2dt2(vf); ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:28:0, from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/d2dt2Scheme.H:141:66: note: in call to ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > Foam::fv::d2dt2Scheme<Type>::fvcD2dt2(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = double]’ virtual tmp<GeometricField<Type, fvPatchField, volMesh>> fvcD2dt2 ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74:0, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C: In instantiation of ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::d2dt2(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::Tensor<double>]’: ../FieldValueExpressionParser.yy:3103:13: required from here /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:53:20: error: passing ‘const Foam::fv::d2dt2Scheme<Foam::Tensor<double> >’ as ‘this’ argument discards qualifiers [-fpermissive] )().fvcD2dt2(vf); ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:28:0, from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/d2dt2Scheme.H:141:66: note: in call to ‘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::Tensor<double>]’ virtual tmp<GeometricField<Type, fvPatchField, volMesh>> fvcD2dt2 ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74:0, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C: In instantiation of ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::d2dt2(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::SymmTensor<double>]’: ../FieldValueExpressionParser.yy:3416:13: required from here /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:53:20: error: passing ‘const Foam::fv::d2dt2Scheme<Foam::SymmTensor<double> >’ as ‘this’ argument discards qualifiers [-fpermissive] )().fvcD2dt2(vf); ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:28:0, from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/d2dt2Scheme.H:141:66: note: in call to ‘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::SymmTensor<double>]’ virtual tmp<GeometricField<Type, fvPatchField, volMesh>> fvcD2dt2 ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74:0, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C: In instantiation of ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::d2dt2(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::SphericalTensor<double>]’: ../FieldValueExpressionParser.yy:3697:13: required from here /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:53:20: error: passing ‘const Foam::fv::d2dt2Scheme<Foam::SphericalTensor<double> >’ as ‘this’ argument discards qualifiers [-fpermissive] )().fvcD2dt2(vf); ^ In file included from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.C:28:0, from /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvcD2dt2.H:74, from ../FieldValueExpressionParser.yy:60: /opt/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/d2dt2Scheme.H:141:66: note: in call to ‘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>]’ virtual tmp<GeometricField<Type, fvPatchField, volMesh>> fvcD2dt2 ^ Make/linux64GccDPInt32Opt/../mybisonNew:20: recipe for target 'Make/linux64GccDPInt32Opt/FieldValueExpressionParser.o' failed 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 If I run the swak4foam using git repo from ( "git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam" ), I get the same error as reported by Sachin. |
|
October 4, 2016, 09:26 |
|
#25 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
** Next release - version number : 0.4.1 *** New supported versions **** Support for OpenFOAM 4.0 This version is supported in this version of OpenFOAM. There is one problem: the released version has two problems that mean that =swak4foam= will *never* compile on the released version. Patches fixing these issues are found in the directory =distroPatches/OpenFOAM-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 |
||
October 4, 2016, 10:18 |
|
#26 | |
New Member
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 17
Rep Power: 12 |
Quote:
Thank you Bernhard. I have compiled it successfully. It was my bad. I have messed up both git and hg readme files. Thanks again. |
||
October 6, 2016, 08:35 |
|
#27 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 11 |
I want to compile swak4Foam on openfoam 4.0 dev.
but it get the below error: Code:
In file included from EliminateBySwakExpressionInstances.C:40:0: EliminateBySwakExpression.H:55:40: fatal error: CloudValueExpressionDriver.H: No such file or directory compilation terminated. /home/bijan/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/EliminateBySwakExpressionInstances.o' failed make: *** [Make/linux64GccDPInt32Opt/EliminateBySwakExpressionInstances.o] Error 1 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 -How can I solve this error?? -How can I apply "distropatches" ?? |
|
October 6, 2016, 12:38 |
|
#28 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Applying patch files is described for instance in http://www.cyberciti.biz/faq/appy-pa...patch-command/ "cd $WM_PROJECT_DIR" and apply the patch files that come with the swak sources with the option -p1
__________________
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 |
||
October 6, 2016, 17:52 |
|
#29 | ||
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 11 |
Quote:
Thanks for your reply. The problem solved. It will compile without any error If I use "hg" command for downloading swak4Foam. If I download swak4Foam manually as 2-2-1 in: http://www.cfd-online.com/Forums/ope...tml#post619345 I will get mentioned error when trying to compile it. But If download swak4Foam by "hg" command like this: Quote:
|
|||
October 19, 2016, 02:42 |
|
#30 |
Member
Join Date: May 2015
Posts: 34
Rep Power: 11 |
Seems that there were some issues(?) with the release 4.0 and there is a highly recommended patch version 4.1 out. I tried to install the current development version of swak4foam, but encountered the following error:
Code:
make: *** No rule to make target `/shared/apps/openfoam/openmpi-1.10.4-gcc-local/gcc-4.9.2/4.1/src/OpenFOAM/lnInclude/uLabelSpecific.H', needed by `Make/linux64GccDPOpt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C.dep'. Stop. Parser library did not compile OK. No sense continuing as everything else depends on it 1) does 4.1 also need some distro patching? 2) has anyone managed to compile swak4foam for 4.1 or is new development version needed for this? EDIT: So I actually managed to compile the latest development version of swak4foam for 4.1 on one cluster. So it seems to work out of the box, though I have no idea why it didn't compile on the other clusters... Last edited by mnikku; October 19, 2016 at 09:42. Reason: New info. |
|
October 19, 2016, 14:39 |
|
#31 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
October 22, 2016, 05:23 |
|
#32 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
This is due to removal of the uLabelSpecific.H file (was a zero-size file). Your depends, however, still have the old dependency noted. You either need to remove the offending .dep files (this will not be trivial since lots of places use ulabel), or a wclean and rebuild.
|
|
October 25, 2016, 15:16 |
installing swak4Foam on OF4 + Ubuntu 16.06
|
#33 | |
New Member
|
Dear Bruno,
I have installed OF4.x, I followed your instructions and everything goes perfect! ....but after installation I have realized that an error occurred during installation (agrr!! ) I found this error inside the log.make file: " Previously compiled for OpenFOAM 4.x 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 Swak version is 0.4.1 Bison is version 3.0.4 swak4Foam only confirmed to work with Bison 2.x Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation Set the environment variable DEVELOPE_FOR_NEW_BISON if you want to continue anyway. 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 do not understand what do next?!?!? Thank you so much for your help!!! Regards, Vincenzo Quote:
Last edited by vsammartano; October 26, 2016 at 06:55. |
||
October 26, 2016, 11:33 |
|
#34 |
Senior Member
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 10 |
Hello to all
Same problem of vsammartano and i don't completely understand the solution other users adopted. |
|
October 26, 2016, 12:29 |
solved for openFoam4.x + Ubuntu 16.04
|
#35 | |
New Member
|
Quote:
Dear FlyBob91, today I've solved the installation problem just using the last procedure suggested by the good wyldckat. I installed the develop version of swak4Foam because, so far, is the only version correctly working with OF4.x. Here the step I followed: 1.Imanually downloaded a snapshot from the Mercurial interface at Sourceforge.net: https://sourceforge.net/p/openfoam-e.../develop/tree/ ... to download you have to click on "Download Snapshot". 2. Once you have got the tar file, unpack the file on your working folder, and rename the unpacked folder to "swak4Foam". ...as stated in the wyldckat post, if you do not have a working folder create one ... mkdir -p $FOAM_RUN cd "$FOAM_RUN/../" 3. Go into the "swak4Foam" folder: cd swak4Foam 4. Build the dependencies that are needed, because Ubuntu usually has an updated bison ver. (>3.*), and swak4foam works fine only with older version of bison (2.*). So, you need to build a custom version, type: ./maintainanceScripts/compileRequirements.sh 5. At the end of the process you can build swak4Foam: ./Allwmake > log.make 2>&1 6. To take a look to the installation summary open the log file. 7. if you want to check the version go into a case folder and type funkySetFields this will return an error, but under the openFOAM banner you find swak4foam version. Before you use this tool do not forget to paste in the controlDict file of your case study the following lines: libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); That is all. I hope I was clear and helpful. Regards, Vincenzo |
||
October 26, 2016, 12:32 |
|
#36 | |
Senior Member
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 10 |
Quote:
ok maybe you have only to compile Code:
./maintainanceScripts/compileRequirements.sh Code:
./Allwmake Roberto |
||
October 27, 2016, 02:26 |
|
#37 |
Member
Join Date: May 2015
Posts: 34
Rep Power: 11 |
Code:
Requirements for Library not satisfied. I see no sense in going on In my case, it gave an error on missing files uLabelSpecific.H and also staticAssert.H in file Make/linux64GccDPOpt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C.dep. I simply removed references to those files and the compilation was ok. There might be other methods and I'm not at all sure you should do it like I did... |
|
October 27, 2016, 03:27 |
|
#38 |
New Member
|
Dear Roberto,
thank you for your reply. However as you read my post #35, I solved the installation issue. Thank you again. Regards |
|
October 27, 2016, 06:02 |
|
#39 |
Senior Member
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 10 |
||
October 30, 2016, 11:36 |
|
#40 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I'm glad things are sorted out for everyone, or at least for the most part. I'm here to give a report on what happened for the various posts after post #13 - and sorry for the delay on this, but hopefully the following will help in diagnosing future situations. Chronological report:
Beyond the report, on the 15th of October I managed to make a considerable update to the installation pages for swak4Foam here: https://openfoamwiki.net/index.php/I...tion/swak4Foam The instructions have been all been revised, although I didn't manage to finish the instructions given here: https://openfoamwiki.net/index.php/I...gy_source_code - I simply copy-pasted from the README file the references to the fixes necessary. This was why I didn't report it here sooner. If anyone can step in and complement with details how to perform the patching, the wiki is open and editable to anyone who wants to contribute! Best regards, Bruno |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4Foam installation on OpenFOAM 4.0 | blttkgl | OpenFOAM Community Contributions | 1 | March 14, 2017 12:06 |
[swak4Foam] and twoPhaseEulerFoam | mnikku | OpenFOAM Community Contributions | 1 | February 19, 2016 06:21 |
source term in near wall cell | rajcfd | OpenFOAM Pre-Processing | 5 | February 1, 2016 11:31 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |