CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Cavity Tutorial: ParaView starts, cannot find reader

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 26, 2010, 21:36
Default Cavity Tutorial: ParaView starts, cannot find reader
  #1
New Member
 
Join Date: Jan 2010
Posts: 1
Rep Power: 0
mfrain is on a distinguished road
Hello,

I am troubleshooting an installation of OpenFOAM 1.6 on Debian GNU/Linux 5.0. I am working through the instructions at http://www.openfoam.com/docs/README.php. The installation test script ran without errors and I have just run the cavity tutorial with the blockMesh and icoFoam scripts.

However, when I run paraFoam, I get the following messages in the console:

Code:
$ 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
ParaView starts, but a dialog box opens indicating a reader for '$FOAM_RUN/tutorials/incompressible/icoFoam/cavity/cavity.OpenFOAM' could not be found, and asks for a reader to be selected.

If I select the logical 'OpenFOAM Files' reader, ParaView crashes with the following additional messages to the console:

Code:
terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_S_create
/home/mfrain/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: line 109:  5730 Aborted                 paraview --data="$caseFile"
If I select nothing and close the window, ParaView remains running but with no data input, and can exit normally.

I am guessing that ParaView is having difficulty seeing and/or interpreting the OpenFOAM files. Any guidance would be greatly appreciated.

EDIT:

Additional note: Building the PV3FoamReader per the OpenFOAM README does not change this behavior.

Last edited by mfrain; January 26, 2010 at 23:03. Reason: Additional note
mfrain is offline   Reply With Quote

Old   February 12, 2010, 12:00
Default
  #2
Member
 
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 8
suitup is on a distinguished road
Hi should be the same problem like in this thread paraFoam crashing on Ubuntu 9.10

Good luck.
suitup is offline   Reply With Quote

Old   August 18, 2011, 11:00
Default ParaView 3.10.1 starts, reader could not be found
  #3
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Quote:
Originally Posted by suitup View Post
Hi should be the same problem like in this thread paraFoam crashing on Ubuntu 9.10

Good luck.
I have a milder version of the problem:

I installed CentOS OF2.0.x and friends, including ParaView 3.10.1

paraFoam will launch ParaView, but ParaView cannot figure out which viewer to use and offers me a list of readers. When I select the OpenFOAM reader, ParaView proceeds normally.

I looked at the ParaView command line switches and the paraFoam script, and I don't see anything obvious.

Any thoughts?

Thanks,

Mirko
mirko is offline   Reply With Quote

Old   August 18, 2011, 11:52
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mirko,

Since it's OF 2.0 + PV 3.10.1, try run it like this:
Code:
paraFoam -builtin
This will use the ".foam" internal reader that comes with ParaView.

As for the ".OpenFOAM" reader, it will depend on:
  1. Whether you built it yourself.
  2. Or came built with CentFOAM (which I think is no longer supported, but I could be wrong).
  3. Or is a version that comes with/for CentOS.
  4. Or is the pre-built one from www.paraview.org.
If you built it yourself, or if the version you have got comes with the development files, then you can build the official reader: the PV3FoamReader Module

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 18, 2011, 12:27
Default
  #5
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Mirko,

Since it's OF 2.0 + PV 3.10.1, try run it like this:
Code:
paraFoam -builtin
This will use the ".foam" internal reader that comes with ParaView.

As for the ".OpenFOAM" reader, it will depend on:
  1. Whether you built it yourself.
  2. Or came built with CentFOAM (which I think is no longer supported, but I could be wrong).
  3. Or is a version that comes with/for CentOS.
  4. Or is the pre-built one from www.paraview.org.
If you built it yourself, or if the version you have got comes with the development files, then you can build the official reader: the PV3FoamReader Module

Best regards,
Bruno
thank you Bruno,

I downloaded all the files from the sourceforge site. They were updated on 8/3. I will contact the CentFoam folks about the paraview build.

Mirko
mirko is offline   Reply With Quote

Old   June 18, 2012, 14:14
Default
  #6
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 40
Rep Power: 7
carowjp is on a distinguished road
Hello Bruno,

I have a similar issue as described by Mirko:

Code:
 
$ paraFoamcreated 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
However, I should say that I compiled Paraview 3.12.1 and the PV3Reader (OF 2.1.1) from the OpenCFD sources. I would like to have an install of OF 1.7.1 and OF 2.1.1 which both use a newer Paraview due to some bug fixes I require.

OF 1.7.1 and Paraview 3.8 works
OF 2.1.1 and Paraview 3.12.1 works

I tried to change .bashrc to allow use of OF 1.7.1 and Paraview 3.12.1 and that's when ParaView cannot figure out which viewer to use and offers me a list of readers. If I select the OpenFOAM reader, ParaView proceeds normally.

My challenge is that I am writing Python code to automate things and manually selecting a reader isn't so great!

thanks for any suggestions,

Jim
carowjp is offline   Reply With Quote

Old   June 18, 2012, 14:57
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Jim,

Mmmm... If I understand you correctly, you're trying to use ParaView 3.12.0 with OpenFOAM 1.7.1.
And according to your description, I suppose you can't have two separate terminal windows/tabs, one for each OpenFOAM, is that correct?

Another question: is the OpenFOAM 1.7.1 your own build as well?

Basically the solution should be, by doing the following steps on your OpenFOAM 1.7.1 installation:
  1. Edit the file "OpenFOAM-1.7.1/etc/apps/paraview3/bashrc".
  2. Find these lines and change 3.8.0 to 3.12.0:
    Code:
    # set VERSION and MAJOR (version) variables
    ParaView_VERSION=3.8.0
    ParaView_MAJOR=unknown
  3. Save and close that file.
  4. Next, go to the folder "ThirdParty-1.7.1":
    Code:
    foam3rdParty
  5. Do a full copy of the other installation of ParaView 3.12.0. For example:
    Code:
    cp -r $HOME/OpenFOAM/ThirdParty-2.1.0/platforms/linux64Gcc/paraview-3.12.0 platforms/linux64Gcc/
  6. Start a new terminal, with the normal OpenFOAM 1.7.1 environment.
  7. Build the official PV3FoamReader once again:
    Code:
    foam
    cd applications/utilities/postProcessing/graphics/PV3FoamReader
    ./Allwmake
  8. If all goes well, the goose is now cooked and ready to serve (Sorry, dinner time ).


On the other hand, if you simply want the internal reader, then you can hack the paraFoam script and change all references of ".OpenFOAM" to ".foam". To know where paraFoam is, run:
Code:
which paraFoam
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 18, 2012, 22:14
Default
  #8
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 40
Rep Power: 7
carowjp is on a distinguished road
Bruno,

The goose was delicious....I adjusted the paths in step 5 to match my install and all is good.

thanks alot,

Jim
carowjp is offline   Reply With Quote

Reply

Tags
parafoam debian cavity

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Trying to submit soon Paraview reader tj22 OpenFOAM Paraview & paraFoam 3 June 5, 2006 14:07
HI all I cant find display button in paraview when i execute cavity tutorial there is only parameter button in the paraview chan OpenFOAM Paraview & paraFoam 2 February 13, 2006 08:37
Canbt run the tutorial cavity fengxs OpenFOAM Installation 4 May 10, 2005 13:18
where to find old version Fluent tutorial guid Roger FLUENT 0 March 11, 2002 18:04


All times are GMT -4. The time now is 20:38.