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

[OpenFOAM.com] OpenFOAM 1912 and ParaView 5.6 on CentOS 7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2021, 15:28
Default OpenFOAM 1912 and ParaView 5.6 on CentOS 7
  #1
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
Hello, could somebody save my day please...
Is there some tutorial how to install OpenFOAM 1906 or 1912 and ParaView from ThirdParty folder on CentOS 7 ?

I found only 1906 on CentOS 6:
https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL

my thoughts are, that I can use more system software in CentOS7 than in 6.
one can install by yum: gmp-6.0.0 , mpfr-3.1.1 , libmpc-1.0.1 , python-2.7 , openmpi-1.6.4 , gcc-4.8.5
so I installed in ThirdParty folder only cmake-3.12.4 and qt-5.9.4

But I cannot install ParaView from the makeParaView file.
I got error by: Built target vtkChartsCore

So I installed python 3.5 and gcc 7.3.1 from Software Collections. I installed also mpi-4.0.5 and sourced them in .bashrc:

source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
export PATH=/programme/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=/programme/openmpi/lib/:$LD_LIBRARY_PATH

At this point when I do: ./makeParaView -qt-5.9.4 -mpi -python -python-lib /opt/rh/rh-python35/root/usr/lib64/libpython3.5m.so
...I get the same error: [55%] Built target vtkChartsCore

When I do only: ./makeParaView -qt-5.9.4 the installation pass through, but I cannot launch neither paraview nor paraFoam

$ paraview
Specherzugriffsfehler (Speicherabzug geschrieben)

$ paraFoam
/programme/OpenFOAM/OpenFOAM-v1906/bin/paraFoam: line 314: 5952 Segmentation fault (core dumped) paraview

I am just freaking out and would like to alk you for some help or hints before I kick the desktop hard :-)
delsolman is offline   Reply With Quote

Old   May 4, 2021, 19:39
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by delsolman View Post
$ paraview
Specherzugriffsfehler (Speicherabzug geschrieben)

$ paraFoam
/programme/OpenFOAM/OpenFOAM-v1906/bin/paraFoam: line 314: 5952 Segmentation fault (core dumped) paraview

I am just freaking out and would like to alk you for some help or hints before I kick the desktop hard :-)
nicht durchdrehen - just get a binary from the kitware download!



https://develop.openfoam.com/Develop...raview-plugins
olesen is offline   Reply With Quote

Old   May 4, 2021, 19:42
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by delsolman View Post
Hello, could somebody save my day please...
Is there some tutorial how to install OpenFOAM 1906 or 1912 and ParaView from ThirdParty folder on CentOS 7 ?

For the OpenFOAM part with CentOS, try the copr builds



https://copr.fedorainfracloud.org/co...foam/packages/
olesen is offline   Reply With Quote

Old   May 5, 2021, 17:57
Default
  #4
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
Quote:
Originally Posted by olesen View Post
nicht durchdrehen - just get a binary from the kitware download!



https://develop.openfoam.com/Develop...raview-plugins
Thank you Mark for your replay... I appreciate that.

I deleted everything and fresh installed: cmake-3.12.4 , openmpi-4.0.5 , qt-5.9.0
Then I compiled ParaView-v5.6.0 from source through ccmake and make.

The installation passed through but I still cannot launch it...omg :-)

as root
# ./paraview
QStandardPaths: wrong ownership on runtime directory /var/run/user/1000, 1000 instead of 0
Speicherzugriffsfehler (Speicherabzug geschrieben)

as user
$ paraview
Speicherzugriffsfehler (Speicherabzug geschrieben)

I am connected to this server via VNC and using VirtualGL for rendering... so the command should looks like:
$ vglrun paraview

Could be this an issue? Of course I can install everything again on some local machine which has cable connection to the gaphic card if I like to waste the rest of the week...
But is there some kind of debug by paraview please?
Coulpe of years ago I had on this server OpenFOAM 2.3.1 and 2.4.x and paraview worked fine there.
delsolman is offline   Reply With Quote

Old   May 6, 2021, 02:12
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
ParaView-5.9.0 is current and 5.9.1 will be released soon. Better to start with that version and initially use their binaries.
If you are trying to build ParaView or VTK from source with MPI, you will need to be careful that it actually uses the correct one.
I was testing out different flavours of mpi on my opensuse machine using RPM installations for them (openmpi1, openmpi2, mpich,...). Without any manual intervention, cmake finds mpich first. Everything compiles OK, but at runtime I actually have openmpi2 loaded and paraview fails trying to resolve libmpi.so.1.2
which is the so-version from mpich).

You are probably better to shift the discussion to the paraview discourse forum, or even stackoverflow
olesen is offline   Reply With Quote

Old   May 7, 2021, 08:24
Default
  #6
New Member
 
Join Date: Mar 2021
Posts: 5
Rep Power: 5
GLfast80 is on a distinguished road
Quote:
Originally Posted by olesen View Post
ParaView-5.9.0 is current and 5.9.1 will be released soon. Better to start with that version and initially use their binaries.
If you are trying to build ParaView or VTK from source with MPI, you will need to be careful that it actually uses the correct one.
I was testing out different flavours of mpi on my opensuse machine using RPM installations for them (openmpi1, openmpi2, mpich,...). Without any manual intervention, cmake finds mpich first. Everything compiles OK, but at runtime I actually have openmpi2 loaded and paraview fails trying to resolve libmpi.so.1.2
which is the so-version from mpich).

You are probably better to shift the discussion to the paraview discourse forum, or even stackoverflow
I am running in this issue: Paraview 5.9.0 in OpenFOAM-8

I don't think is the same thing, but I was wondering whether you would have some advises to sort it out?

Thanks.

GL
GLfast80 is offline   Reply With Quote

Old   May 7, 2021, 14:24
Default
  #7
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
I located my issue... This is definitely my vnc connection and VirtualGL.
When I ssh -X from another computer, then I can launch ParaView...

I found this: http://wiki.chpc.ac.za/howtoaraview
"However, this relies on persuading the Paraview client to work properly with the Mesa software rendering libraries. and this procedure fails with the later Paraview versions. The problem is an incompatibility between Mesa, VNC and the Qt-5 library. Older versions that rely on Qt-4 work extremely well on a compute node."

...so I am trying older version now. It is so much fun :-/
delsolman is offline   Reply With Quote

Reply


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
[Other] Installing OpenFOAM 7 & 1912 & ExtendedFOAM EternalSeekerX OpenFOAM Installation 1 April 28, 2020 12:31


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