|
[Sponsors] |
October 25, 2013, 02:59 |
|
#21 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Have a look at the error message: there is already a fix on the MessageBoard
__________________
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 26, 2013, 03:54 |
|
#22 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
now,I must recompiling this swak or cleaning this swak and compile other swak?
whats a complete swak address in net which I download and compile it.??? my openFoam is 2.2.1 and my swak is 0.2.4 |
|
October 26, 2013, 06:04 |
|
#23 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@seju: Quote:
If this doesn't work, please provide more details on the steps you are taking, as well as how exactly you installed OpenFOAM on your machine. In addition, if you also have OpenFOAM 1.6-ext, please detail how you switch between the two versions. Best regards, Bruno
__________________
|
||
October 26, 2013, 07:52 |
|
#24 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
PHP Code:
I have ubuntu and windows 7 abreast.I dont install openfoam in virtualbox.I install ubuntu absolute. I fialed in compile openFoam 1.6 ext and I just have openFoam 2.2.1. I installed openFoam 2.2.1 From this link PHP Code:
|
||
October 26, 2013, 08:51 |
|
#25 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi seju,
Many thanks the information! I've tested the following steps on a VM with Ubuntu 13.04 (64bit) and with the same OpenFOAM 2.2.1 installation and they should work as intended:
Best regards, Bruno
__________________
|
|
October 27, 2013, 02:45 |
|
#26 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
dear Bruno and Mr.Gschaider my problem solved.thank you so much.
but I have another problem in: HTML Code:
http://www.cfd-online.com/Forums/openfoam-meshing/125508-problem-axisymmetric-mesh.html#post459204 Last edited by wyldckat; January 2, 2014 at 08:40. Reason: removed very long and unnecessary quote ;) |
|
January 2, 2014, 06:50 |
Problems building swak4Foam
|
#27 |
New Member
Seif Kefi
Join Date: Dec 2013
Posts: 6
Rep Power: 12 |
Hi everyone,
First of all, happy new year! I am a new Foamer. And, this is my first post. I am using ubuntu 13.10 and have installed openFoam 2.2.2. What I want to do is to modify the wind velocity profile in the turbineSiting tutorial. So, I decided to download swak4Foam in order to use groovyBC. But, when I use it, it seems that it was not built in the right way. I even used these two patches: 1. http://www.cfd-online.com/Forums/ope...tml#post415028) 2. http://www.cfd-online.com/Forums/ope...tml#post434217 Here is the error messages I get: Code:
seif@seif-ThinkStation-E31:~/OpenFOAM/seif-2.2.2/run/tutorials/incompressible/simpleFoam/turbineSiting$ foamCalc mag U Selecting calcType mag /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.2 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.2-9240f8b967db Exec : foamCalc mag U Date : Jan 02 2014 Time : 19:25:49 Host : "seif-ThinkStation-E31" PID : 6486 Case : /home/seif/OpenFOAM/seif-2.2.2/run/tutorials/incompressible/simpleFoam/turbineSiting nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleSwakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libswakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libgroovyBC.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libgroovyBC.so" Create mesh for time = 0 Time = 0 No U End Seif Last edited by wyldckat; January 2, 2014 at 08:39. Reason: Added [CODE][/CODE] |
|
January 2, 2014, 08:43 |
|
#28 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Seif and welcome to the forum!
Try these steps:
Bruno
__________________
|
|
January 2, 2014, 20:54 |
|
#29 |
New Member
Seif Kefi
Join Date: Dec 2013
Posts: 6
Rep Power: 12 |
Hi Bruno,
Thank you for your relpy. But, following these steps, here is the error messages I get: Code:
../FieldValueExpressionParser.yy:5499:13: note: in expansion of macro ‘sameSize’ lnInclude/swakChecks.H:63:92: error: ‘yylloc’ was not declared in this scope #define sameSize(a,b) {Foam::string err=Foam::swakAssertSameSize(a,b); if(err!="") { error(yylloc,err); YYERROR; }} ^ ../FieldValueExpressionParser.yy:5507:13: note: in expansion of macro ‘sameSize’ lnInclude/swakChecks.H:63:92: error: ‘yylloc’ was not declared in this scope #define sameSize(a,b) {Foam::string err=Foam::swakAssertSameSize(a,b); if(err!="") { error(yylloc,err); YYERROR; }} ^ ../FieldValueExpressionParser.yy:5514:13: note: in expansion of macro ‘sameSize’ make: *** [Make/linux64GccDPOpt/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 Seif Last edited by wyldckat; January 4, 2014 at 19:09. Reason: Added [CODE][/CODE] |
|
January 4, 2014, 19:10 |
|
#30 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Seif,
What does the file "make.log" have in its first 10 lines? Best regards, Bruno
__________________
|
|
January 7, 2014, 00:59 |
|
#31 |
New Member
Seif Kefi
Join Date: Dec 2013
Posts: 6
Rep Power: 12 |
Hi Bruno,
First of all, sorry for my late reply. Here are the first 10 lines of the log file: No 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file Swak version is 0.2.4 Bison is version 3.0 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/FieldValueExpressionParser.C Make/linux64GccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; bison -ra -v -d .. Best regards, Seif |
|
January 7, 2014, 18:24 |
|
#32 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
May I ask: which Distro installs Bison 3 by default? Or did you install it yourself from the sources?
__________________
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 |
||
January 10, 2014, 14:14 |
|
#33 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Bernhard: Quote:
My guess is that Seif built Bison 3.0 from source code? Best regards, Bruno
__________________
|
||
January 22, 2014, 19:28 |
|
#34 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
BTW: just checked. The development version checks for bison3 and refuses to go further (must have put that in around the time of the above MacPorts-ticket) From my short look it seemed that the changes necessary to the swak-grammar-files would make them incompatible with bison 2.x. And as long as there is not a significant portion (5-10%) of the Linux-installations out there with bison 3.x I don't consider converting (because that would force people to hand install a bison 3.x on top of the one they already have)
__________________
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 |
||
January 27, 2014, 01:06 |
|
#35 |
New Member
Seif Kefi
Join Date: Dec 2013
Posts: 6
Rep Power: 12 |
Hi Bernhard,
What do you recommend me to do? Best, Seif |
|
January 27, 2014, 05:09 |
|
#36 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Obviously install the latest 2.x-version of bison
Either using the package manager of your OS (that is preferred). If that is not possible download the sources and compile it from there (that is described in the README that comes with those sources). Only two things: use the --prefix-option of configure to "install" it to a private directory (don't overwrite the system-bison) and add the directory to the PATH before compiling. As you're using a cutting-edge distro (which distro ARE you using, by the way?) you should be comfortable with these instructions. If you're not I'd recommend using a more mainstream-distribution
__________________
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 04:06 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |