CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] ParaView 33 canbt open OpenFoam file

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2008, 07:45
Default ParaView 33 canbt open OpenFoam file
  #1
New Member
 
Hari Krishnan
Join Date: Mar 2009
Location: chennai, Tamil nadu, india
Posts: 27
Rep Power: 17
hariya03 is on a distinguished road
Dear to all,

I have tried to open the cavity/icoFoam case file after solved. But the paraview asking to choose a appropriate reader to open the file.

When I choose the OpenFOAM files option it was crashed and exit with saying the below comments,
--------------------------------------------------
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
/home/harikr/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: line 83: 13772 Aborted paraview --data=$caseFile
--------------------------------------------------

I have did the 7th step as like in READ ME for rebuilding and compiling the paraView and PV3Foam Reader using the steps as mentioned there.

But it results in unable to open the Paraview window itself after running the ./Allwmake.

I can work with converting into VTK formats and can open the file through in legacy vtk files.

But I would like to read the .OpenFOAM file.. the real one..

Could anybody advice me in this regard?
Kindly ask me if you need any more information.

Thanks in Advance.

Hari Krishnan.V
hariya03 is offline   Reply With Quote

Old   August 28, 2008, 13:37
Default Hello, You can find some in
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hello,

You can find some information related to your problem in:

http://www.cfd-online.com/OpenFOAM_D...tml?1219785334

Please note that I also had the problem you reported, and was able to fix it by following the instructions from that thread (look for my post).

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   August 29, 2008, 09:44
Default Dear Mr.Jose and to all,
  #3
New Member
 
Hari Krishnan
Join Date: Mar 2009
Location: chennai, Tamil nadu, india
Posts: 27
Rep Power: 17
hariya03 is on a distinguished road
Dear Mr.Jose and to all,

Thank you for your reply. I have tried as like said in the thread.

I have commented the Cmakelists.txt as said in the thread

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!
# MESSAGE(SEND_ERROR "Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).")
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!

I have installed the libqt4 all the packages through YasT. and after that I rebuild the paraView3.3-cvs and PV3Foam Reader. I got the result as below.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!
harikr@hari:~/OpenFOAM/ThirdParty> rm -rf ParaView3.3-cvs/platforms

harikr@hari:~/OpenFOAM/ThirdParty> buildParaView3.3-cvs

Building ParaView3.3-cvs

MPI support : OFF

Python support : OFF

MESA support : OFF

Source : /home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs

Target : /home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc

-- Check for working C compiler: /home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc

-- Check for working C compiler: /home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- broken

CMake Error: The C compiler "/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build

gmake[1]: Entering directory `/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/ CMakeTmp'

/home/harikr/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux/bin/cmake -E cmake_progress_report /home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/C MakeTmp/CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o

/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/C MakeTmp/testCCompiler.c

/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i6 86-pc-linux-gnu/4.3.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1

gmake[1]: Leaving directory `/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/ CMakeTmp'

gmake: *** [cmTryCompileExec/fast] Error 2





CMake will not be able to correctly generate this project.

-- Configuring done

make: *** No targets specified and no makefile found. Stop.

done

harikr@hari:~/OpenFOAM/ThirdParty> cd..

harikr@hari:~/OpenFOAM> cd OpenFOAM-1.5

harikr@hari:~/OpenFOAM/OpenFOAM-1.5> cd applications/utilities/postProcessing/graphics/PV3FoamReader/

harikr@hari:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamR eader> ls

Allwclean Allwmake PV3FoamReader vtkPV3Foam

harikr@hari:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamR eader> ./Allwclean

+ rm -r PV3FoamReader/Make

+ wclean libso vtkPV3Foam

wclean vtkPV3Foam

harikr@hari:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamR eader> ./Allwmake

+ '[' -d /home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc -a -r /home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc ']'

+ case "$ParaView_VERSION" in

+ wmake libso vtkPV3Foam

wmakeLnInclude: linking include files to /home/harikr/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphic s/PV3FoamReader/vtkPV3Foam/lnInclude



Making dependency list for source file vtkPV3Foam.C

could not open file vtkConfigure.h for source file vtkPV3Foam.C

Making dependency list for source file vtkPV3FoamAddVolumeMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddVolumeMesh.C

Making dependency list for source file vtkPV3FoamAddLagrangianMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddLagrangianMesh.C

Making dependency list for source file vtkPV3FoamAddPatchMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddPatchMesh.C

Making dependency list for source file vtkPV3FoamAddFaceZoneMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddFaceZoneMesh.C

