|
[Sponsors] |
paraFoam problem soon after installing OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 7, 2014, 07:33 |
paraFoam problem soon after installing OpenFOAM
|
#1 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
I recently installed OpenFOAM and i am now trying to do the tutorials in the user guide.
In the first one, as i am trying to enter the command "paraFoam" i get this message: FATAL ERROR: ParaView reader module libraries do not exist Please build the reader module before continuing: cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers ./Allwclean ./Allwmake Anyone knows why this happens and how to solve it? Thank you |
|
October 7, 2014, 08:17 |
|
#2 |
Senior Member
|
Hi,
The error is self-explanatory in fact. To use paraFoam, you have to build OpenFOAM reader module using commands provided in error message. If you'd like to use Paraview's built-in OpenFOAM reader, you have to edit paraFoam script (located in $WM_PROJECT_DIR/bin) and change two lines: Code:
# reader extension extension=OpenFOAM requirePV=1 Code:
# reader extension extension=foam requirePV=0 |
|
October 7, 2014, 10:03 |
|
#3 |
Member
Join Date: Jun 2011
Posts: 53
Rep Power: 14 |
Which OpenFOAM Version did you install?
On which system does it run? |
|
October 8, 2014, 05:07 |
|
#4 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
I'm using OpenFOAM 2.2 2 in ubuntu 12.04 LTS.
How do i edit that script? im a little lost with this problem. I was following everything in the tutorial with no problem until i tried to use paraFoam. Maybe it's an installation error? Thank you all |
|
October 8, 2014, 05:19 |
|
#5 |
Senior Member
|
Hi,
did you install binary distribution (i.e. with apt-get) or build OF from sources? If the first is the case, then it's a bug. To edit paraFoam script you should go to $WM_PROJECT_DIR/bin and open it with text editor Something like: Code:
$ cd $WM_PROJECT_DIR/bin $ gedit paraFoam |
|
October 8, 2014, 05:55 |
|
#6 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
Yeah, i installed binary distribution, i followed the steps in "Ubuntu Deb Pack Installation" in openfoam.org
So, how do i solve it? i am thinking about removing completely openfoam and start fresh I used the command "sudo apt-get remove openfoam230 paraviewopenfoam410" but now, everytime i open terminal, in the first line appears this: "bash: /opt/openfoam222/etc/bashrc: No such file or directory" I dont seem to be able to install openfoam again. I have no idea how to solve this.. Thanks |
|
October 8, 2014, 06:26 |
|
#7 |
Member
Join Date: Jun 2011
Posts: 53
Rep Power: 14 |
bash error:
open your .bashrc or .bash_aliases file and remove the line 'alias of222= /opt/openfoam222/etc/bashrc' for any new installation you can set an alias in your bash file again, using then the right installation folder. For example, if you install OF per SourcePack in your home folder, the installation path would be /home/[user]/OpenFoam-2.???. |
|
October 8, 2014, 06:50 |
|
#8 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
Now when i try to install it again, using the Deb Pack Installation, when i use the command "sudo apt-get install openfoam222" i get this message
** To use OpenFOAM please add ** ** . /opt/openfoam222/etc/bashrc ** ** To your ~/.bashrc And i already made the changes in the .bashrc file.. |
|
October 8, 2014, 07:18 |
|
#9 | ||
Senior Member
|
Quote:
Quote:
|
|||
October 11, 2014, 17:06 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
António sent me a private message a few minutes after Alexey's answer, so I'm not sure if he had the chance to read Alexey's answer first or not. My advice is as follows:
Best regards, Bruno
__________________
|
|
October 21, 2014, 06:59 |
|
#11 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
Thank you all for your answers!
I've been out so only now i was able to do everything you told me to do. I think i have no mistakes, as i followed wyldckat advice. When i run "ls -l /opt/openfoam222/etc/bashrc" I get the message "-rw-r--r-- 1 root root 7295 Oct 4 2013 /opt/openfoam222/etc/bashrc" and when i run "ls -l /opt/ " i get " total 8 drwxr-xr-x 10 root root 4096 Oct 21 11:15 openfoam222 drwxr-xr-x 6 root root 4096 Oct 21 11:17 paraviewopenfoam3120 " and after that, with the last command i get no message so i guess everything is ok no? Once again thank you all |
|
October 26, 2014, 10:15 |
|
#12 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi António,
From your description, everything seems to be OK! I hope you don't mind, but I'll answer the other question you sent me via PM, regarding these instructions: Quote:
My advice is that you carefully follow the OpenFOAM User Guide, starting from the beginning of chapter 2: http://www.openfoam.org/docs/user/tutorials.php - well, you can/should read chapter 1 as well, but I'm pointing to chapter 2 because it's where they give more details on what they were referring to in the installation page, namely in the "Getting Started" section. If by any chance you still aren't seeing the bigger picture, try running these two commands: Code:
echo $FOAM_TUTORIALS echo $FOAM_RUN Best regards, Bruno
__________________
|
||
October 27, 2014, 06:24 |
|
#13 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
Ok, i think i got it now and i did the first part of the tutorial
I have another question now. Why can't i run any commands in terminal while paraview is open? When i run paraFoam and paraview is open, no matter what i write in terminal it wont do anything. Only when i close paraview i am able to run any commands again. Also, In the tutorial they ask us to produce a finer mesh which i have done and also i have mapped the results of the first mesh onto the second one. But as soon as i open paraview again it lists a lot of errors like this one: [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action Anyone can help me? Thank you a lot António |
|
October 27, 2014, 15:48 |
|
#14 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi António,
Quote:
Quote:
Quote:
Best regards, Bruno |
||||
October 28, 2014, 04:48 |
|
#15 |
Member
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11 |
Ah, you're right, it was really easy to solve, sorry about that.
Thanks again António |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem Installing OpenFOAM at Ubuntu | Maralady | OpenFOAM Installation | 1 | August 25, 2013 18:22 |
Installation paraFoam - still problem | nhl | OpenFOAM Installation | 7 | June 22, 2010 09:22 |
Problem with baffles from Harpoon in OpenFoam | OMN | OpenFOAM | 0 | June 9, 2010 08:59 |
Problem running paraFoam on OpenFOAM 1.5 | sonny | OpenFOAM | 3 | June 6, 2009 20:24 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |