mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
PV3FoamReader: Use the vol-field name rather than volPointInterpolate<vol-field name> for the VTK point fields
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user