|
[Sponsors] |
![]() |
![]() |
#41 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
Tested with 4.x version, last commit: c590630ab07 |
||
![]() |
![]() |
![]() |
![]() |
#42 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Editing .dep-files does not help as these are computer-generated. Did you start from a clean source tree or at least try ./Allwclean before compiling (that removes all .dep-files among other things)
__________________
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 |
|
![]() |
![]() |
![]() |
![]() |
#43 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
Did not try from the clean source tree though. Swak4Foam is btw working as expected with my case. |
||
![]() |
![]() |
![]() |
![]() |
#44 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
@gschaider
I successfully compiled swak4foam for OF 4.x on a Fedora FC13 machine. I'm now trying to compile 4.x + swak on the cluster that is a CentOS 5 machine. I re-downloaded OF 4.x from the github sources so it can be on a different commit. When I start the swak4foam ./Allwmake script what I get is: Code:
In file included from ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C:26:0: lnInclude/swak.H:52:2: error: #error "This swak4Foam-version is only used for the 2.x-versions of OpenFOAM. For lower versions there is a special branch" #error "This swak4Foam-version is only used for the 2.x-versions of OpenFOAM. For lower versions there is a special branch" |
|
![]() |
![]() |
![]() |
![]() |
#45 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Could you check which content was written to that file?
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#46 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
![]() [EDIT] Workin on it. The problem is that on the cluster Python 2.4.3 is installed and the for Python script makeFoamVersionHeader.py has not format method for strings (line 146). [EDIT 2] The solution was to load the module with a more modern Python version Code:
module load python/2.7.5 |
||
![]() |
![]() |
![]() |
![]() |
#47 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Out of curiosity: is your cluster based on RHEL 4 or 5 (can't think of any other Linux distros that still use Python 2.4. 2.4.3 was released 10 years ago)
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#48 | ||
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
Quote:
Code:
cat /etc/redhat-release CentOS release 5 (Final) |
|||
![]() |
![]() |
![]() |
![]() |
#49 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Thanks for your effort on the patch, but: swak4foam already has a lot of uglieness (#ifdefs, Python-compatibility layers) in it because I try to accomodate several distributions of Foam on reasonably old Linux Distros. Don't want to increase that by adding support to a 10 year old OS that will phase out on most machines next year (RH will end the support for the upstream OS next March). Especially if there are reasonable workarounds (and using EPEL is in my opinion reasonable). Also: you only need to bump up the Python version for the 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 |
||
![]() |
![]() |
![]() |
![]() |
#50 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 ![]() |
Quote:
Dear Bernard, I have installed openFoam 4.1 and tried to install swak4foam according to the instruction described in this thread. But when it comes to compile it, I constantly receive an error as attached. I would be so thankful if you can help me to solve the problem. Thank you in advance. Kind Regards Esmaeel |
||
![]() |
![]() |
![]() |
![]() |
#51 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
In which distribution you are? Did you install the dev tools? |
||
![]() |
![]() |
![]() |
![]() |
#52 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 ![]() |
Quote:
Thank you for your response. Actually, I am using a virtual machine on which Ubuntu 16.0.4 is installed. No, I have not installed dev tool. Do you think the problem is because I have not dev tool installed? I am new in Linux, I would be so thankful if you let me know how to install that. Best Regards Esmaeel |
||
![]() |
![]() |
![]() |
![]() |
#53 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
https://goo.gl/sT6NJL ![]() ![]() |
||
![]() |
![]() |
![]() |
![]() |
#54 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#55 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
BTW: PLEASE don't post error messages as screenshots. Copy/paste them from your command line into a Code-environemt (that's the one you get with thr #-icon above) The way you do it makes the error message unsearchable. So if somebody is looking for a solution to the same error message he won't find the answer because the error message is "hidden" in a bitmap
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#56 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 ![]() |
Quote:
Thank you for your response. The problem was something in development utilities which is now solved and I could successfully install swak4Foam and use it. ![]() Thank you for your suggestion about not using screenshot, however, I tried to copy and paste the error lines from the terminal to the Code-environment, however as I am using a virtual machine, it did not allow me to copy it into another environment. I should find a way to be able to export the command lines into another environment. Thanks Esmaeel |
||
![]() |
![]() |
![]() |
![]() |
#57 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 ![]() |
Quote:
Sent from my FRD-L09 using CFD Online Forum mobile app |
||
![]() |
![]() |
![]() |
![]() |
#58 |
New Member
Per Jørgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14 ![]() |
I have got swak4foam compiled and running with OpenFOAM 4.1 but when I try use dist() in funkySetFields I get an error
--> FOAM FATAL ERROR: At least one plane coefficient must have a value From function void Foam: ![]() in file meshes/primitiveShapes/plane/plane.C at line 51. FOAM aborting #0 Foam::error: ![]() #1 Foam::error::abort() at ??:? #2 Foam: ![]() #3 Foam::FieldValueExpressionDriver::makeDistanceFiel d() at ??:? #4 parserField::FieldValueExpressionParser: ![]() #5 Foam::FieldValueExpressionDriver: ![]() #6 Foam::CommonValueExpressionDriver: ![]() #7 ? at ??:? #8 ? at ??:? #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #10 ? at ??:? Am I missing something or is it a (known) error Best regards, Per |
|
![]() |
![]() |
![]() |
![]() |
#59 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
But right now there is nothing you can do
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#60 |
New Member
Lieh
Join Date: Mar 2017
Posts: 26
Rep Power: 9 ![]() |
Hello
I want to install Swak4Foam for OpenFoam 4.1, based on this website I download the zipped folder from this link and rename it to "swak4Foam" in my "/home/user/OpenFOAM/user-4.1/run/test4swak/swak4Foam". Then I do "./Allwmake" but I get error as Code:
This is a clean install 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/soes/OpenFOAM/soes-4.1/run/test4swak/swak4Foam' (.hg not found)! Swak version is 0.4.1 Contents of ./maintainanceScripts/../Libraries/swak4FoamParsers/include/swakVersion.H differ ... writing 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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |