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

[OpenFOAM] how to run a specific paraview version

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2014, 11:48
Default how to run a specific paraview version
  #1
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 13
Paolo.F is on a distinguished road
Hi everyone!
I have a little problem, and I think some of you can solve it easily...

I have 2 OpenFOAM versions installed on my PC. I want to do the simulations with the 221 version, but I want to use the latest paraview ( 230)


I set in my bashrc file these two lines:

source /opt/openfoam221/etc/bashrc
#source /opt/openfoam230/etc/bashrc

so that computing will be done with 221 version.

Do I have to change manually the bashrc again to set the new openfoam version or can I just digit something like:

"paraFoam -230version " ?!!?


Any help would be appreciated
Thanks!
PAolo
Paolo.F is offline   Reply With Quote

Old   March 29, 2014, 11:24
Default
  #2
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17
dancfd is on a distinguished road
Hi Paolo,

Try setting up your ~/.bashrc file with aliases, like this:

alias of1='source /opt/openfoam221/etc/bashrc'
alias of2='source /opt/openfoam230/etc/bashrc'

To run your case, open a terminal and type "of1" to source OF2.2.1. To post-process your case, open a NEW terminal window, and type "of2" to source OF2.3.0.

Hope this helps!

Dan
dancfd is offline   Reply With Quote

Old   March 31, 2014, 05:34
Default
  #3
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 13
Paolo.F is on a distinguished road
Hi Daniel!
Thanks a lot for your hints!
the alias works well, and I can change openFoam version...but unfortunately I still can't do what I want...

I 'm trying to produce several simulations on a couple of boats. One boat is steady while the second one moves in a different position in every simulation (on a circumference) to study how they influence each other (wind speed and direction is fixed).

I want all the process to be automatized and so I have written a python scrips that writes several AllRun files (one for each simulation). An executable file lunch the Allrun files in series, and calls another python script to plot forces and coefficients (Lift, Drag).
I also have python traces obtained from paraview ( openFoam version 230 because with the previous one I can't generate traces...don't know why), in order to make a few screeshots of the mesh, the boat positions, pressure and velocity fiels... etc.

Unfortunately I can run all the simulations (24) only with 221 version of openfoam (the 230 sometimes is not able to decompose the mesh and proceed with simpleFoam, apparently without logic), but I need to change to 230 to use the new paraview for the traces...

anyway (sorry for the long post...) I 'm not able to run these traces in batch, but they work fine if I lunch parafoam->tools->pythonShell->runScript.

Any Idea?

Thanks again,
Paolo
Paolo.F is offline   Reply With Quote

Old   March 31, 2014, 21:13
Default
  #4
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17
dancfd is on a distinguished road
Hi Paolo,

I am surprised you cannot generate traces in all versions of paraView (I was able to with paraFoam in OF versions 2.1.1, 2.3.0).

I have not tried batch processing, but found this which looks promising:
http://www.paraview.org/Wiki/ParaVie...tch_Processing

Good luck,

Dan
dancfd is offline   Reply With Quote

Old   April 1, 2014, 09:27
Default
  #5
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 13
Paolo.F is on a distinguished road
Hi daniel,
Thanks for the link!
Actually I am surprised too! I can't understand what's wrong...as I lunch the python shell in paraview I get this error :

Traceback (most recent call last):
File "<string>", line 4, in <module>
File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
import paraview, re, os, os.path, new, sys, vtk
File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
from vtkCommonPython import *
ImportError: No module named vtkCommonPython


It's like something is missing...I have tryed to reinstall paraview but nothing has changed...

Any idea?

thanks again!!!
Paolo
Paolo.F is offline   Reply With Quote

Old   April 1, 2014, 16:35
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
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
Quote:
Originally Posted by Paolo.F View Post
It's like something is missing...I have tryed to reinstall paraview but nothing has changed...
Quick answer: This is a bug in the old deb packages, due to the build process in ParaView 3.12.0, already reported here: http://www.openfoam.org/mantisbt/view.php?id=969 - there you'll also find a solution for this issue and that upgrading to OpenFOAM 2.3.0 + ParaView 4.1.0 also fixes this issue
wyldckat 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
[General] PBS script to run ParaView in parallel on remote server hconel ParaView 0 December 25, 2018 03:38
[OpenFOAM] Unable to run paraview vaibhavkhare ParaView 1 July 23, 2018 15:44
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
Choose paraview version by environment variable bastil OpenFOAM Bugs 2 January 27, 2010 11:21


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