ENH: replace internal meshmaps with foamVtkMeshMaps

This commit is contained in:
Mark Olesen
2017-05-15 12:57:36 +02:00
parent 2f288cfbef
commit 1f18a0f97f
2 changed files with 5 additions and 61 deletions

View File

@ -12,6 +12,7 @@ link_directories(
include_directories( include_directories(
$ENV{WM_PROJECT_DIR}/src/OpenFOAM/lnInclude $ENV{WM_PROJECT_DIR}/src/OpenFOAM/lnInclude
$ENV{WM_PROJECT_DIR}/src/OSspecific/$ENV{WM_OSTYPE}/lnInclude $ENV{WM_PROJECT_DIR}/src/OSspecific/$ENV{WM_OSTYPE}/lnInclude
$ENV{WM_PROJECT_DIR}/src/conversion/lnInclude
$ENV{WM_PROJECT_DIR}/src/finiteVolume/lnInclude $ENV{WM_PROJECT_DIR}/src/finiteVolume/lnInclude
${PROJECT_SOURCE_DIR}/../vtkPVFoam ${PROJECT_SOURCE_DIR}/../vtkPVFoam
${PROJECT_SOURCE_DIR}/../../foamPv/lnInclude ${PROJECT_SOURCE_DIR}/../../foamPv/lnInclude
@ -64,6 +65,7 @@ target_link_libraries(
LINK_PUBLIC LINK_PUBLIC
vtkPVFoam-pv${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR} vtkPVFoam-pv${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}
foamPv-pv${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR} foamPv-pv${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}
conversion
finiteVolume finiteVolume
OpenFOAM OpenFOAM
) )

View File

@ -54,6 +54,7 @@ SourceFiles
#include "PrimitivePatchInterpolation.H" #include "PrimitivePatchInterpolation.H"
#include "volPointInterpolation.H" #include "volPointInterpolation.H"
#include "foamPvCore.H" #include "foamPvCore.H"
#include "foamVtkMeshMaps.H"
#include "vtkSmartPointer.h" #include "vtkSmartPointer.h"
#include "vtkPolyData.h" #include "vtkPolyData.h"
@ -103,66 +104,6 @@ class vtkPVFoam
// Private classes // Private classes
//- Bookkeeping for polyhedral cell decomposition
// hide in extra pointMap (cellSet/cellZone) for now
class polyDecomp
{
labelList cellMap_;
labelList pointMap_;
labelList additionalIds_;
public:
polyDecomp()
{}
//- Label of original cell for decomposed cells
labelList& cellMap()
{
return cellMap_;
}
//- Label of original cell for decomposed cells
const labelList& cellMap() const
{
return cellMap_;
}
//- Point labels for subsetted meshes
labelList& pointMap()
{
return pointMap_;
}
//- Point labels for subsetted meshes
const labelList& pointMap() const
{
return pointMap_;
}
//- Cell-centre labels for additional points of decomposed cells
labelList& additionalIds()
{
return additionalIds_;
}
//- Cell-centre labels for additional points of decomposed cells
const labelList& additionalIds() const
{
return additionalIds_;
}
//- Clear
void clear()
{
cellMap_.clear();
pointMap_.clear();
additionalIds_.clear();
}
};
//- Bookkeeping for vtkPolyData //- Bookkeeping for vtkPolyData
class foamVtpData class foamVtpData
{ {
@ -170,8 +111,9 @@ class vtkPVFoam
vtkSmartPointer<vtkPolyData> vtkmesh; vtkSmartPointer<vtkPolyData> vtkmesh;
}; };
//- Bookkeeping for vtkUnstructuredGrid //- Bookkeeping for vtkUnstructuredGrid
class foamVtuData : public polyDecomp class foamVtuData : public foamVtkMeshMaps
{ {
public: public:
vtkSmartPointer<vtkUnstructuredGrid> vtkmesh; vtkSmartPointer<vtkUnstructuredGrid> vtkmesh;