[Paraview] Building a PlugIn for v3 for an existing Reader (OpenFOAM)

Bernhard Gschaider Bernhard.Gschaider at unileoben.ac.at
Wed May 30 07:49:00 EDT 2007


>>>>> On Tue, 29 May 2007 09:06:46 -0600
>>>>> "CS" == Clinton Stimpson <clinton at elemtech.com> wrote:

    CS> The server side OpenFOAM stuff is already built into ParaView.
    CS> You just need a GUI side plugin.  There was a typo on the Wiki
    CS> that is now fixed.  Use GUI_RESOURCES instead of GUI_RESOURCE

    CS> FIND_PACKAGE(ParaView REQUIRED) INCLUDE(${PARAVIEW_USE_FILE})
    CS> ADD_PARAVIEW_PLUGIN(OpenFOAMGUIPlugin "1.0" GUI_RESOURCES
    CS> foamReader.qrc )

Thanks a lot. That did it for me.


>>>>> On Tue, 29 May 2007 13:51:33 -0400
>>>>> "BG" == Berk Geveci <berk.geveci at kitware.com> wrote:

    BG> I believe Clint will respond to your message. By the way, the
    BG> absence of the OpenFOAM reader in the default list of readers
    BG> is not intentional. I will put it in for the next patch.

Great. Just one thing I noticed: OpenFOAM has the option to write the
data files (and the grid files) compressed (a data file p becomes p.gz
and has the same format, but is (SURPRISE) gnuzipped). If I open such
a case then paraview seems to go into an infinite loop and allocates
memory until it crashes because no more mem is available). If I unzip
the files before reading the case, everything is OK.

>From looking at the source of vtkOpenFOAMReader I'm not quite sure
whether these zipped files are recognized (it is my impression that
they are not). I think it's better not to include the reader before
this thing accounted for.

If there is any way I can help with that let me know (I'll try to
understand the sources and see whether I can come up with a fix)

regards
Bernhard


More information about the ParaView mailing list