CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How to Install OpenFOAM on 64 Ubuntu 9.04 (https://www.cfd-online.com/Forums/openfoam-installation/65945-how-install-openfoam-64-ubuntu-9-04-a.html)

yapalparvi July 26, 2009 20:16

Hi Igor,

I went thro your message and the earlier thread. I think you can still use paraview to visualise your results. I do the same way. When you convert your output to VTK format it will crate 6 files for the cavity case. If you want to open the last file you can give the command
paraview --data=cavity_last.vtk where last will be a number

tou can download the version of paraview from paraview.org. and untar the files. Once the files are untarred it will create a directory and within that there will be a "bin" directory. Add this path into your .bashrc file and source it. With this one you can open paraview

Hope this helps
Try running other cases like SolidDisplacement etc...

IGG July 27, 2009 03:15

Good morning yapalparvi,

Thank you very much. I'll try that shortly and will comment the results on the other thread, in order to not mix up threads. Sure your advice us very helpfull: all advices are helpful here!!!;)

rassilon October 6, 2009 00:12

Quote:

Originally Posted by pa-ma (Post 222743)
Yes I copied the 64 bit version bluntly to the dir structure where the original paraview executable should've been.

When I run 'paraFoam -case $FOAM_RUN/tutorials/icoFoam/cavity', paraview 3.4.0 opens and a dialog pops up, where you can select a reader for the case file. After selecting 'OpenFOAM files' reader, whole paraview dies. There is a patch to fix this, but that route means compiling paraview itself, which resulted in issues with my Jaunty package setup (synaptic won't install necessary dependencies).

I'd really prefer some binary PV3FoamReader if there is one to try with.

(For the record: this is a very fresh jaunty install with all updates applied)


Hi Pa-Ma,

How did you overcome this problem? I am experiencing it at the moment. I have attempted to compile the PV3FoamReader several times, yet I still get the reader selection dialog, and then a crash as soon as I select OpenFoam files.

Is there something that I need to do to tell Paraview to use the reader?


R

nirmalrishi October 12, 2009 11:46

builParaView3.3-cvs got following error
 
Hi,

When I tried to run buildParaView3.3-cvs after rmoving platforms directory, i got the following messages.

[ 52%] [ 52%] Building CXX object Utilities/VTKClientServer/Graphics/CMakeFiles/vtkGraphicsCS.dir/vtkWindowedSincPolyDataFilterClientServer.o
Building CXX object Utilities/VTKClientServer/Graphics/CMakeFiles/vtkGraphicsCS.dir/vtkGraphicsCSInit.o
Linking CXX shared library ../../../bin/libvtkGraphicsCS.so
[ 52%] Built target vtkGraphicsCS
make: *** [all] Error 2
done



please let me know, how can i avoid this and complete the installation?

sega October 21, 2009 06:15

Hello World.

Haven't thought I was beyond the point of asking questions about the installations, but Linux is always surprising ...

When running the ./Allwmake for the PV3FoamReader in version 1.6 I'm running into trouble:
Code:

[  8%] Generating qrc_PV3FoamReader.cxx
make[2]: QT_RCC_EXECUTABLE-NOTFOUND: Kommando nicht gefunden
make[2]: *** [qrc_PV3FoamReader.cxx] Fehler 127
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Fehler 2
make: *** [all] Fehler 2

What may be wrong? Any ideas?

Here are my Qt and GCC versions, just for completeness:
Code:

sega@deepblue:~$ qmake --version
QMake version 2.01a
Using Qt version 4.5.0 in /usr/lib
sega@deepblue:~$ gcc --version
gcc (OpenFOAM) 4.3.3

Have a nice day!

vex March 15, 2010 09:11

Quote:

Originally Posted by sega (Post 233512)
Hello World.

Haven't thought I was beyond the point of asking questions about the installations, but Linux is always surprising ...

When running the ./Allwmake for the PV3FoamReader in version 1.6 I'm running into trouble:
Code:

[  8%] Generating qrc_PV3FoamReader.cxx
make[2]: QT_RCC_EXECUTABLE-NOTFOUND: Kommando nicht gefunden
make[2]: *** [qrc_PV3FoamReader.cxx] Fehler 127
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Fehler 2
make: *** [all] Fehler 2

What may be wrong? Any ideas?

Here are my Qt and GCC versions, just for completeness:
Code:

sega@deepblue:~$ qmake --version
QMake version 2.01a
Using Qt version 4.5.0 in /usr/lib
sega@deepblue:~$ gcc --version
gcc (OpenFOAM) 4.3.3

Have a nice day!

Was there a solution found for this error? I'm hitting the same (exactly the same) problem.

sega March 15, 2010 11:03

Quote:

Originally Posted by vex (Post 250059)
Was there a solution found for this error? I'm hitting the same (exactly the same) problem.

I honestly can't remember ... :(

vex March 15, 2010 11:44

Quote:

Originally Posted by sega (Post 250091)
I honestly can't remember ... :(

Did it have something to do with changing between the system and OpenFOAM compilers in the settings.sh file?

sega March 15, 2010 12:27

I doubt that. It muste have been somthing with Qt and all this stuff ...

vex March 15, 2010 13:44

Quote:

Originally Posted by sega (Post 250111)
I doubt that. It muste have been somthing with Qt and all this stuff ...

It might have been the start of it. I know I was having similar problems with Qt before I fixed it. Once I did however I ran into a few issues with vtkConfig.h--which I believe is a result of not having PV3reader module compiled correctly which lead me to the error in question.

sega March 15, 2010 14:03

I really can't remember, sorry.
Which reminds me that I have to post solutions to every problem I faced and overcame...

vex March 15, 2010 14:21

Quote:

Originally Posted by sega (Post 250124)
I really can't remember, sorry.
Which reminds me that I have to post solutions to every problem I faced and overcame...

haha, it's okay--it's nothing super important as I'm doing this for "fun". Maybe some one will come up with a solution to this. I saw someone else has posted in my thread concerning this problem, so we'll see what they say.

wyldckat March 18, 2010 12:51

Greetings Anon,

I don't know if you've already managed to fix that issue you've had with Qt4/PV3FoamReader, but two possible fixes come to mind:
  1. install qt4-dev, which should have Qt's rcc (resource building application);
  2. rebuild Paraview that comes with OpenFOAM's ThirdParty, since there might be PV3FoamReader cmake definitions that are inherited from the Paraview build!
Best regards,
Bruno

vex March 18, 2010 19:59

Quote:

Originally Posted by wyldckat (Post 250673)
Greetings Anon,

I don't know if you've already managed to fix that issue you've had with Qt4/PV3FoamReader, but two possible fixes come to mind:
  1. install qt4-dev, which should have Qt's rcc (resource building application);
  2. rebuild Paraview that comes with OpenFOAM's ThirdParty, since there might be PV3FoamReader cmake definitions that are inherited from the Paraview build!
Best regards,
Bruno

That very well may be my problem. When I attempt to type in
Code:

sudo apt-get install qt4-dev
I receive
Code:

E: Couldn't find package qt4-dev

gwierink March 19, 2010 02:43

Quote:

I receive Code:
E: Couldn't find package qt4-dev
You could grab qt4-dev for karmic here ... :)

wyldckat March 19, 2010 06:23

Greetings Anon,

Quote:

Originally Posted by vex (Post 250724)
That very well may be my problem. When I attempt to type in
Code:

sudo apt-get install qt4-dev
I receive
Code:

E: Couldn't find package qt4-dev

Uhm, although Linux is wicked sweet with it's shell capabilities (one could bring the whole world to a halt, with just a Linux shell :cool:), most Linux distros (distributions) today have Graphical User Interfaces that aid those who can't get a grip on command line commands... me included :P
So whenever you can't install a package via command line, go to the GUI Synaptic, or Software Installation/Management in the menus or something like that, so you can get a proper search functionality ;) That's what I usually do :) Also because sometimes the package names will change from version to version, and not always will have the same name!

