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

[OpenFOAM.com] paraview 5.10.0-RC problem and a possible solution.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2024, 14:34
Default paraview 5.10.0-RC problem and a possible solution.
  #1
New Member
 
Fausto Arinos Barbuto
Join Date: Feb 2024
Location: Brazil
Posts: 2
Rep Power: 0
fbarbuto is on a distinguished road
Hello,

I have a Ubuntu 22.04 computer. I installed OpenFOAM 2312 on it. OpenFOAM needs Paraview, thus I installed it (v. 5.10.0-RC1) via Synaptic (GUI for the APT package manager). OpenFOAM runs fine, but when I invoke paraFoam as usual I get a paraview SIGSEGV (segmentation fault) error.

Having no options left, I downloaded Paraview v. 5.12 pre-compiled binaries from the official site, unzipped it into a folder under ~ and, to my surprise, that version did work.

The problem is, paraFoam calls the broken Paraview in /usr/bin, not the functional binary I downloaded and unzipped. But, if instead of running paraFoam I simply execute the functional binary (by giving its full path), I get nowhere. I must before transform the simulation outputs to VTK with foamToVTK and run the binary to open the visualization files. This works but it is not efficient. I prefer the old way.

paraFoam is a script that, in a nutshell, calls paraview. I wonder how I could change this script so that it would call the pre-compiled binary I mentioned right above. The second problem is: I'm not good at scripting and don't understand what paraFoam really does internally.

TL; DR: I want to run a paraview binary installed on an alternative location with paraFoam. Would I have to modify paraFoam? How?

Thanks a lot for any help.
fbarbuto is offline   Reply With Quote

Old   February 15, 2024, 05:03
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
The paraFoam script will simply call the first paraview that it finds in the PATH. Try changing your path so that the newly downloaded paraview binary is found before the one in /usr/bin and it should work. Hint: try with "which paraview" from the command-line to see which paraview is being found first.
olesen is offline   Reply With Quote

Old   February 15, 2024, 14:14
Default
  #3
New Member
 
Fausto Arinos Barbuto
Join Date: Feb 2024
Location: Brazil
Posts: 2
Rep Power: 0
fbarbuto is on a distinguished road
By changing the PATH in .bashrc, you mean? Sounds like a good idea.

Presently (and I've already done that, obviously), "which paraview" shows "/usr/bin/paraview".

Tks.
fbarbuto is offline   Reply With Quote

Reply

Tags
parafoam problem, paraview, scripting


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
[General] Problem with reading in multiple grouped Ensight .case files into paraview scro1022 ParaView 0 November 27, 2020 09:00
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 19:28
[Other] Openfoam for windows 16.02 [CFD support] -problem with paraview ditmeyer OpenFOAM Installation 3 May 15, 2017 13:04
[General] Plotting solution vector from Matlab in Paraview crg123 ParaView 0 November 20, 2016 13:19
Problem with pimpleDyMFoam: Initialise steady state solution Lancester OpenFOAM Running, Solving & CFD 2 September 29, 2015 10:49


All times are GMT -4. The time now is 10:06.