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

Alternative to paraFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2010, 01:00
Lightbulb Alternative to paraFoam
  #1
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
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, 42 views)
ericnutsch is offline   Reply With Quote

Old   May 31, 2010, 01:56
Default
  #2
New Member
 
Join Date: May 2009
Posts: 14
Rep Power: 8
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, 19:58
Default
  #3
New Member
 
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 7
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, 04:19
Default
  #4
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
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, 10:15
Default
  #5
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
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, 14:55
Default
  #6
New Member
 
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 7
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, 15:52
Default
  #7
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
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

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
pointVectorField in ParaFoam s_braendli OpenFOAM Paraview & paraFoam 0 April 22, 2010 08:36
surfaceScalarField in paraFoam danielr OpenFOAM Paraview & paraFoam 1 October 5, 2009 02:08
ParaFoam out of date libraries melanie OpenFOAM Paraview & paraFoam 1 September 9, 2008 05:45
Parafoam basic questions qtian OpenFOAM Paraview & paraFoam 0 July 20, 2007 11:52
ParaFoam OF 14 decomposed cases philippose OpenFOAM Paraview & paraFoam 4 April 18, 2007 05:17


All times are GMT -4. The time now is 21:51.