|
[Sponsors] |
May 25, 2010, 02:00 |
Alternative to paraFoam
|
#1 |
Senior Member
|
I have had moderate success getting paraFoam to work in the past, so I put together a stupid simple bit of code that does the same thing, just reliably!
Step1: Unzip the attached file and put it into your case directory Step2: Type ./ParaDisplay into the terminal and hit enter (while in the case directory of course; operates just like Allrun) All it does is automate the process of using foamToVTK, opening paraview, locating the vtk file and opening it. But 2 minutes here and there add up. Let me know what you think. |
|
May 31, 2010, 02:56 |
|
#2 |
New Member
Join Date: May 2009
Posts: 14
Rep Power: 17 |
Hi Eric!
Well, it works, so why not:-) I like it, thanks for sharing! best, Michael |
|
July 8, 2010, 20:58 |
|
#3 |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Thanks, Eric.
I was having a bit of trouble and I'm unsure of how to solve it. The line: paraview --data=VTK/${PWD##*/}_..vtk raises the error File ' "VTK/cavity_..vtk" ' cannot be read. I'm guessing it is a trivial fix, but I'm still a bit lost. Any help would be greatly appreciated. Thanks. Sunny |
|
July 9, 2010, 05:19 |
|
#4 |
Senior Member
|
Hi skarnani,
Try doing the process manually by first running foamToVTK in the shell. You can then go into paraview and see if the files are in yourCase/VTK and open them up. If both those things work, but the code doesnt, post back with an ls of your case file and I will see if I over looked something. Note that there is an issue using this script with OpenFOAM1.5Dev, since sourcing the openfoam variables conflict with paraview. (Still pondering a good approach to this) Eric |
|
July 9, 2010, 11:15 |
|
#5 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Or if you're using PV 3.8 (downloaded from either Kitware or openfoam.com is ok), try its builtin reader by
touch ${PWD##*/}.foam && paraview --data=${PWD##*/}.foam under your case directory. T |
|
July 9, 2010, 15:55 |
|
#6 |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Thank you Eric and Takuya for the replies.
By manually running foamToVTK, I can open paraview and then open the results files. However, I think you called it right, as I am using OpenFOAM-1.5-dev. Thanks for the help though. Sunny |
|
July 9, 2010, 16:52 |
|
#7 |
Senior Member
|
Yeah for the time being, you can open a new shell that is not sourced, cd to the working directory and run ParaDisplay from there.
The extra shell reduces the convenience, but it can be handy in some situations. I use 1.5Dev myself and will post an updated version of ParaDisplay once I get it working. Eric |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Unable to launch parafoam & | boonhow | ParaView | 5 | March 23, 2022 09:09 |
[OpenFOAM.com] paraFoam cannot open due to Qt issues - [Solved/Information] | u2berggeist | OpenFOAM Installation | 2 | July 2, 2018 18:03 |
[OpenFOAM] How to use paraFoam on a cluster | andreas | ParaView | 1 | March 6, 2013 18:11 |
[OpenFOAM] OpenFoam (Ubuntu): paraFoam via Xming+PuTTY | raketenmaid | ParaView | 4 | February 5, 2013 06:20 |
[OpenFOAM] Parafoam basic questions | qtian | ParaView | 0 | July 20, 2007 12:52 |