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

[OpenFOAM.org] Compile ParaView-5.4-0 (from OpenFOAM-6) using Ubuntu 20.04

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

Like Tree1Likes
  • 1 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2021, 12:29
Default Compile ParaView-5.4-0 (from OpenFOAM-6) using Ubuntu 20.04
  #1
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
This is more a note to the universe than a question.

I have recently got a new machine with Ubuntu 20.04 on it, and I installed a couple of OpenFOAM versions on it.
For some stuff I needed an OpenFOAM-6 installation, hence I compiled one from source code.
With OpenFOAM itself, I encountered no problems, however, ParaView had some issues.


It turned out, that I needed to apply the changes described in this post, which are some changes to support Qt-5.11. On my machine (pretty vanilla Ubuntu 20.04 there is Qt 5.12.8).

Furthermore, I needed to install the qtxmlpatterns5-dev-tools package, since compiling ParaView stopped with an error.

Another change that was necessary, was this one.
souza.emer likes this.

Last edited by GerhardHolzinger; March 23, 2021 at 05:07. Reason: added final note
GerhardHolzinger is offline   Reply With Quote

Old   March 23, 2021, 02:49
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,683
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by GerhardHolzinger View Post
This is more a note to the universe than a question.

I have recently got a new machine with Ubuntu 20.04 on it, ...
however, ParaView had some issues.
Hi Gerhard,
I'm curious about why you need to compile paraview from source at all. I've generally found that a precompiled paraview binary v5.6.3 or newer works quite well. The only thing might be if you need the catalyst insitu as well, in which case you can't avoid it.
LG
/mark
olesen is offline   Reply With Quote

Old   March 23, 2021, 05:10
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
I think habit is the correct answer. I have always installed OpenFOAM from source, hence this is what I do by default.
GerhardHolzinger is offline   Reply With Quote

Old   March 31, 2021, 13:37
Default
  #4
New Member
 
Marco Pancaldi
Join Date: Mar 2021
Location: Italy
Posts: 4
Rep Power: 5
Panca is on a distinguished road
Hi Gerhard,
I'm trying to install OpenFOAM 6 on ubuntu 20.04, but It's the first time I compile OpenFOAM from suorce code, and I'm not very expert.
Is possible to compile OpenFOAM without compile Paraview?
Panca is offline   Reply With Quote

Old   March 31, 2021, 13:45
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,683
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Panca View Post
Hi Gerhard,
I'm trying to install OpenFOAM 6 on ubuntu 20.04, but It's the first time I compile OpenFOAM from suorce code, and I'm not very expert.
Is possible to compile OpenFOAM without compile Paraview?
This would be my standard answer regarding paraview :
https://develop.openfoam.com/Develop...raview-plugins

Of course, if you have Ubuntu 20.04, I would probably go for a precompiled binary:
https://develop.openfoam.com/Develop...ompiled/debian
olesen is offline   Reply With Quote

Old   April 1, 2021, 06:30
Default
  #6
New Member
 
Marco Pancaldi
Join Date: Mar 2021
Location: Italy
Posts: 4
Rep Power: 5
Panca is on a distinguished road
Quote:
Originally Posted by olesen View Post
This would be my standard answer regarding paraview :
https://develop.openfoam.com/Develop...raview-plugins
Thank you, very usefull

Quote:
Originally Posted by olesen View Post

Of course, if you have Ubuntu 20.04, I would probably go for a precompiled binary:
https://develop.openfoam.com/Develop...ompiled/debian
This use the repository from openfoam.com, I need the version of the openfoam foundation, do you know if is possible install the binary of openfoam 6 in ubuntu focal?
Panca is offline   Reply With Quote

Old   April 1, 2021, 10:38
Default
  #7
New Member
 
Marco Pancaldi
Join Date: Mar 2021
Location: Italy
Posts: 4
Rep Power: 5
Panca is on a distinguished road
I'ved found the binary, and resolved my problem.
Mark thankyou for your help
Panca is offline   Reply With Quote

Old   November 14, 2021, 08:57
Default
  #8
Member
 
Andrea Di Ronco
Join Date: Nov 2016
Location: Milano, Italy
Posts: 55
Rep Power: 9
Diro7 is on a distinguished road
Quote:
Originally Posted by olesen View Post
Hi Gerhard,
I'm curious about why you need to compile paraview from source at all. I've generally found that a precompiled paraview binary v5.6.3 or newer works quite well. The only thing might be if you need the catalyst insitu as well, in which case you can't avoid it.
LG
/mark
I'm trying to make PV work with OF6 on Ubuntu 20.04 LTS. After some troubles as described in this thread, I decided to go as you (sort of) suggest with the PV package available from the package manager (5.7.0), but what I've found is that PV fails to launch if I source the OF6 environment.
The error it gives is related to OpenMPI:

Code:
--------------------------------------------------------------------------
It looks like opal_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  opal_shmem_base_select failed
  --> Returned value -1 instead of OPAL_SUCCESS
--------------------------------------------------------------------------
--------------------------------------------------------------------------
It looks like orte_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during orte_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  opal_init failed
  --> Returned value Error (-1) instead of ORTE_SUCCESS
--------------------------------------------------------------------------
--------------------------------------------------------------------------
It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems.  This failure appears to be an internal failure; here's some
additional information (which may only be relevant to an Open MPI
developer):

  ompi_mpi_init: ompi_rte_init failed
  --> Returned "Error" (-1) instead of "Success" (0)
--------------------------------------------------------------------------
*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
***    and potentially your MPI job)
I believe it probably depends on the fact that I compiled OF6 against the usual ThirdParty OpenMPI 2.1.1 (not being able to compile against the system OpenMPI 4.0.3).

So, just to provide a broader view, it seems that integrating a pre-compiled PV in a OF6 environment is not that straightforward. Of course I can launch PV in a separate terminal, but it's far from ideal so I think I'll try to give the shipped PV another try.

Andrea
Diro7 is offline   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
[OpenFOAM.org] Paraview command error. OpenFOAM 8, Ubuntu 20.04 sungmin130 OpenFOAM Installation 1 April 28, 2021 10:21
[OpenFOAM.com] Paraview command error. OpenFOAM 8, Ubuntu 20.04 sungmin130 OpenFOAM Installation 0 October 20, 2020 12:26
[OpenFOAM.com] Compile error OpenFoam v1912 on ubuntu 18.04 LTS dkeogh OpenFOAM Installation 4 June 11, 2020 09:11
[OpenFOAM.org] Can't seem to compile ParaView 4.1.0 (OpenFOAM 2.4.x, CentOS 7) me3840 OpenFOAM Installation 2 October 13, 2015 00:05
paraview not working after installing OpenFOAM in Ubuntu 12.04 Jackie Chen OpenFOAM Installation 5 October 9, 2014 06:28


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