PV3FoamReader: Use the vol-field name rather than volPointInterpolate<vol-field name> for the VTK point fields

This commit is contained in:
henry
2010-06-28 11:48:39 +01:00
parent bfbab34491
commit 10c81a6e0c
2 changed files with 6 additions and 9 deletions

View File

@ -192,7 +192,10 @@ void Foam::vtkPV3Foam::convertPointField
pointData->SetNumberOfTuples(nPoints + addPointCellLabels.size());
pointData->SetNumberOfComponents(nComp);
pointData->Allocate(nComp*(nPoints + addPointCellLabels.size()));
pointData->SetName(ptf.name().c_str());
// Note: using the name of the original volField
// not the name generated by the interpolation "volPointInterpolate(<name>)"
pointData->SetName(tf.name().c_str());
if (debug)
{

View File

@ -110,12 +110,6 @@ void Foam::vtkPV3Foam::convertVolFields
//
// Convert patches - if activated
//
// The name for the interpolated patch point field must be consistent
// with the interpolated volume point field.
// This could be done better.
const word pointFldName = "volPointInterpolate(" + tf.name() + ')';
for
(
int partId = arrayRangePatches_.start();
@ -162,7 +156,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField
(
pointFldName,
tf.name(),
ppInterpList[patchId].faceToPointInterpolate(tpptf)(),
output,
arrayRangePatches_,
@ -182,7 +176,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField
(
pointFldName,
tf.name(),
ppInterpList[patchId].faceToPointInterpolate(ptf)(),
output,
arrayRangePatches_,