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

[OpenFOAM] Paraview v4 compilation

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By lakeat
  • 1 Post By lakeat

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 14, 2013, 16:37
Default Paraview v4 compilation
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Hey guys,

Concerning building paraview version 4.0 (3.98 included), etc [tested with OpenFOAM-2.2.x]. A few lines of codes need to be updated. Today, after a few tries, I found the following modifications seem to work for me, I hope it helps!

1. Make sure you turn on "PARAVIEW_INSTALL_DEVELOPMENT_FILES ON" before you build paraview. (otherwise you won't have header files installed)

2. In file "vtkPV3FoamReader.h" and "vtkPV3blockMeshReader.h", change VTK_IO_EXPORT to VTK_EXPORT

3. In file "vtkPV3FoamReader.cxx" (~ line 314)

Code:
    for (int infoI = 0; infoI < nInfo; ++infoI)
    {
        vtkInformation *outInfo = outputVector->GetInformationObject(infoI);

        if
        (
            outInfo->Has
            (
                vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()
            )
         && outInfo->Length
            (
                vtkStreamingDemandDrivenPipeline::TIME_STEPS()
            ) >= 1
        )
        {
            requestTime[nRequestTime++] = outInfo->Get
            (
                vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()
            );
        }
    }
ref-1: http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet
ref-2: http://www.openfoam.org/mantisbt/view.php?id=621
wyldckat and Tobi like this.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email

Last edited by lakeat; October 27, 2013 at 15:12.
lakeat is offline   Reply With Quote

 


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
[General] Plugin compilation for paraview wil6 ParaView 0 May 28, 2018 07:53
[OpenFOAM.org] Paraview 5.4.0 compilation failed on centos 6.9 Saclay91 OpenFOAM Installation 1 March 24, 2018 20:20
[OpenFOAM.org] OpenFOAM 2.4 ParaView 4.1 compilation problem tubois OpenFOAM Installation 2 October 23, 2015 06:56
[OpenFOAM] Paraview compilation failed due to not available files Tobi ParaView 2 July 5, 2014 15:39
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 08:04.