CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] paraFoam Installation for Open Foam 2.3.1 on Ubuntu 12.04 (https://www.cfd-online.com/Forums/openfoam-installation/157616-parafoam-installation-open-foam-2-3-1-ubuntu-12-04-a.html)

arieljeds August 3, 2015 10:39

paraFoam Installation for Open Foam 2.3.1 on Ubuntu 12.04
 
Hi everyone,

First off I have to say that I am completely new to OpenFOAM, quite new to Linux, and in general not incredibly confident at programming. For my work, I am trying to learn OpenFOAM and am following tutorials. I was able to install openFOAM and paraview correctly... so I thought! When I type just paraview into the command line, paraview opens correctly. However, when I try paraFoam, I get the error "command not found".

Here are some things I tried:

Code:

sudo apt-get download  paraviewopenfoam231  --allow-unauthenticated
(error: unable to locate package paraviewopenfoam231)

I also tried to follow the instructions here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.10 (beginning with step 9 and setting up Cmake - not successful).

Code:

cd $WM_THIRD_PARTY_DIR
wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getCmake"
sed -i -e 's=version}\.3=version}.12.1=' getCmake
chmod +x getCmake
./getCmake
./makeCmake
wmSET $FOAM_SETTINGS

The error for this is:

Code:

./getCmake: 42: ./getCmake: wmakeCheckPwd: not found
I would really appreciate even a better link to follow to download this correctly, or some simply worded advice (I am way way out of my depth at the moment and just wanted to get things working!)

Thanks in advance for any advice!!

UPDATE: I've just realised that this did in fact work before. I can launch ParaView (typing paraview in the command line) and I can view my past attempt at this -- several months ago so I had forgotten I had tried before. Now I'm more confused because I guess I deleted it somehow or changed the dependency??? Any ideas?

wyldckat August 4, 2015 17:23

Greetings Ariel and welcome to the forum!

Well, there were two details wrong in how you were trying to install ParaView via apt-get:
  1. The package is named "paraviewopenfoam410", not "paraviewopenfoam231", as indicated here: http://www.openfoam.org/archive/2.3....oad/ubuntu.php ;)
  2. Ubuntu 12.04 is not a valid version for installing the package "paraviewopenfoam410", as also indicated on that page. I say this because on the thread title you've indicated you were using Ubuntu 12.04.
If the command:
Code:

paraFoam
tells you that it cannot find this script/command, then there is something strange with your installation of OpenFOAM 2.3.1. Perhaps you need to first activate the OpenFOAM shell environment? More details provided here: http://openfoamwiki.net/index.php/In...ment_Variables
The error message:
Code:

wmakeCheckPwd: not found
also relates to the OpenFOAM shell environment not being activated.


Best regards,
Bruno

arieljeds August 5, 2015 03:45

Hi Bruno,

Thanks for your reply! Well after messing around with it a lot I realised I was really stupid and, as you suggested, had not even opened the OpenFOAM environment! I have it working now but having other issues to do with the "Plot over Line" option (greyed out) but I guess it's off topic and I'll start a new thread if necessary!

Thanks again

Ariel


All times are GMT -4. The time now is 10:43.