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

[OpenFOAM] configuring paraFoam to use a different version of Paraview

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

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2012, 11:21
Default configuring paraFoam to use a different version of Paraview
  #1
New Member
 
Mike Wallis
Join Date: Jun 2012
Posts: 2
Rep Power: 0
MikeWallis is on a distinguished road
Hi,

Newbie question.

I'm compiling up 2.1.1 for a HPC system where we already have a version of ParaView installed. How do I configure parafoam to use this version, instead of having to compile the version that's in ThirdParty?

Thanks,

Mike.
MikeWallis is offline   Reply With Quote

Old   June 25, 2012, 17:12
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 16
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
I don't have a direct answer to your question… but… what I usually do is to create a .foam file within the case folder and then open it in paraview. It is almost the same as running paraFoam.
lovecraft22 is offline   Reply With Quote

Old   June 25, 2012, 18:36
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,968
Blog Entries: 45
Rep Power: 126
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Mike: it depends on the ParaView version you've got on your HPC system. Was it a custom build or did it come with the installed Linux distribution?

As lovecraft22 indicated, you can use the internal reader, by using the file extension ".foam". If you want this by default, edit the file paraFoam and change the line:
Code:
# reader extension
extension=OpenFOAM
To:
Code:
# reader extension
extension=foam
To know where paraFoam is located:
Code:
which paraFoam
In case you have a custom build of ParaView and still have the development files around (preferably installed as well), then edit the file "etc/config/paraview.sh" in OpenFOAM's folder.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 26, 2012, 03:28
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,503
Rep Power: 35
olesen will become famous soon enougholesen will become famous soon enough
Everything else is good, but I'd make a slight improvement here:
Quote:
Originally Posted by wyldckat View Post
...
In case you have a custom build of ParaView and still have the development files around (preferably installed as well), then edit the file "etc/config/paraview.sh" in OpenFOAM's folder.
The preferred solution is given indicated in the etc/config/example/paraview.sh file. You'd make a copy of this in your site-wide or user-specific OPENFOAM directory (see "foamEtcFile -list")

Your modified version hooks into the shipped version:
Code:
foamFile=$($WM_PROJECT_DIR/bin/foamEtcFile -mode o config/paraview.sh 2>/dev/null) && . $foamFile ParaView_VERSION=3.9.0
unset foamFile
This makes it easier to carry across your modifications to a newer OPENFOAM version (if needed) and avoids needing to touch the shipped files at all.
wyldckat likes this.
olesen is offline   Reply With Quote

Old   June 26, 2012, 12:45
Default
  #5
New Member
 
Mike Wallis
Join Date: Jun 2012
Posts: 2
Rep Power: 0
MikeWallis is on a distinguished road
Thanks, everybody! The point of all this is so that I can build and deploy OpenFOAM as a module for multiple users on the cluster, and there are users of ParaView on the system who don't use OpenFOAM so I'd like to keep the two applications as separated as possible.

You've been really helpful and I really appreciate it.
MikeWallis is offline   Reply With Quote

Old   May 6, 2021, 15:05
Default
  #6
New Member
 
Join Date: Mar 2021
Posts: 5
Rep Power: 3
GLfast80 is on a distinguished road
Quote:
Originally Posted by olesen View Post
Everything else is good, but I'd make a slight improvement here:


The preferred solution is given indicated in the etc/config/example/paraview.sh file. You'd make a copy of this in your site-wide or user-specific OPENFOAM directory (see "foamEtcFile -list")

Your modified version hooks into the shipped version:
Code:
foamFile=$($WM_PROJECT_DIR/bin/foamEtcFile -mode o config/paraview.sh 2>/dev/null) && . $foamFile ParaView_VERSION=3.9.0
unset foamFile
This makes it easier to carry across your modifications to a newer OPENFOAM version (if needed) and avoids needing to touch the shipped files at all.

This is interesting. One question, where do you have to place this file exactly?
GLfast80 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] Installation ParaView for Windows version of openFOAM kasra karimi ParaView 14 September 8, 2018 15:06
[OpenFOAM.com] paraFoam cannot open due to Qt issues - [Solved/Information] u2berggeist OpenFOAM Installation 2 July 2, 2018 18:03
[OpenFOAM] paraFoam vs paraView builtin reader for lagrangian solvers Yann ParaView 2 September 9, 2017 06:32
[OpenFOAM] Segmentation fault with paraFoam and paraview 3.6.1 on Fedora 11 32 and 64 bit nanes ParaView 2 September 11, 2009 10:12
[OpenFOAM] ParaView patch visualisation error in Development version philippose ParaView 17 March 26, 2007 07:45


All times are GMT -4. The time now is 08:00.