CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

How to open two case in paraview?

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

LinkBack Thread Tools Display Modes
Old   May 26, 2009, 22:18
Default How to open two case in paraview?
New Member
Join Date: May 2009
Posts: 1
Rep Power: 0
bowlderyu is on a distinguished road
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

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
Minimum required: 4.2.0

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

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.
bowlderyu is offline   Reply With Quote

Old   May 27, 2009, 02:25
Senior Member
Mark Olesen
Join Date: Mar 2009
Posts: 810
Rep Power: 21
olesen will become famous soon enough
Originally Posted by bowlderyu View Post
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
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.
olesen is offline   Reply With Quote

Old   June 2, 2009, 04:20
Default Simple multiple region paraFoam wrapper
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 91
Rep Power: 10
cliffoi is on a distinguished road
I've just dealt with the same issue myself. The wiki gives two suggestions to do this.
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.
Attached Files
File Type: gz paraFoamMultiMesh.tar.gz (924 Bytes, 21 views)
cliffoi is offline   Reply With Quote


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
Can't open Case and DATA File chern FLUENT 6 April 19, 2016 11:08
Performance of GGI case in parallel hannes OpenFOAM Running, Solving & CFD 26 August 3, 2011 03:07
Paraview in Prallel (server-client) prapanj OpenFOAM Paraview & paraFoam 11 September 24, 2010 07:12
icoFsiFoam case needed vivekcfd OpenFOAM 1 May 6, 2009 13:41
ParaFoam cannot open icoFoam/cavity case Bob OpenFOAM Paraview & paraFoam 1 April 2, 2009 04:34

All times are GMT -4. The time now is 16:41.