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

[OpenFOAM.org] Installation problem for paraView 4.1 to go with OpenFOAM-2.4.0-MNF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2017, 14:27
Default Installation problem for paraView 4.1 to go with OpenFOAM-2.4.0-MNF
  #1
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Hello folks,

I have only been a passive user (read unregistered) so far since never had to work in CFD in detail. However, now am starting to work on OpenFOAM for my project and I need a specific version of that to run along with the latest 5.0 build.

I have a Ubuntu 16.04 system. I already have installed OpenFOAM 5.0 and it resides in /opt/openfoam5 folder (and it's working fine). I now need to work on a specific feature using OpenFOAM-2.4.0-MNF (https://github.com/MicroNanoFlows/Op...ee/devel-craig) which am trying to install from ~/OpenFOAM/OpenFOAM-2.4.0-MNF folder along with the unzipped Third Party folder in the same location (-MNF suffix added as instructed)

Attempt #1
(Trying to install from readme of devel-craig repository)

After some ups and downs I managed to get on the right track and created correct aliases for 5.0 and 2.4.0 in the ~/bashrc file and then moved on to compiling the 2.4.0 version.
I ran into following messages when I ran ./Allwmake from the ThirdParty folder
Code:
========================================
    Done ThirdParty Allwmake
========================================
However, when I ran /.makeParaView4 next, it displayed some errors (at 13%) and but finished the output with following message.
Code:
Installation complete for paraview-4.1.0
        Set environment variables:
    ...
    ...
    Done
I have attached a screenshot of this.

Post this issue, I followed the advice here (Paraview not found when installing OpenFoam to Ubuntu 14.04) by @wyldckat . But same thing repeated.
The same error has repeated many times even before it stopped at (what I thought was) 13%.
Code:
‘GLsizeiptr’ has not been declared
I went through resources like these:
https://www.cfd-online.com/Forums/bl...vironment.html
but to no avail. Then I came across this thread: OpenFOAM 2.4 ParaView 4.1 compilation problem
which leads me to the wiki page for installation:
http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04


Attempt #2
(After coming across wiki page about installation of 2.4.0 on Ubuntu 16.04)

So I decided to do a fresh install of OpenFOAM-2.4.0-MNF.
I deleted folders in the OpenFOAM directory and I followed these instructions step-by-step:
http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.4.0/Ubuntu#Ubuntu_16.04

This is what I get

Code:
ywb17176@mae-hen-8163-db:~/OpenFOAM$ ln -s /usr/bin/mpicc.openmpi OpenFOAM-2.4.0/bin/mpicc
ln: failed to create symbolic link 'OpenFOAM-2.4.0/bin/mpicc': No such file or directory
I continue nonetheless.

Code:
ywb17176@mae-hen-8163-db:~/OpenFOAM$ sed -i -e 's/^\(cgal_version=\).*/\1cgal-system/' OpenFOAM-2.4.0/etc/config/CGAL.sh
sed: can't read OpenFOAM-2.4.0/etc/config/CGAL.sh: No such file or directory
I continue nonetheless.
Code:
ywb17176@mae-hen-8163-db:~/OpenFOAM$ source $HOME/OpenFOAM/OpenFOAM-2.4.0-MNF/etc/bashrc WM_NCOMPPROCS=8
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or  directory
I have no idea why it would try to go to /opt ! That's where my 5.0 is installed. I add the line export WM_NCOMPPROCS=8 to my ~/.bashrc at the end and comment out the sourcing of openFoam 5.0, creating another alias statement for the same.
I continue with the next steps in the same terminal.

I open a new terminal, run of240.
At the end of output of step #10.3
Code:
./makeParaView4 -python -mpi -python-lib  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV  2>&1
Code:
[ 81%] Linking C shared module  ../../../lib/site-packages/mpi4py/MPI.so
CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `OPENMPI_dlopen_libmpi':
MPI.c:(.text+0xa601): undefined reference to `dlopen'
MPI.c:(.text+0xa61d): undefined reference to `dlopen'
MPI.c:(.text+0xa633): undefined reference to `dlopen'
MPI.c:(.text+0xa649): undefined reference to `dlopen'
CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `__pyx_pf_6mpi4py_3MPI_16Init':
MPI.c:(.text+0x17aa8): undefined reference to `dlopen'
CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o:MPI.c:(.text+0x17bed): more undefined references to `dlopen' follow
collect2: error: ld returned 1 exit status
ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/build.make:96: recipe for target 'lib/site-packages/mpi4py/MPI.so' failed
make[2]: *** [lib/site-packages/mpi4py/MPI.so] Error 1
CMakeFiles/Makefile2:5198: recipe for target 'ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all' failed
make[1]: *** [ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/home/ywb17176/OpenFOAM/ThirdParty-2.4.0-MNF/platforms/linux64GccMNF/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done
Corresponding log.makePV file is attached. Continuing with the next step.

Step no #13
Code:
./Allwmake > log.make 2>&1
from the opefoam source folder runs and ends up with a log (attached) which includes following text.
Code:
ERROR: ParaView not found in  /home/ywb17176/OpenFOAM/ThirdParty-2.4.0-MNF/platforms/linux64GccMNF/ParaView-4.1.0
I get correct (expected) output for
Code:
icoFoam -help
However, if I try to run paraFoam in the terminal, it continues to show me the problem
Code:
paraFoam
WARN file does not exist:
    ./system/controlDict
    ./system/fvSchemes
    ./system/fvSolution
created temporary 'OpenFOAM-2.4.0-MNF.OpenFOAM'
/home/ywb17176/OpenFOAM/OpenFOAM-2.4.0-MNF/bin/paraFoam: 265: /home/ywb17176/OpenFOAM/OpenFOAM-2.4.0-MNF/bin/paraFoam: paraview: not found
What should I do ? Please help !

Deep
Attached Images
File Type: jpg Screenshot from 2017-10-23 18-34-15.jpg (156.4 KB, 6 views)
Attached Files
File Type: gz log.makePV_wiki.tar.gz (124.3 KB, 0 views)
File Type: gz log.make_wiki.tar.gz (23.0 KB, 0 views)
deepbandivadekar is offline   Reply With Quote

Old   October 25, 2017, 06:54
Default Update
  #2
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Update:

I think I was not typing in some of the commands the right way. I tried again, and now both the logs log.makePV and log.make do not show any errors. So it seems the installation was fine.

However, if I try to run ParaView just to test, it still is giving me same error for 2.4.0-MNF version.
Code:
of240
paraFoam
Code:
WARN file does not exist:
    ./system/controlDict
    ./system/fvSchemes
    ./system/fvSolution
created temporary 'ywb17176.OpenFOAM'


--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/ywb17176/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
See the difference when I run paraFoam for 5.0 version: in a new terminal:
Code:
of500
paraFoam
Code:
WARN file does not exist:
    ./system/controlDict
    ./system/fvSchemes
    ./system/fvSolution
Cannot locate OpenFOAM-format case files
Would you like to open ParaView anyway <Y|n>
If I enter y, ParaView window opens up.
What is happening ?
Also, are those warnings normal ?
deepbandivadekar is offline   Reply With Quote

Old   October 25, 2017, 08:45
Default Update
  #3
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Update:

Issue is now resolved: https://bugs.openfoam.org/view.php?id=2738

It is not a bug and just a difference between how the two versions treat ParaView.

Please close this thread or declared as "Solved"
deepbandivadekar is offline   Reply With Quote

Reply

Tags
openfoam 2.4.0 help, paraview 4.1, ubuntu 16.04 lts


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.com] OpenFoam Installation v1806 on W7, 64bit Problem Joerg2007 OpenFOAM Installation 6 November 6, 2018 19:09
[OpenFOAM.org] error in installation OpenFOAM 2.4.0 in Ubuntu 14.04 alimea OpenFOAM Installation 2 August 9, 2018 07:12
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
Openfoam installation problem jose soto OpenFOAM Installation 4 August 9, 2011 01:29
OpenFOAM 1.7.0 installation problem stevek OpenFOAM 14 December 1, 2010 15:30


All times are GMT -4. The time now is 02:24.