|
[Sponsors] |
[OpenFOAM] how to run a specific paraview version |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 28, 2014, 11:48 |
how to run a specific paraview version
|
#1 |
New Member
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 13 |
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 |
|
March 29, 2014, 11:24 |
|
#2 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
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 |
|
March 31, 2014, 05:34 |
|
#3 |
New Member
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 13 |
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 |
|
March 31, 2014, 21:13 |
|
#4 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
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 |
|
April 1, 2014, 09:27 |
|
#5 |
New Member
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 13 |
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 |
|
April 1, 2014, 16:35 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
|
|
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 |