CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   ParaFoam step 6 test case (https://www.cfd-online.com/Forums/openfoam-installation/57230-parafoam-step-6-test-case.html)

michiel09 February 15, 2009 14:08

Hey, While installing OpenF
 
Hey,

While installing OpenFoam and following all directions exactly (http://www.opencfd.co.uk/openfoam/doc/README.html), I still get the following message when I try to (step 6) run the first example case of incompressible laminar flow in a cavity

michiel@linux-mftb:~/OpenFOAM/michiel-1.5/run/tutorials/icoFoam/cavity> paraFoam
/home/michiel/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: line 100: paraview: command not found

I tried fulfilling step 7 and run again, but this didnīt work. What did I forget to do, as apparently I donīt have paraFoam?

Might it have something to do with step 3, as I couldnīt find a $HOME/.bashrc file. Typing those command lines, starting with a . did seem to do something though, so I thought it might just be me - as a new LiNuX user I am not experienced with bash....

I hope somebody can tell me what went wrong - that would be really appreciated :D

Greetings,
Michiel

rishi123 February 15, 2009 15:38

Hi Michel, Did you try to bui
 
Hi Michel,
Did you try to build Paraview3.3cvs? B'coz if you do that then you must have also executed "rm -rf ParaView3.3-cvs/platforms" which removes essential paraview files from the OpenFOAM/ThirdParty/ParaVIew3.3-cvs/Platforms. If this build isn't successful and then you try running paraFoam you would get that message.
If you haven't tried to build then you must do the first 2 steps i.e. "tar xzf" the openFoam.General then the OpenFoam.GccDPopt then the ThirdParty.General then ThirdParty.linuxGcc and mainly remember all these to be done in HOME/OpenFOAM.
Then you have to edit the bashrc in the root by typing "gedit $HOME/.bashrc". you got to add . "$HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc" just before the "finish" or "fi" line. After that save and then get back to terminal and then type
". $HOME/.bashrc" for updating the changes. Then you perform the foam installation test. After this you can try out the cavity problem. But you wouldn't be able to view the cavity in paraview unless and until you build paraview.
So the next you can go for is to build paraview but do mind not executing the "rm -rf ParaView3.3-cvs/platforms" and directly execute the next step. I am sorry just before building paraview you got to set certain paths and variables by executing "ccmake $HOME/OpenFOAM/ThirdParty/ParaView3.3-cvs" in $HOME/OpenFOAM/ThirdParty. you can visit "http://paraview.org/Wiki/ParaView:Build_And_Install" and check out the paraview settings and also the steps for ccmake. after this you can build paraview(it takes about 5 hrs to completely build) and then compile PV3 FoamReader so that the OpenFoam files can be read by paraview.
Hope this would be truly helpful to you b'coz I have tried to explain you the step by step procedure which finally gave me success. Hope you are working on Ubuntu 8.04?

Do give the feedback and get back if you face a problem.

Bye
Rishi.

michiel09 February 16, 2009 17:30

Hi Rishi, Thank you for the
 
Hi Rishi,

Thank you for the quick reply. Trying to follow the clear guidelines you gave me, but there is no "bashrc" file in the home directory. Is this file the same one as there is is the OpenFOAM/OpenFOAM-1.5/etc directory - or did something went wrong during installation - or should I create such a file.
I am running OpenSuse btw, but already figured out that I could use kwrite to edit a bashrc-file.
bye,
Michiel

rishi123 February 17, 2009 00:24

Hi, Its my pleasure to help y
 
Hi,
Its my pleasure to help you out. But I am quite surprised to know that you don't have a .bashrc file in your home directory. Just check out the openfoam1.5 readme if you have typed in the correct filename. BTW its ".bashrc" file. it isn't the same one as in the OpenFoam directory.
Bye
Rishi

michiel09 February 17, 2009 03:43

hmmm.. I did check the filenam
 
hmmm.. I did check the filename - and also checked the directory with a "file manager" and there was not such a file there.
This file should have been installed there when I unpacked those four (zipped?) folders which I found on the Openfoam website?
Can I simply remove the "/OpenFOAM" directory by right-clicking and move to trash - or should I uninstall it in some particular way? After this I think the best option is to download the package again en start with step 1 and see if the .bashrc file is present..
tnx,
Michiel

michiel09 February 17, 2009 03:46

hmmm.. I did check the filenam
 
hmmm.. I did check the filename - and also checked the directory with a "file manager" and there was not such a file there.
This file should have been installed there when I unpacked those four (zipped?) folders which I found on the Openfoam website?
Can I simply remove the "/OpenFOAM" directory by right-clicking and move to trash - or should I uninstall it in some particular way? After this I think the best option is to download the package again en start with step 1 and see if the .bashrc file is present..
tnx,
Michiel

pellrk03 February 17, 2009 11:52

hi Michiel, maybe the .bashrc
 
hi Michiel,
maybe the .bashrc file is hidden. You have to change your view in your home file
Hannes

pellrk03 February 17, 2009 11:58

Hey, i have another problem.
 
Hey,
i have another problem. When executing the allwclean file in Step 6, I have the following output:

pellrk03@ws4 ~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graph
ics/PV3FoamReader $ ./Allwclean
+ rm -r PV3FoamReader/Make
rm: cannot remove `PV3FoamReader/Make': No such file or directory
+ wclean libso vtkPV3Foam
./Allwclean: line 6: wclean: command not found
pellrk03@ws4 ~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graph
ics/PV3FoamReader $ ./Allwmake
+ '[' -d '' -a -r '' ']'

What's the problem?

thanks Hannes

rishi123 February 17, 2009 23:51

Hi Michiel, You are making a
 
Hi Michiel,
You are making a mistake coz the .bashrc file in HOME is a hidden file and you check out by going to view and check show hidden files. ok
bye
Rishi

rishi123 February 18, 2009 00:00

Hi Hannes, There is no proble
 
Hi Hannes,
There is no problem if you get that message, so you have to worry and you can proceed to allwmake.
bye
Rishi

rishi123 February 18, 2009 00:16

Iam sorry you don't have to wo
 
Iam sorry you don't have to worry.
Rishi

imronuke July 22, 2009 22:58

Hi michiel
May be my reply is late.
My experiences using ubuntu, file .bashrc that you mean, is in /etc directory but the file name is bash.bashrc


All times are GMT -4. The time now is 01:57.