|
[Sponsors] |
May 7, 2021, 08:15 |
Paraview 5.9.0 in OpenFOAM-8
|
#1 |
New Member
Join Date: Mar 2021
Posts: 5
Rep Power: 5 |
Hello everyone,
I am getting some troubles in sort out this issue. I have installed on a virtual machine OpenFOAM-8 and Paraview v5.6.3 packaged in a Linux OpenSUSE distribution. Now, I wanted to update Paraview with the newest version 5.9.0. I downloaded the source code, compiled it in the Third Party directory with makeParaview, and the installation was completed successfully. Paraview v5.9.0 opens up properly when running the script paraview in the respective folders. But when in a shell terminal, where OpenFOAM is running, I type Paraview or ParaFoam this opens up again the version 5.6.3 of Paraview, and not the latest one installed in the same directory. How can I link Paraview 5.9.0 to OpenFOAM to get the proper Paraview/ParaFoam working? Thanks in advance for your help. GL |
|
May 7, 2021, 13:10 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Another good try is to simply make an alias with paraview=/installation/path/bin/paraview. This is what I do if using a precompiled binary. If you have openSUSE, it might be worth taking a look at the science repo. They have paraview 5.9.0 as rpms. I haven't tried recently, but the static-devel subpackage should be enough for building plugins if want to go that way. |
||
May 7, 2021, 16:46 |
|
#3 | |||
New Member
Join Date: Mar 2021
Posts: 5
Rep Power: 5 |
[QUOTE]
Quote:
# Note # This file could be copied to a user or site location, but should never # replace the default shipped version as this will cause an infinite loop. # #------------------------------------------------------------------------------ # # Use other (shipped) paraview with a different ParaView_VERSION # foamFile=$($WM_PROJECT_DIR/bin/foamEtcFile -mode o config.sh/paraview 2>/dev/null) [ $? -eq 0 ] && . $foamFile ParaView_VERSION=5.9.0 unset foamFile #------------------------------------------------------------------------------ and put it in the OpenFOAM directory: /home/cfd-user/OpenFOAM/OpenFOAM-8/ while the shipped paraview.sh I did not modify and it is in the original folder: /home/cfd-user/OpenFOAM/OpenFOAM-8/etc/config.sh/ but it doesn't work. Hence my questions: - is the paraview.sh file properly set up? - is the location of this file correct? because the instructions given in the file itself are a bit too synthetic in my opinion. Quote:
My question arises because when in a shell terminal, where OpenFOAM is running, I type Paraview or ParaFoam this opens up again the version 5.6.3 of Paraview, and not the latest one installed in the same directory. So I wanted to link Paraview 5.9.0 to OpenFOAM to get the proper Paraview/ParaFoam working. To do this I guess I have to “update” the PV4Foam reader module to run in general another Paraview version which does not come with OpenFOAM. In the web there are many, often not precise and confused, instructions and did not manage to do it. The only solution which looked viable to me was the one of the paraview.sh you suggested, but in my case I can't get it work. Quote:
|
||||
May 11, 2021, 15:10 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
[QUOTE=GLfast80;803402]
Quote:
I will assume that you read the notes in the file. Use variants of "foamEtcFile -list" to see where the files are normally located (user stuff goes in the ~/.OpenFOAM/ directory). Can later use "foamEtcFile config.sh/paraview" to verify which file is actually being found. If you do all of this before sourcing the bashrc, it will save a lot of time. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
[OpenFOAM.com] OpenFOAM 1912 and ParaView 5.6 on CentOS 7 | delsolman | OpenFOAM Installation | 6 | May 7, 2021 14:24 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |