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

[OpenFOAM] Paraview 330dev

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2008, 11:25
Default Paraview 330dev
  #1
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 18
egp is on a distinguished road
Hi everyone,

I'm using the latest snapshot of Paraview 3.3.0 on OSX 10.5.2 with the pyFoam script from Takuya.

Paraview launches from the command line (pyFoam . case) and successfully grabs system/controlDict, reads time-level 0 data, and allows visualization of time-level 0 data.

However, I can't get paraview to read any of the timesteps beyond 0. Is this an issue with the built-in OpenFOAM reader, with 3.3.0, or with me (most likely!)?

Eric
egp is offline   Reply With Quote

Old   May 17, 2008, 19:46
Default Hi Eric, The reader tries to
  #2
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
Hi Eric,
The reader tries to list time directories according to the description in controlDict whenever possible (an inherited feature from Terry's original code which I found sometimes useful). However it may be causing the problem in your case. Could you comment out (add // to) lines 3651-3663 of vtkOpenFOAMReader.cxx except line 3662 as follows<pre> 3651 // if(((adjustTimeStep == "off" || adjustTimeStep == "no"
3652 // || adjustTimeStep == "n" || adjustTimeStep == "false"
3653 // || adjustTimeStep == "") && writeControl == "timeStep")
3654 // || ((adjustTimeStep == "on" || adjustTimeStep == "yes"
3655 // || adjustTimeStep == "y" || adjustTimeStep == "true")
3656 // && writeControl == "adjustableRunTime"))
3657 // {
3658 // return this->ListTimeDirectoriesByControlDict(&dict);
3659 // }
3660 // else
3661 // {
3662 return this->ListTimeDirectoriesByInstances(&dict);
3663 // }</pre>, recompile (go to [your build directory]/VTK/IO and run make) and see if it works?

Takuya
7islands is offline   Reply With Quote

Old   May 17, 2008, 19:52
Default Hello Takuya, A Good day to
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Takuya,

A Good day to you... and long time no see :-)!

I was thinking of the same thing... I am quite sure the issue lies within that snippet of code...

Maybe we should consider shifting to time step extraction via instances, but keep the controlDict extraction method as an option which can be enabled or disabled from the reader GUI within ParaView as discussed hmmmm.... couple of months ago :-)!

What say ?

Philippose
philippose is offline   Reply With Quote

Old   May 17, 2008, 20:16
Default Hi Philippose, You are probab
  #4
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
Hi Philippose,
You are probably right, I'm inclined to make the feature optional in the next release (if any).

Takuya

p.s. Do you still see the cell-to-point filter problem? I'm always interested in fixing it (if it's confirmed to be a problem).
7islands is offline   Reply With Quote

Old   May 21, 2008, 03:14
Default I would favour dropping the co
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
I would favour dropping the controlDict parsing entirely since it can incorrectly ignore existing solutions. For example, when a steady-state solver uses the Time::writeAndEnd() method after reaching convergence.
olesen is offline   Reply With Quote

Old   May 21, 2008, 09:54
Default Yep that behavior will be the
  #6
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
Yep that behavior will be the default (if there will be another release).

T.
7islands is offline   Reply With Quote

Old   May 21, 2008, 15:16
Default Hi Takuya, I have not trie
  #7
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 18
egp is on a distinguished road
Hi Takuya,

I have not tried to compile version 3.3.0. I am using the binary downloaded from paraview.org.

I'll try to download the 3.3.0 source and compile the code with your recommended changes to lines 3651-3663.

Eric
egp is offline   Reply With Quote

Old   May 21, 2008, 21:12
Default Hi Eric, Now I got it: the re
  #8
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
Hi Eric,
Now I got it: the reader enabled in version 3.3 by default is Terry's code, which doesn't support VCR Play/Stop/etc. buttons. You could also try (warning: advertising own stuff) the reader posted to another thread on 26/Mar/2008 [1].

[1] http://www.cfd-online.com/cgi-bin/Op...1231#POST21231

Takuya
7islands 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.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 05:48
[OpenFOAM] Paraview client/server does not work with ParaView 5.0.1 snak ParaView 0 October 17, 2016 10:22
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 13:24
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 02:32
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 03:41.