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

[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2017, 09:03
Default
  #21
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11
alinuman15 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
That is not an installation/compilation problem but a problem with how you're using it. funkySetFields refuses to guess which time you want to use it on. So it asks you to specify it. Either with something like "-time 0" if you want to set initial conditions or with "-latestTime" if you want the latest time (these are the regular OpenFOAM-options so things like time-ranges will work too)

The reason why funkySetFields refuses to guess which time you want to use is that it is possibly destructive (it may overwrite your old data) and I don't want people running around crying "I didn't know it writes to the last time. Now my results are gone"
Thanks again gschaider.
I reinstalled the latest swak4foam from the website
https://github.com/Unofficial-Extend...r-openfoam-240
But, this time after ./Allwmake , I have got :-
make: Target 'application' not remade because of errors.
I even did :- ./Allwclean then ./Allwmake and still have this issue!
alinuman15 is offline   Reply With Quote

Old   July 3, 2017, 10:31
Default
  #22
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alinuman15 View Post
Thanks again gschaider.
I reinstalled the latest swak4foam from the website
https://github.com/Unofficial-Extend...r-openfoam-240
This is a fork. It may or may not be outdated. I only the versions downloaded via SVN and HG as described on http://openfoamwiki.net/index.php/Co...am#Downloading

Quote:
Originally Posted by alinuman15 View Post
But, this time after ./Allwmake , I have got :-
make: Target 'application' not remade because of errors.
I even did :- ./Allwclean then ./Allwmake and still have this issue!
That can be a lot of things the real problem should be a bit further up in the output (look for "error:")
__________________
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   July 3, 2017, 14:38
Default
  #23
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11
alinuman15 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
This is a fork. It may or may not be outdated. I only the versions downloaded via SVN and HG as described on http://openfoamwiki.net/index.php/Co...am#Downloading



That can be a lot of things the real problem should be a bit further up in the output (look for "error:")
Can you clarify more ?how can I get swak4foam works fine ?
It really consumed my time.
Thanks again
alinuman15 is offline   Reply With Quote

Old   July 3, 2017, 15:11
Default
  #24
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alinuman15 View Post
Can you clarify more ?how can I get swak4foam works fine ?
It really consumed my time.
Thanks again
As I explained before: your previous installation seems to have worked fine. You just used it wrong.

On your other installation: the error message you give doesn't say anything about what went wrong. It just says THAT something went wrong. Look further up in the output for the cause

And writing these reponses consumes time as well so please read them
__________________
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   August 1, 2017, 15:36
Default
  #25
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Hello Dear Foamers

i tried to install swak4Foam for OpenFOAM-v5 on ubuntu12.04LTS, i faced following error:
Code:
OpenFOAM-version: Major 5 Minor 0 Patch 0 (-1 == x / 0) Fork: openfoam
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()
                                           ^
make: *** [Make/linuxGccDPInt32Opt/helpers/exprString.o] Error 1
any clue?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   August 1, 2017, 15:58
Default
  #26
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11
alinuman15 is on a distinguished road
Hi nimasam:-
I found the best way to install swak4foam is to follow the following steps:-
cd ∼/ OpenFOAM
mkdir swak4foam
cd swak4foam
svn checkout https://openfoam-extend.svn.sourcefo...runk/Breeder_2 .0/libraries/swak4Foam/

Note:- If you face any bugs with the last command, replace it with the following:-
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.7/libraries/swak4Foam@1998 swak4Foam

Hope that works for you.
my best
alinuman15 is offline   Reply With Quote

Old   August 1, 2017, 20:20
Default
  #27
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by nimasam View Post
Hello Dear Foamers

i tried to install swak4Foam for OpenFOAM-v5 on ubuntu12.04LTS, i faced following error:
Code:
OpenFOAM-version: Major 5 Minor 0 Patch 0 (-1 == x / 0) Fork: openfoam
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()
                                           ^
make: *** [Make/linuxGccDPInt32Opt/helpers/exprString.o] Error 1
any clue?
You're going to face a number of other errors as well. OF 5 is now out for a week. If someone changes the version from 4.x to 5.x then usually there are changes that will break other software. Which is the case here

I already fixed the compilation but didn't check the functionality. Once I've done that I'll push to the repository (weekend if all runs well. Later if there are problems. )
nimasam likes 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   August 31, 2017, 05:45
Default
  #28
New Member
 
Join Date: Apr 2017
Posts: 6
Rep Power: 9
fmerk is on a distinguished road
Hello everyone,

I'm also facing some issues installing swak4foam. I've searched the forum yet couldn't come up with a solution for my error.
I'm using OF 1606+. I downloaded swak4foam on the obvious distribution page.

I attached my log-file.

I hope anyone could help me, i'm struggling since a few days now.

Kind regards
Attached Files
File Type: zip make.zip (12.4 KB, 7 views)
fmerk is offline   Reply With Quote

Old   August 31, 2017, 07:09
Default
  #29
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by fmerk View Post
Hello everyone,

I'm also facing some issues installing swak4foam. I've searched the forum yet couldn't come up with a solution for my error.
I'm using OF 1606+. I downloaded swak4foam on the obvious distribution page.

I attached my log-file.

I hope anyone could help me, i'm struggling since a few days now.

Kind regards
That is a problem with OF 1606+. To quote from the README
Code:
**** Support for OpenFOAM v1606+
     This version is supported in the this version of
     =swak4Foam=. There is only one problem: there were changes to the
     =tmp=-template. These changes have been taken care of in the
     =swak4Foam=-sources. *But* there are two source files in the
     distro that need to be modified (basically adding =.ref()=
     instead of =()= in three places:
: src/finiteVolume/finiteVolume/fvc/fvcD2dt2.C
: src/finiteVolume/fvMatrices/fvMatrix/fvMatrixSolve.C
     Therefor the officially released version will *never* compile
     with =swak4Foam= but this is nothing that can be fixed in
     =swak4Foam= (the patch is found in the directory
     =distroPatches/OpenFOAM-v1606+=)
BTW: do yourself a favour and unset the German settings on shells that you use for compiling when looking for hel. If I wouldn't speak German it would have never occured to me that the compiler error is prefixed with "Fehler:" instead of the usual "Error:" (don't know why they do that if all the other compiler output is not translated)
__________________
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 21, 2017, 15:26
Default
  #30
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Quote:
Originally Posted by gschaider View Post
You're going to face a number of other errors as well. OF 5 is now out for a week. If someone changes the version from 4.x to 5.x then usually there are changes that will break other software. Which is the case here

I already fixed the compilation but didn't check the functionality. Once I've done that I'll push to the repository (weekend if all runs well. Later if there are problems. )
Dear Bernhard Gschaider

Is swak4Foam available for OpenFOAM-5.0 ?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   September 21, 2017, 17:00
Default
  #31
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by nimasam View Post
Dear Bernhard Gschaider

Is swak4Foam available for OpenFOAM-5.0 ?
Not in the default branch but in the develop branch for more than a month https://twitter.com/swakPyFoam/statu...29065463332864
__________________
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   May 10, 2019, 06:29
Default
  #32
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Hello everyone,

hopefully it's okay that I use this very old thread, but the topic fits very well with my problem:

Is it possible to install and compile swak4foam for more than one user on a computer with several accounts? And how can I do it?

Thank you for your help!

Stefanie
Stefanie.S.W. is offline   Reply With Quote

Old   May 10, 2019, 06:46
Default
  #33
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Stefanie.S.W. View Post
Hello everyone,

hopefully it's okay that I use this very old thread, but the topic fits very well with my problem:

Is it possible to install and compile swak4foam for more than one user on a computer with several accounts? And how can I do it?

Thank you for your help!

Stefanie

Yep. You've just got to make the libraries and applications available in a directory that is accessed by everyone. Recommended for that are the ones specified in the environment variables FOAM_SITE_LIBBIN and FOAM_SITE_APPBIN (FOAM_LIBBIN and FOAM_APPBIN can but should not be used)


There are two ways:
  1. After compilation use the script maintainanceScripts/copySwakFilesToSite.sh that comes with swak to copy the binaries from your installation
  2. Before compilation temporarily point "your" bin directories to the site directories using something like "export FOAM_USER_LIBBIN=$FOAM_SITE_LIBBIN" (similar for APP)
Of course you'll need write-access to the SITE-directories.
Stefanie.S.W. likes 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   May 10, 2019, 08:09
Default
  #34
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Thank you for the quick reply and your help!
Stefanie.S.W. is offline   Reply With Quote

Old   January 11, 2021, 17:41
Default error during installation of swak4foam for openfoam2.2
  #35
New Member
 
Utkarsh
Join Date: Jan 2021
Posts: 1
Rep Power: 0
utkarshdeep is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Rafael,

Wow, I wasn't aware about this issue in OpenFOAM 2.2... I've reported this and provided a fix for swak4Foam 0.3.2 just now: https://sourceforge.net/p/openfoam-e...swak4foam/228/

The file in attachment should help, as it's the patch provided in the bug report. To apply it, do the following steps:
  1. Download the attached file "writeFieldsGeneralFunctionObject.C.patch".
  2. In the terminal, go to the folder where you have the swak4Foam source code and run the following command:
    Code:
    patch -p1 < ~/Downloads/writeFieldsGeneralFunctionObject.C.patch
    Where I'm assuming you downloaded the file into the folder "~/Downloads/", so change it to your need
  3. Now you can run "Allwmake" once again, as you did before.
Best regards,
Bruno








Hi Bruno
I have tried the same commands but these are not working in my case.Can you please help me with this
Attached Images
File Type: jpg error.jpg (203.5 KB, 10 views)
utkarshdeep is offline   Reply With Quote

Old   January 11, 2021, 17:53
Default
  #36
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by utkarshdeep View Post
Hi Bruno
I have tried the same commands but these are not working in my case.Can you please help me with this

Screenshots are not a good way to report problems. They can not be searched.



My oldest OF-installation is OF2.3. So I can't comment on your problem. But it seems that the errors you've shown are in simpleCloudFunctionObjects. That is a rather obscure library that nothing else depends on, that is only useful if you do lagrangian particles and I think some things it depends on are not in 2.2. If these are the only errors you've got: ignore them and happily use the rest
__________________
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

Reply


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
[OpenFOAM.org] Problem in installation of OpenFOAM-2.3.x Parisa_Khiabani OpenFOAM Installation 5 December 4, 2014 10:04
[Other] Problem in Open foam installation in ubuntu 14.04 zannatul OpenFOAM Installation 2 November 3, 2014 21:56
RHEL 6.3 Installation problem Turbulent STAR-CCM+ 0 September 3, 2014 08:01
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00
[swak4Foam] installation problem: "./Allwmake: ... [[: not found" Rajarshi OpenFOAM Community Contributions 8 May 13, 2013 09:05


All times are GMT -4. The time now is 16:06.