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

[OpenFOAM] Alternative to paraFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2010, 02:00
Lightbulb Alternative to paraFoam
  #1
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 17
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
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.
Attached Files
File Type: gz ParaDisplay.tar.gz (187 Bytes, 59 views)
ericnutsch is offline   Reply With Quote

Old   May 31, 2010, 02:56
Default
  #2
New Member
 
Join Date: May 2009
Posts: 14
Rep Power: 17
Hasselhoff is on a distinguished road
Hi Eric!
Well, it works, so why not:-) I like it, thanks for sharing!
best,
Michael
Hasselhoff is offline   Reply With Quote

Old   July 8, 2010, 20:58
Default
  #3
New Member
 
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16
skarnani is on a distinguished road
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
skarnani is offline   Reply With Quote

Old   July 9, 2010, 05:19
Default
  #4
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 17
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
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
ericnutsch is offline   Reply With Quote

Old   July 9, 2010, 11:15
Default
  #5
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
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

7islands is offline   Reply With Quote

Old   July 9, 2010, 15:55
Default
  #6
New Member
 
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16
skarnani is on a distinguished road
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
skarnani is offline   Reply With Quote

Old   July 9, 2010, 16:52
Default
  #7
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 17
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
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
ericnutsch 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
[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


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