CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

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 Display Modes
Old   June 25, 2012, 10: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, 16:12
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 449
Rep Power: 8
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.
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Old   June 25, 2012, 17:36
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,326
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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, 02:28
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen 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, 11: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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view openfoam results in paraview Marineboy OpenFOAM Paraview & paraFoam 5 July 10, 2012 03:14
paraview / paraFoam: bad, bad behaviour!!! aerospain OpenFOAM Paraview & paraFoam 3 June 5, 2012 14:58
wmake error zxj160 OpenFOAM 0 March 26, 2012 10:52
Thumbs up Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04 AlanR OpenFOAM Installation 8 December 18, 2009 11:14
ParaView patch visualisation error in Development version philippose OpenFOAM Paraview & paraFoam 17 March 26, 2007 06:45


All times are GMT -4. The time now is 09:34.