|
[Sponsors] |
March 25, 2010, 15:46 |
New user needs help
|
#1 |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Hi Everyone,
I am a new user of OpenFOAM and currently stuck at the first test run. I downloaded OpenFOAM-1.6.General.gtgz and ThirdParty-1.6.General.gtgz from http://www.openfoam.com/download/linux64.php and did the installation following the README online http://www.openfoam.com/docs/README.php. I didn't do Building from Sources (Optional). At the step "Getting Started" , I tried run "blockMesh" but got "bash: blockMesh: command not found". Anyone can tell me what I am missing and how to fix? Many thanks. |
|
March 25, 2010, 16:28 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings h0y5840,
OK, according to the files you listed, you didn't unpack the binary files too! Namely OpenFOAM-1.6.linux64GccDPOpt.gtgz and ( OpenFOAM-1.6.linux64GccSPOpt.gtgz edit: sorry, this one is optional, you'll need this one ->) ThirdParty-1.6.linux64Gcc.gtgz. Therefore, you don't have any applications to run! Hopefully, you did do what Sebastian said on the other thread, i.e., source the bashrc file, like it is explained in the readme: Quote:
Of course you could also search for it yourself, but since it seems you posted so promptly, I suppose you aren't yet very familiar with the forum Best regards, Bruno Last edited by wyldckat; March 25, 2010 at 16:36. Reason: wrong file :( sorry |
||
March 25, 2010, 16:44 |
|
#3 | |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Quote:
I checked the Linux version: 2.6.18-164.11.1.el5 (brewbuilder@norob.fnal.gov) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20 00:57:09 EST 2010 And can you tell me where to find the binary files you mentioned above? I followed the online README and never got the step to unpack OpenFOAM-1.6.linux64GccDPOpt.gtgz and ( OpenFOAM-1.6.linux64GccSPOpt.gtgz edit: sorry, this one is optional, you'll need this one ->) ThirdParty-1.6.linux64Gcc.gtgz. Many thanks, HY |
||
March 25, 2010, 16:50 |
|
#4 | |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Quote:
Look out for "Download files". Take all but the optional one and unpack. It's all in the README.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
||
March 25, 2010, 17:33 |
|
#5 | |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Quote:
Now I have downloaded OpenFOAM-1.6.linuxGccDPOpt.gtgz and ThirdParty-1.6.linuxGcc.gtgz and unpacked them too. I actually deleted the previous directories and went through the whole installation steps with the four downloaded files following README. However, when I do "blockMesh" it is still "bash: blockMesh: command not found". One thing I was not sure if I did right because the README is not clear when it says "Create a project directory within the $HOME/OpenFOAM directory named $LOGNAME-1.6 (e.g. ‘chris-1.6’ for user chris and OpenFOAM version 1.6) and create a directory named run within it, e.g. by typing: mkdir -p $FOAM_RUN/run". I did "mkdir LOGNAME-1.6" in $HOME/OpenFOAM directory and did "mkdir -p $FOAM_RUN/run" in $HOME/OpenFOAM/LOGNAME-1.6". I assumed "it" in above context is LOGNAME-1.6. Am I correct? If yes, why I am still getting "bash: blockMesh: command not found"? Thank you very much for your patience and guidance. HY |
||
March 25, 2010, 18:54 |
|
#6 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hello again h0y5840,
Uhm, the names of the files already had the links straight to the files at sourceforge, because I copied them directly from the www.openfoam.com web site, from the third link you provided: Quote:
Quote:
So, I'll try to explain both solutions. There are 2 architectures of OpenFOAM: 32 and 64 bit. Now, the packages that state:
The Red Hat version you have seems a little bit old to me, so OpenFOAM and/or Paraview might not work 100% as intended. Well, Paraview is the one most likely not to work Ah, the trick to know if blockMesh does actually exist, to the eyes of bash, type in the terminal: Code:
which blockMesh Now, IF the "which" command lists the path to blockMesh, but blockMesh still won't run, then it is likely your Linux installation is missing some libraries... and will likely mean the near absolute need to rebuild OpenFOAM. If blockMesh runs well and icoFoam too, but paraFoam croaks with a Code:
can't find symbol #!"$#"#!%#$%#"$ Download the Qt package they refer in the first link to and unpack it inside the ThirdParty folder. Then run: Code:
./makeQt Code:
cd $WM_THIRD_PARTY_DIR wget ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.5.tar.bz2 tar -xjf qt-x11-opensource-src-4.3.5.tar.bz2 ./makeQt NOTE: it is implied that the OpenFOAM's bashrc ran successfully. OOOK... and that should keep you busy for a few hours Come back if you've got more problems... or even if you got it all to work Best regards, Bruno Last edited by wyldckat; March 26, 2010 at 14:15. |
|||
March 26, 2010, 10:42 |
|
#7 |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Hi Bruno,
Thank you so much for your time and patience. I tried again but it is still not working. I am gonna give you more details about the installation to see if you can diagnose the problem. There seems a long journey to go through to get the system work. My intention is to get blockMesh and icoFoam working first and leave paraFoam for furure struggling. [QUOTE=wyldckat;251737] Additionally, from what you've listed, I'm unable to guess what specific architecture you're Red Hat is built for:Namely, if it's i386/486/686 (32bit) or x86_64 (64bit).[QUOTE] My Red Hat is built for x86_64 (64bit). [QUOTE=wyldckat;251737] Now, after unpacking the OpenFOAM and ThirdParty sources (General packages) and the desired architecture (linuxGcc or linux64Gcc, also for OpenFOAM and ThirdParty), the steps are very similar between both, as you've already done... If (this happened to me) sourcing the bashrc file doesn't do the trick, just start a new terminal, which will "boot" OpenFOAM's environment properly [QUOTE=wyldckat;251737] What I did for the installationwas as follows: 1. unpack OpenFOAM-1.6.General.gtgz and ThirdParty-1.6.General.gtgz in the directory of $HOME/OpenFOAM, which generated two subdirectories OpenFOAM-1.6 and ThirdParty-1.6. 2. unpack OpenFOAM-1.6.linux64GccDPOpt.gtgz and ThirdParty-1.6.linux64Gcc.gtgz in the directories $HOME/OpenFOAM/OpenFOAM-1.6 and $HOME/OpenFOAM/ThirdParty-1.6 respectively. 3. add . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc to the end of $HOME/.bashrc file and do . $HOME/.bashrc 4. do "mkdir LOGNAME-1.6" in the directory $HOME/OpenFOAM/ and do "mkdir -p $FOAM_RUN/run" in the directory $HOME/OpenFOAM/LOGNAME-1.6 5. do "cp -r $WM_PROJECT_DIR/tutorials $FOAM_RUN" 6. do "cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity" 7. run "blockMesh" and I got "bash: blockMesh: command not found" [QUOTE=wyldckat;251737]The Red Hat version you have seems a little bit old to me, so OpenFOAM and/or Paraview might not work 100% as intended. Well, Paraview is the one most likely not to work [QUOTE] This is not good news and I'll talk to the machine adminstrator to see if the version can be updated. Would this be the reason that why blockMesh is not working [QUOTE=wyldckat;251737] Ah, the trick to know if blockMesh does actually exist, to the eyes of bash, type in the terminal: Code:
which blockMesh [QUOTE] "which blockMesh" gives "/usr/bin/which: no blockMesh in ($HOME/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/bin:$HOME/OpenFOAM/huidan-1.6/applications/bin/linux64GccDPOpt:$HOME/OpenFOAM/site/1.6/bin/linux64GccDPOpt:$HOME/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt:/home/huidan/OpenFOAM/OpenFOAM-1.6/wmake:$HOME/OpenFOAM/OpenFOAM-1.6/bin:/opt/mpich2-1.1-ifort/bin:/opt/tec360_2009/bin:/opt/smartcvs-7.1.1/bin:/opt/matlab/bin:/opt/intel/Compiler/11.0/083/bin/intel64:/usr/local/cuda/bin:/opt/smartcvs-7.1/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/scitools/bin/pc-linux_elf:$HOME/bin)" Can I do anything further to dignose the problem? Many Thanks. HY |
|
March 26, 2010, 10:51 |
|
#8 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hello again HY,
OK, so far so good. Most of your steps are OK, except for step 2: Quote:
Quote:
Best regards, Bruno Last edited by wyldckat; March 26, 2010 at 10:52. Reason: typos... |
|||
March 26, 2010, 12:07 |
|
#9 | |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Hello Bruno, I am little confused by this.
[QUOTE=wyldckat;251845] OK, so far so good. Most of your steps are OK, except for step 2: 2. unpack OpenFOAM-1.6.linux64GccDPOpt.gtgz and ThirdParty-1.6.linux64Gcc.gtgz in the directories $HOME/OpenFOAM/OpenFOAM-1.6 and $HOME/OpenFOAM/ThirdParty-1.6 respectively. You should also unpack these two packages in $HOME/OpenFOAM/, because the packages already have the desired paths already in them, like the General packages had![QUOTE] On the web (http://www.openfoam.com/download/linux64.php), in the paragraph of "Unpack files", it says "Decompress each file with GNU gtar and gzip using the command ”tar xzf <filename>”, beginning with the source files (OpenFOAM-1.6.General.gtgz and ThirdParty.General.gtgz - these source files must be present for OpenFOAM to be operational). The OpenFOAM source and (any) binary files unpack into a $HOME/OpenFOAM/OpenFOAM-1.6 directory. The third-party software unpacks into a $HOME/OpenFOAM/ThirdParty directory." I understood that OpenFOAM-1.6.linux64GccDPOpt.gtgz and ThirdParty-1.6.linux64Gcc.gtgz are binary files and they should be unpacked into $HOME/OpenFOAM/OpenFOAM-1.6 directory and $HOME/OpenFOAM/ThirdParty directory respectively. Can you clarify this? Quote:
Best, HY |
||
March 26, 2010, 12:23 |
|
#10 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Put all files into $HOME/OpenFOAM and unpack from there!!!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
March 26, 2010, 12:33 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Last edited by wyldckat; March 26, 2010 at 12:34. Reason: change of wording... |
||
March 26, 2010, 13:31 |
|
#12 |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
, guys, you know what? It worked! The "unpack files" instruction on the web is really misleading.
However, it's not done yet. blockMesh and icoFoam both work with massive text outputs but paraFoam give error as " created temporary 'cavity.OpenFOAM' /home/huidan/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries: libQtAssistantClient.so.4: cannot open shared object file: No such file or directory. This error seems exactly the same as what in thread http://www.cfd-online.com/Forums/ope...-paraview.html from ka1184. I see many responses there but ka1184 didn't feedback if he has fixed the problem. Sounds like a version problem. I was wondering if it can be fixed without system update. Thank you, Bruno and Sega, very much. You are very patient and helpful. HY |
|
March 26, 2010, 13:37 |
|
#13 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Great!
Quote:
Quote:
|
|||
March 26, 2010, 13:53 |
|
#14 |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Hi Bruno,
I didn't get an error like can't find symbol #!"$#"#!%#$%#"$ but something I described in my post #12. Do you think I should still try what you mentioned in post #6? Thanks, HY |
|
March 26, 2010, 14:01 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Short answer: Yes.
Long Answer:
Best regards, Bruno |
|
March 26, 2010, 14:12 |
|
#16 | ||
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Quote:
Quote:
I did what you said. But when I did "tar -xzf qt-x11-opensource-src-4.3.5.tar.bz2 ", an error appeared as "gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors". Is this a simple problem to resolve? HY |
|||
March 26, 2010, 14:16 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Arg, sorry about that! I've just fixed the post, just in case. The correct command is:
Code:
tar -xjf qt-x11-opensource-src-4.3.5.tar.bz2 |
|
March 26, 2010, 14:42 |
|
#18 | |
New Member
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 16 |
Quote:
I downloaded and Qmaked the Qt package. But the error message is the same when I run paraFoam as "created temporary 'cavity.OpenFOAM' $HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries: libQtAssistantClient.so.4: cannot open shared object file: No such file or directory". I then did "Compiling Paraview 3.6.1 and the PV3FoamReader module" and "Compiling Paraview with a local version of Qt" following the instructions on http://www.openfoam.com/docs/README.php. Now I run paraFoam again in directory $FOAM_RUN/tutorials/incompressible/icoFoam/cavity and got a new error like "created temporary 'cavity.OpenFOAM' $HOME/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: line 129: paraview: command not found". I did checked the paraFoam file and line 129 is " paraview --data="$caseFile". Is it easy to be fixed? Many thanks, HY Last edited by h0y5840; March 26, 2010 at 15:10. |
||
March 26, 2010, 15:21 |
|
#19 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi HY,
Uhm, I thought the coders of OpenFOAM had that covered OK, edit the file $HOME/OpenFOAM/OpenFOAM-1.6/etc/settings.sh and go to the end of the file. Now, just before this (it's near the end): Code:
# cleanup environment: # ~~~~~~~~~~~~~~~~~~~~ unset _foamAddPath _foamAddLib minBufferSize # ----------------------------------------------------------------------------- Code:
# Add Qt to path and library path # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QT_VERSION=4.3.5 QT_HOME=${WM_THIRD_PARTY_DIR}/qt-x11-opensource-src-${QT_VERSION} if [ -d "$QT_HOME" ] then QT_ARCH_PATH=${QT_HOME}/platforms/${WM_OPTIONS} _foamAddPath $QT_ARCH_PATH/bin _foamAddLib $QT_ARCH_PATH/lib fi Code:
_foamAddLib $QT_ARCH_PATH/lib Code:
_foamAddLib $QT_ARCH_PATH/lib64 Best regards, Bruno |
|
March 26, 2010, 15:27 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Just saw your edit about paraview not being there...
OK, without erasing the folders, unpack again the ThirdParty-1.6.linux64Gcc.tgz at $HOME/OpenFOAM. Now source the bashrc file or start a new terminal and try to just run paraview again. Take into account whether you've already changed lib to lib64 thing and try one or the other! |
|
Tags |
blockmesh not found, test cases |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
user routine, user funcion, or fortran compile effect on the memroy? | princeps11 | CFX | 1 | May 13, 2009 19:37 |
CFX 10 User Routine NOT in Fortran | Andre | CFX | 14 | August 9, 2006 00:03 |
particle user routines | Felix | CFX | 1 | July 24, 2006 13:32 |
User Surface, Calculator | Christian Bruzzese | CFX | 3 | November 15, 2005 11:13 |
User viscosity routine and user scalars? | Jeff | Siemens | 3 | January 6, 2003 06:26 |