CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Paraview crash after opening OF case

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2009, 16:27
Default Paraview crash after opening OF case
  #1
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 16
gfilip is on a distinguished road
Hello,

I just installed OF1.6.x using Mads' script (http://hvirvel.com/installOF), followed by paraview installation using the makeParaView script inside the ThirdParty folder. The installation seems to be successful as paraview runs fine until I attempt to use paraFoam to open a OF case, such as /run/cavity.

When I run paraFoam, a dialog pops up asking to select a reader for "cavity.OpenFOAM" as one could not be found. I select "OpenFOAM files" from the list of readers, and paraview crashes. Here is the terminal output:

Code:
greg@greg-laptop:~/OpenFOAM/greg-1.6.x/run/cavity$ paraFoam 
created temporary 'cavity.OpenFOAM'
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_S_create
Aborted
Any ideas as to what might be wrong?

Thanks,


-Greg
gfilip is offline   Reply With Quote

Old   September 23, 2009, 18:11
Default
  #2
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 16
gfilip is on a distinguished road
I found the solution to my problem.

Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
    ./Allwclean
    ./Allwmake
Thanks to http://www.cfd-online.com/Forums/ope...tu-9-04-a.html


-Greg
gfilip is offline   Reply With Quote

Old   October 6, 2009, 00:43
Default
  #3
Member
 
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 17
rassilon is on a distinguished road
Quote:
Originally Posted by gfilip View Post
I found the solution to my problem.

Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
    ./Allwclean
    ./Allwmake
Thanks to http://www.cfd-online.com/Forums/ope...tu-9-04-a.html


-Greg

Hmmm. I am getting this exact same problem on my new install - I have tried building the PV3 module a couple of times, but Paraview still hangs with the error message you describe.

Is there anything else that I need to do to to get Paraview to utilise the reader?


R
rassilon is offline   Reply With Quote

Old   October 6, 2009, 09:44
Default
  #4
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 16
gfilip is on a distinguished road
Unfortunately I do not know what could be the causing the problem for you.

From what I have been reading, paraview seems very sensitive to the version of Qt you have installed. I also found this information which basically reiterates my solution but goes into a little more depth.

Quote:
If you have problems with paraFoam and the dev version you might have to recompile paraFoam (see http://www.opencfd.co.uk/openfoam/do....html#Paraview). If paraFoam loads, but doesn't know which reader to use to display your OpenFoam results, recompiling the PV3FoamReader should suffice.
To do so, first make sure the environment variable $ParaView_INST_DIR contains the correct path (in my version of OF-1.5-dev there was a typo, a wrong "-"). If not, correct it in ~/OpenFOAM/OpenFOAM-1.5-dev/etc/apps/paraview3/bashrc and re-source ~/.bashrc. Then proceed with ./Allwclean and ./Allwmake in ~/OpenFOAM/OpenFOAM-1.5-dev/applications/utilities/postProcessing/graphics/PV3FoamReader.

From: http://openfoamwiki.net/index.php/Installation

Hope that helps, and good luck.


-Greg
gfilip is offline   Reply With Quote

Old   October 14, 2009, 15:46
Default Paraview crash-- reader not found
  #5
New Member
 
Nisha
Join Date: Sep 2009
Location: Massachusetts
Posts: 18
Rep Power: 16
nisha is on a distinguished road
Hi,
this post might help you for the solving paraview crash, or reader not found error.
The problem lies with the Qt Assistant...!! as openFOAM insists to use correct version.

Although you may be thinking that you have installed Qt4 latest version
and its libraries from synaptic manager, or elsewhere, do a check this way:

nisha@newton:~$ qmake --version

it gave me this:

Qmake version: 1.07a (Qt 3.3.8b)
Qmake is free software from Trolltech ASA.


As you can see, my Qt is 3.3.8b.
but paraview requires Qt-4.3.5 ..!!!

Solution to the problem is to install Qt-4.3.5 and make paraview find it..
Follow the steps as below:

(source: http://www.cfd-online.com/cgi-bin/Op...8466#POST28466)


1.
Download qt-x11-opensource-src-4.3.5.tar.gz (approx. 40MB)
from
ftp://ftp.trolltech.com/qt/source/qt...c-4.3.5.tar.gz
and unpack it in your /tmp folder. There now should be a folder called /tmp/qt-x11-opensource-src-4.3.5 on your system

2.
Go to that folder
cd /tmp/qt-x11-opensource-src-4.3.5

set the path you want to install Qt-4.3.5 in, e.g.
./configure -prefix ~/OpenFOAM/ThirdParty/Qt-4.3.5

you may have to accept the GNU-license. Now compile (takes some time...)
make

and install
make install


3.
add the following lines to your ~/OpenFOAM/OpenFOAM-1.5/etc/bashrc at the very end

# set QT related variables
QT=~/OpenFOAM/ThirdParty/Qt-4.3.5
export PATH=$QT/bin:$PATH
export LD_LIBRARY_PATH=$QT/lib:$LD_LIBRARY_PATH



Now paraFoam should run smoothly...

If not, maybe you have to recompile the PV3FoamReader as

cd $WM_THIRD_PARTY_DIR
rm -rf paraview-3.6.1/platforms
makeParaView

hope this helps....!!!!!!


Update:
seems compiling makeParaView is returning error..!
"command not found"

:-( someone help me..!

Last edited by nisha; October 15, 2009 at 03:39.
nisha is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Xwindows crash with paraview save srinath ParaView 1 October 15, 2008 10:37
[OpenFOAM] ParaView crash srinath ParaView 2 June 1, 2008 20:03
Help setting up pressure function across opening Jenny CFX 3 October 18, 2007 01:16
[OpenFOAM] Both paraview and paraFoam crash on Redhat Linux WS v4 64bit sek ParaView 4 August 17, 2006 17:26
Turbulent Flat Plate Validation Case Jonas Larsson Main CFD Forum 0 April 2, 2004 11:25


All times are GMT -4. The time now is 03:44.