From 5b92011d93f87cf4a2b4f24f4e34532058320c67 Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Tue, 10 Jun 2008 11:27:31 +0100 Subject: [PATCH] changed volPointInterpolate() labels to vpi() --- .../vtkPV3Foam/vtkPV3FoamConvertPatchPointField.H | 10 ++++++++-- .../vtkPV3Foam/vtkPV3FoamConvertPointFields.H | 10 ++++++++-- .../vtkPV3Foam/vtkPV3FoamConvertVolFields.H | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPatchPointField.H b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPatchPointField.H index 9720edd6202..91e6a981a8f 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPatchPointField.H +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPatchPointField.H @@ -54,7 +54,10 @@ void Foam::vtkPV3Foam::convertPatchPointField pointData->SetNumberOfTuples(pptf.size()); pointData->SetNumberOfComponents(Type::nComponents); pointData->Allocate(Type::nComponents*pptf.size()); - pointData->SetName(name.c_str()); +// pointData->SetName(name.c_str()); + string dataSetName = name; + string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi"); + pointData->SetName(newDataSetName.c_str()); float vec[Type::nComponents]; @@ -92,7 +95,10 @@ void Foam::vtkPV3Foam::convertPatchPointField pointData->SetNumberOfTuples(ppsf.size()); pointData->SetNumberOfComponents(1); pointData->Allocate(ppsf.size()); - pointData->SetName(name.c_str()); +// pointData->SetName(name.c_str()); + string dataSetName = name; + string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi"); + pointData->SetName(newDataSetName.c_str()); for (int i=0; i<ppsf.size(); i++) { diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H index a09911063a2..d9d9e6f9464 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H @@ -154,7 +154,10 @@ void Foam::vtkPV3Foam::convertPointField pointData->SetNumberOfTuples(ptf.size() + addPointCellLabels_.size()); pointData->SetNumberOfComponents(Type::nComponents); pointData->Allocate(Type::nComponents*ptf.size()); - pointData->SetName(ptf.name().c_str()); +// pointData->SetName(ptf.name().c_str()); + string dataSetName = ptf.name(); + string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi"); + pointData->SetName(newDataSetName.c_str()); float vec[Type::nComponents]; @@ -223,7 +226,10 @@ void Foam::vtkPV3Foam::convertPointField pointData->SetNumberOfTuples(psf.size() + addPointCellLabels_.size()); pointData->SetNumberOfComponents(1); pointData->Allocate(psf.size()); - pointData->SetName(psf.name().c_str()); +// pointData->SetName(psf.name().c_str()); + string dataSetName = psf.name(); + string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi"); + pointData->SetName(newDataSetName.c_str()); for (int i=0; i<psf.size(); i++) { diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H index ee737e6a880..ab771d6a350 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H @@ -118,7 +118,8 @@ void Foam::vtkPV3Foam::convertVolFields ); convertPointField ( - tptf(), tf, + tptf(), + tf, output, selectInfoVolume_, selectedRegionDatasetIds_[regionId] -- GitLab