Making dependency list for source file vtkPV3FoamAddPointZoneMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddPointZoneMesh.C

Making dependency list for source file vtkPV3FoamAddFaceSetMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddFaceSetMesh.C

Making dependency list for source file vtkPV3FoamAddPointSetMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamAddPointSetMesh.C

Making dependency list for source file vtkPV3FoamUpdate.C

could not open file vtkConfigure.h for source file vtkPV3FoamUpdate.C

Making dependency list for source file vtkPV3FoamUpdateInformation.C

could not open file vtkConfigure.h for source file vtkPV3FoamUpdateInformation.C

Making dependency list for source file vtkPV3FoamConvertMesh.C

could not open file vtkConfigure.h for source file vtkPV3FoamConvertMesh.C

SOURCE=vtkPV3Foam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/harikr/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/harikr/OpenFOAM/OpenFOAM-1.5/src/lagrangian/basic/lnInclude -I/home/harikr/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -I/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/VTK -I/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs -I/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK -I/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common -I/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering -I/home/harikr/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Rendering -I../PV3FoamReader -IlnInclude -I. -I/home/harikr/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/harikr/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3Foam.o

/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i6 86-pc-linux-gnu/4.3.1/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

make: *** [Make/linuxGccDPOpt/vtkPV3Foam.o] Error 1

+ cd PV3FoamReader

+ mkdir -p Make/linuxGccDPOpt

+ cd Make/linuxGccDPOpt

+ cmake ../..

-- Check for working C compiler: /home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc

-- Check for working C compiler: /home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- broken

CMake Error: The C compiler "/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build

gmake[1]: Entering directory `/home/harikr/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphi cs/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/CMakeFiles/CMakeTmp'

/home/harikr/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux/bin/cmake -E cmake_progress_report /home/harikr/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o

/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/harikr/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/CMakeFiles/CMakeTmp/testCCompil er.c

/home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i6 86-pc-linux-gnu/4.3.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1

gmake[1]: Leaving directory `/home/harikr/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphi cs/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/CMakeFiles/CMakeTmp'

gmake: *** [cmTryCompileExec/fast] Error 2





CMake will not be able to correctly generate this project.

-- Configuring done

+ make

make: *** No targets specified and no makefile found. Stop.

harikr@hari:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamR eader>

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!


When I tend to run ParaFoam, I can't enter into paraview3.3 itself. It results like as below:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!
harikr@hari:~/OpenFOAM/harikr-1.5/run/tutorials/icoFoam/cavity> paraFoam

/home/harikr/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: line 100: paraview: command not found

harikr@hari:~/OpenFOAM/harikr-1.5/run/tutorials/icoFoam/cavity>

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Could you/anyone advice me in this regard?

Thank you

V.Hari Krishnan
hariya03 is offline   Reply With Quote

Old   August 29, 2008, 10:34
Default Hi, From the error messages
  #4
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hi,

From the error messages you got, I think it may be related to gcc:

-- Check for working C compiler: /home/harikr/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- broken

Check whether you downloaded the correct files for your system (32 bits / 64 bits). You may also try to use your system gcc compiler.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   September 18, 2008, 05:21
Default Dear hari and Jose I have e
  #5
New Member
 
Ameya Durve
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
ameya is on a distinguished road
Dear hari and Jose

I have exactly the same problem as you do.
But as mr. jose has suggested the problem must be of gcc.
I tried that but no effect.
My gcc version is 4.3.1. Yet i am getting the ame problem. i dont think this problem is of gcc.
ameya is offline   Reply With Quote

Old   September 18, 2008, 18:30
Default Dear Ameya, What is the out
  #6
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Dear Ameya,

What is the output of foamInstallationTest? Any fatal error?

A quick way to check if gcc is correctly installed would be:
foamInstallationTest | grep gcc

My output is:
gcc 4.3.1 .../OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
santos is offline   Reply With Quote

Old   September 20, 2008, 09:52
Default hello, i have the same prob
  #7
eidam655
Guest
 
Posts: n/a
hello,

i have the same problem, with qt 4.3.x (don't remember the exact version now) and stock packages. paraview runs, but paraFoam cannot open .OpenFOAM files - if i choose the OpenFOAM file reader option, nothing happens - only abunch of error messages (the same as described in post #0 here).

any ideas? while trying to recompile, i got stuck at 26% of building.
  Reply With Quote

Old   September 25, 2008, 18:33
Default any ideas?
  #8
eidam655
Guest
 
Posts: n/a
any ideas?
  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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 22:17.