CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to open two case in paraview? (http://www.cfd-online.com/Forums/openfoam/64859-how-open-two-case-paraview.html)

bowlderyu May 26, 2009 22:18

How to open two case in paraview?
 
Hello,all.
I am learning the tutorials by User Guide of OpenFOAM-1.5, but now a problem appears as discribed in the thread title.

I want to open the cases of cavity and cavityFine simultaneously. As metioned in the user guide, page 33, "For example, to load the cavityFIne case the file would be created by typing at the command prompt:....."
Here, does the command prompt mean the terminal?

But when I type the "cd..." and "touch" command, and then run "paraview", click "open" menu, the directory tree appears. But when I click the cavityFine.foam, the message appears "terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
aborted"

It's very appreciated to you for detail explaination.

I compiled OpenFOAM1.5 in debian lenny, with an error:
Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : ../src/configure
4.3.2
Minimum required: 4.2.0

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam 1.5 ...AM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------

I don't know it is ok or not. But the cavity case works well.

olesen May 27, 2009 02:25

Quote:

Originally Posted by bowlderyu (Post 217253)
But when I click the cavityFine.foam, the message appears "terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
aborted"

There are other threads on the forum dealing with this. I'd suggest you also look there for more details. In short, however, opening cases with a ".foam" ending selects the OpenFOAM reader supplied with VTK. This reader is broken but there is a replacement from Takuya that does work (see wiki and/or other threads for details). Opening cases with an ".OpenFOAM" ending (eg, via paraFoam) selects the library-based reader supplied with the OpenFOAM distribution and should work without problems.
Finally, I'd suggest that you use the 1.5.x from the git repository - it contains a number of important bug fixes.

cliffoi June 2, 2009 04:20

Simple multiple region paraFoam wrapper
 
1 Attachment(s)
I've just dealt with the same issue myself. The wiki gives two suggestions to do this.
http://openfoamwiki.net/index.php/Ho...rocMultiregion
Based on the second option I put together a bash script which will allow you to open multiple region cases using a single command, e.g.

paraFoamMultiMesh . conjugateHeat solid1 fluid1 solid2 ...

The script is for OF version 1.4.1-dev with paraview 2.4.4 but it might save you some time or at least give you a starting point.


All times are GMT -4. The time now is 01:28.