CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview 5.9.0 in OpenFOAM-8

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2021, 07:15
Default Paraview 5.9.0 in OpenFOAM-8
  #1
New Member
 
Join Date: Mar 2021
Posts: 5
Rep Power: 5
GLfast80 is on a distinguished road
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
GLfast80 is offline   Reply With Quote

Old   May 7, 2021, 12:10
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by GLfast80 View Post
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?
This is simply a question of setting your PATH. You probably have the old version specified in the etc/config.sh/paraview file. Can change it here to specify something else, but it is generally better to look at the example paraview config file and make a copy in your ~/.OpenFOAM/ directory. That is what I always do.
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.
olesen is offline   Reply With Quote

Old   May 7, 2021, 15:46
Default
  #3
New Member
 
Join Date: Mar 2021
Posts: 5
Rep Power: 5
GLfast80 is on a distinguished road
[QUOTE]
Quote:
Originally Posted by olesen View Post
This is simply a question of setting your PATH. You probably have the old version specified in the etc/config.sh/paraview file. Can change it here to specify something else, but it is generally better to look at the example paraview config file and make a copy in your ~/.OpenFOAM/ directory. That is what I always do.
Yes, this is exactly the point: I tried to set the paraview file in the /home/cfd-user/OpenFOAM/OpenFOAM-8/etc/config.sh/example/ directory in this way (for Paraview v5.9.0):

# 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:
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.
I did also this way, downloaded the binary of Paraview 5.9.0 and then set up the env. variables and alias for two versions of Paraview (5.6.3 packaged in OpenFOAM and 5.9.0). This works properly in a terminal shell.

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:
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.
Thanks for this tip, I will have a look at it.
GLfast80 is offline   Reply With Quote

Old   May 11, 2021, 14:10
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
[QUOTE=GLfast80;803402]
Quote:
...
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.
I don't know what "synthetic" means in this context but it seems that you have perhaps tried placing a copy of the example file somewhere, but doesn't look like a valid location.

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.
olesen 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
[OpenFOAM.com] OpenFOAM 1912 and ParaView 5.6 on CentOS 7 delsolman OpenFOAM Installation 6 May 7, 2021 13:24
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36


All times are GMT -4. The time now is 03:41.