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

how to run a specific paraview version

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

Reply
 
LinkBack Thread Tools 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: 3
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: 151
Rep Power: 8
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, 04:34
Default
  #3
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 3
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, 20:13
Default
  #4
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 151
Rep Power: 8
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, 08:27
Default
  #5
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 3
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, 15:35
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

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
specific filter in paraview sanjar OpenFOAM Paraview & paraFoam 2 January 20, 2014 12:53
change in paraview 3.14 version lakeat OpenFOAM Paraview & paraFoam 4 July 25, 2012 13:17
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Simulation of a single bubble with a VOF-method Suzzn CFX 18 October 2, 2009 04:18


All times are GMT -4. The time now is 18:55.