So, as Gijs indicated, the proper package name is qt4-dev-tools. So:
Code:

sudo apt-get install qt4-dev-tools
should do the trick :D

Best regards,
Bruno

vex March 19, 2010 09:54

Quote:

Originally Posted by wyldckat (Post 250792)
Greetings Anon,



Uhm, although Linux is wicked sweet with it's shell capabilities (one could bring the whole world to a halt, with just a Linux shell :cool:), most Linux distros (distributions) today have Graphical User Interfaces that aid those who can't get a grip on command line commands... me included :P
So whenever you can't install a package via command line, go to the GUI Synaptic, or Software Installation/Management in the menus or something like that, so you can get a proper search functionality ;) That's what I usually do :) Also because sometimes the package names will change from version to version, and not always will have the same name!

So, as Gijs indicated, the proper package name is qt4-dev-tools. So:
Code:

sudo apt-get install qt4-dev-tools
should do the trick :D

Best regards,
Bruno

Ahhh, then I've already installed that.

wyldckat March 19, 2010 10:00

Quote:

Originally Posted by vex (Post 250822)
Ahhh, then I've already installed that.

And does it work now? Or does the error you stated for the foam reader still occur?

vex March 19, 2010 11:41

Quote:

Originally Posted by wyldckat (Post 250823)
And does it work now? Or does the error you stated for the foam reader still occur?

Nope, the error still occurs.

wyldckat March 19, 2010 12:04

Quote:

Originally Posted by vex (Post 250836)
Nope, the error still occurs.

OK, if it's still the QT_RCC_EXECUTABLE issue... try this:
Code:

which rcc
If it shows something like:
Code:

/usr/bin/rcc
then it is installed.

Also, have you tried:
Code:

cd $FOAM_APP/utilities/postProcessing/graphics/PV3FoamReader
./Allwclean
./Allwmake

If you've tried all of the above to no success, then lets go to the other possibility: Paraview needs to be (re)built. Do you know if you've already built Paraview that comes with OpenFOAM's ThirdParty? Or are you using the one that comes with the linuxGcc package?
Either way, try:
Code:

cd $WM_THIRD_PARTY_DIR
./makeParaView

I'm not sure if it cleans after itself :( In other words, you might want to remove the folders "paraview-3.6.1/platforms/*" first, but do it only if it doesn't build at first.

If it builds successfully, then try building once again the PV3FoamReader :)


All times are GMT -4. The time now is 09:08.