how to run a specific paraview version
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 |
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 |
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 |
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 |
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 |
Quote:
|
All times are GMT -4. The time now is 00:57. |