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

Paraview 330dev

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 17, 2008, 11:25
Default Hi everyone, I'm using the
  #1
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 9
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: 11
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: 530
Rep Power: 16
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: 11
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: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
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: 11
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: 9
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: 11
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

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
Is it possible to use ParaView 321 with OF 141 pasinari OpenFOAM Paraview & paraFoam 2 December 31, 2007 06:00
Paraview 300 vinz OpenFOAM Paraview & paraFoam 12 October 6, 2007 09:46
need help with Paraview vertical wall ParaView 7 February 19, 2007 22:46
Paraview jojo ParaView 4 June 25, 2006 19:01
HI all I cant find display button in paraview when i execute cavity tutorial there is only parameter button in the paraview chan OpenFOAM Paraview & paraFoam 2 February 13, 2006 08:37


All times are GMT -4. The time now is 07:02.