|
[Sponsors] |
March 20, 2009, 02:40 |
installing funkySetFields
|
#1 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
I downloaded the tar.gz file "funkySetFields.r7106". I extracted the file to $FOAM_APP/utilities/preProcessing/ . For clarity let me call the above path as $PREPROCESS.
$PREPROCESS/funkySetFields/ has a .C file, a Dict file, valueexpressiondriv.c, h etc. I ran wmake in $PREROCESS/funkySetFields, and got the error "myflex no rule to make target. So I copied the mybison and myflex files to $PREPROCESS/funkySetFields from the Make folder. I edited the options file. I modified the lines "include $(MAKE_DIR)/mybison" & "include $(MAKE_DIR)/myflex" to "include mybison" and "include myflex". again ran wmake. This is the error I am getting: SOURCE=ValueExpressionParser.yy ; rm Make/linuxGccDPOpt/ValueExpressionParser.C Make/linuxGccDPOpt/ValueExpressionParser.tab.hh; bison -ra -S lalr1.cc -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/ValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/ValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/ValueExpressionParser.C -o Make/linuxGccDPOpt/ValueExpressionParser.o ValueExpressionParser.tab.cc: In member function ‘virtual int ve::ValueExpressionParser:arse()’: ValueExpressionParser.tab.cc:425: error: cannot convert ‘ve::ValueExpressionParser::semantic_type*’ to ‘YYSTYPE*’ for argument ‘1’ to ‘int velex(YYSTYPE*, yy::location*, ValueExpressionDriver&)’ ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’: ValueExpressionParser.tab.cc:1788: warning: use of old-style cast ValueExpressionParser.yy: At global scope: ValueExpressionParser.yy:263: error: expected unqualified-id before ‘&’ token ValueExpressionParser.yy:263: error: expected ‘,’ or ‘...’ before ‘&’ token ValueExpressionParser.yy:263: error: invalid use of incomplete type ‘struct yy::ValueExpressionParser’ ./ValueExpressionDriver.H:16: error: forward declaration of ‘struct yy::ValueExpressionParser’ make: *** [Make/linuxGccDPOpt/ValueExpressionParser.o] Error 1 . Could someone explain what might be going wrong? I would be very thankful, if possible could you direct me to some guide that talks about the whole process? I followed the userguide tutorial that talks about how to compile turbfoam. But the above case is far more complex for me to figure out. Thank you. Prapanj |
|
March 20, 2009, 06:39 |
|
#2 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Which version of OpenFOAM are you using? If it is 1.5 go to http://openfoam-extend.svn.sourcefor...ostProcessing/ and get the most recent version by clicking on "Download tarball". For 1.4.1 use http://openfoam-extend.svn.sourcefor...ostProcessing/. For older versions you're on your own. Sorry Quote:
Bernhard PS: I will update the Wiki with a link to the tarball-download |
|||
March 23, 2009, 00:30 |
Thank you
|
#3 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
Hi Bernard,
Thank you. I had looked at the wrong place for the download. I got the right now. It's up and running. By the way, Great Tool. thank you Prapanj |
|
June 24, 2009, 09:56 |
|
#4 |
New Member
ozie
Join Date: Jun 2009
Posts: 4
Rep Power: 17 |
Hello everybody,
I downloaded funkySetField for the OpenFOAM 1.4.1 from the page http://openfoamwiki.net/index.php/Co...funkySetFields in the directory /utilities/Preprocessing. Than I did wmake. But I had some errors as below; SOURCE=ValueExpressionLexer.ll ; rm Make/linuxGccDPOpt/ValueExpressionLexer.C ; flex -f $SOURCE ; mv *.c Make/linuxGccDPOpt/ValueExpressionLexer.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/emre/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/emre/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/emre/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/ValueExpressionLexer.C -o Make/linuxGccDPOpt/ValueExpressionLexer.o rm: ne peut enlever `Make/linuxGccDPOpt/ValueExpressionLexer.C': Aucun fichier ou répertoire de ce type /bin/sh: flex: command not found mv: ne peut évaluer `*.c': Aucun fichier ou répertoire de ce type g++: Make/linuxGccDPOpt/ValueExpressionLexer.C: Aucun fichier ou répertoire de ce type g++: no input files make: *** [Make/linuxGccDPOpt/ValueExpressionLexer.o] Erreur 1 I am new to OpenFOAM, could you help me to resolve my problem? thank you in advance for your cooperations Oguz, |
|
June 25, 2009, 09:07 |
|
#5 |
New Member
ozie
Join Date: Jun 2009
Posts: 4
Rep Power: 17 |
Hello everybody,
I noticed why such an error occured as above. Because I didn`t take into account to call ./insertGenerated.sh. So I retried to compile funkysetfields.. But this time, I had the error below; funkySetFields.C:43:26: error: timeSelector.H: Aucun fichier ou répertoire de ce type funkySetFields.C: In function ‘int main(int, char**)’: funkySetFields.C:193: error: ‘Foam::timeSelector’ has not been declared funkySetFields.C:220: error: ‘Foam::timeSelector’ has not been declared make: *** [Make/linuxGccDPOpt/funkySetFields.o] Erreur 1 So I checked funkySetFields.C. So I noticed that timeSelector.H is needed to run this program. Indeed, this file doesn`t exist among the funkySetFields files therby causing errors... Does anyone could tell me how to find timeSelector.H, or maybe am I doing something wrong when compiling funkySetField? oguz, |
|
June 29, 2009, 10:14 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
July 31, 2009, 11:25 |
|
#7 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
Hi,
I downloaded the latest version of FunkySetFields.tar.gz for V 1.5 from the link provided. I extracted the file in /application/utilities/preProcessing. It created a direction FunkySetField..... I went into the directory and tried ./Allwmake . It saus permission denied..... . Any help would be appreciated. Thanks |
|
August 3, 2009, 05:14 |
|
#8 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
October 14, 2009, 15:58 |
|
#9 |
New Member
Steffen Goertz
Join Date: Jul 2009
Posts: 4
Rep Power: 17 |
Hi
I use OpenFoam v1.6 and downloaded the right version of funkysetfields. I copied everything in the Preprocessing Folder like described above. Now I tried to run Allwmake and I get a lot of Errors: It starts with Errors of the type: /home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/os_defines.h:44:22: error: features.h: Datei oder Verzeichnis nicht gefunden then it goes on with this Error: /home/Ghash/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude/cpuTime.H:43:23: error: sys/times.h: Datei oder Verzeichnis nicht gefunden and then a lot of Errors like this one: /home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cwchar:72: error: ‘::mbstate_t’ has not been declared then this: /home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/gthr-default.h:46: error: ‘pthread_key_t’ does not name a type and so on. All in all a lot of Errors, but I still have the hope, that there is just one reason I'm new to OpenFoam and Linux, so sorry if this is a stupid question. And thank you for your help!!! Ghash Last edited by Ghash; October 14, 2009 at 18:22. |
|
October 16, 2009, 06:41 |
|
#10 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
October 19, 2009, 05:30 |
|
#11 |
New Member
Steffen Goertz
Join Date: Jul 2009
Posts: 4
Rep Power: 17 |
This helped, now it works! Thank you for your help.
Greetings Ghash |
|
January 29, 2010, 02:42 |
|
#12 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 17 |
Sorry!
Is there a version of FunkySetfields for 1.6. version. If yes please get me the link? Thanks a lot |
|
January 29, 2010, 07:00 |
|
#13 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
http://openfoamwiki.net/index.php/Co...funkySetFields the SVN-link works out of the box. For the tarball-link just substitute 1.5 with 1.6 Bernhard |
||
January 30, 2010, 12:59 |
FunkySetFields Installation
|
#14 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 17 |
Thanks, but what should I do with these numerous files?
I taught I should have a .tar file! |
|
January 30, 2010, 20:10 |
|
#15 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Compile them? No. Seriously. Which files are you talking about? In any case (getting via svn or Downloading the tarball and untarring) you get the same directory structure and it should be compiled like a regular utility
And you can get one. See http://openfoamwiki.net/index.php/Co...ields#Download (just before section 7.1) |
|
January 31, 2010, 01:25 |
|
#16 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 17 |
Thanks!
I got it , it works! |
|
February 17, 2010, 13:09 |
|
#17 |
New Member
raul
Join Date: Nov 2009
Posts: 13
Rep Power: 17 |
Hi
I use OpenFoam v1.6 and am trying to cpmpile a new utility FunkySetFields. I copied everything in the Preprocessing Folder like described above. Now I tried to run wmake from applications/utilties/preProcessing/funkySetField and got following error. Making dependency list for source file ValueExpressionParser.yy could not open file ValueExpressionParser.tab.hh for source file ValueExpressionParser.yy Making dependency list for source file ValueExpressionLexer.ll could not open file ValueExpressionParser.tab.hh for source file ValueExpressionLexer.ll Making dependency list for source file ValueExpressionDriver.C could not open file ValueExpressionParser.tab.hh for source file ValueExpressionDriver.C Making dependency list for source file funkySetFields.C could not open file ValueExpressionParser.tab.hh for source file funkySetFields.C SOURCE=ValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/ValueExpressionParser.C Make/linuxGccDPOpt/ValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/ValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/ValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/ValueExpressionParser.C -o Make/linuxGccDPOpt/ValueExpressionParser.o In file included from Make/linuxGccDPOpt/location.hh:44, from ValueExpressionParser.tab.hh:65, from ValueExpressionParser.tab.cc:68: position.hh: In function ‘bool ve:perator==(const ve:osition&, const ve:osition&)’: position.hh:136: warning: suggest parentheses around && within || ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’: ValueExpressionParser.tab.cc:3207: warning: use of old-style cast SOURCE=ValueExpressionLexer.ll ; rm Make/linuxGccDPOpt/ValueExpressionLexer.C ; flex -f $SOURCE ; mv *.c Make/linuxGccDPOpt/ValueExpressionLexer.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/ValueExpressionLexer.C -o Make/linuxGccDPOpt/ValueExpressionLexer.o rm: cannot remove `Make/linuxGccDPOpt/ValueExpressionLexer.C': No such file or directory /bin/sh: flex: not found mv: cannot stat `*.c': No such file or directory g++: Make/linuxGccDPOpt/ValueExpressionLexer.C: No such file or directory g++: no input files make: *** [Make/linuxGccDPOpt/ValueExpressionLexer.o] Error 1 can anyone please tell me what i m doing wrong...what i can make out is may be i downloaded an older version(for 1.5) and that may be the source of error but i m not sure...Any suggestions are appreciated... thanks, rudy... |
|
February 17, 2010, 14:12 |
|
#18 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
March 9, 2010, 09:21 |
|
#19 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
Hi, ive just downloaded funkysetfields and i need to get it running ASAP.
At first i had the funkysetfields folder in a folder called openFOAMwiki outside of the OpenFOAM-1.6.x folder, after reading the posts here i put it in the preprocessing folder. Now i go step inside the funkySetFields folder and try this: ./insertGenerated.sh But it says permission denied. i tried just compiling with wmake and i get the error that the fellow above gets. I am really new to this and very lost, so if anyone can help, please make it very simple and clear. I am total linux-newb, perhaps even less than a newb. P.S: i do have another comment about installing openfoam on ubuntu, this is on another computer. thanks in advance! Last edited by Disco_Caine; March 9, 2010 at 10:20. |
|
March 9, 2010, 15:01 |
|
#20 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
I have fixed my own problem, perhaps this is way too obvious for the almighty linux users, but i shall post it anyways, just in case another new guy runs into the same problem.
1) open up your terminal and make sure you are in the funkySetFields folder, (where the insertGenerated.sh is) and type this: chmod +x insertGenerated.sh 2) then type: ./insertGenerated.sh 3) then, wmake. And you are done with funkySetFields P.S: sorry about the different fonts! Last edited by Disco_Caine; March 10, 2010 at 10:55. |
|
Tags |
funkysetfields, installation, valueexpressionparser, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
Install OF 1.6.ext on Arch based distribution | miro2000 | OpenFOAM Installation | 4 | October 9, 2013 15:39 |
[swak4Foam] installing funkySetFields | igo | OpenFOAM Community Contributions | 1 | November 20, 2012 21:16 |
[swak4Foam] installing funkySetFields utility for OpenFOAM 1.4.1 | ozie | OpenFOAM Community Contributions | 8 | September 8, 2011 12:16 |