mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fix for cyclic boundary handling
This commit is contained in:
@ -64,7 +64,7 @@ SourceFiles
|
|||||||
#include "fileName.H"
|
#include "fileName.H"
|
||||||
#include "volPointInterpolation.H"
|
#include "volPointInterpolation.H"
|
||||||
#include "stringList.H"
|
#include "stringList.H"
|
||||||
|
#include "primitivePatch.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Forward Declarations * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Forward Declarations * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -449,6 +449,7 @@ private:
|
|||||||
(
|
(
|
||||||
const fvMesh&,
|
const fvMesh&,
|
||||||
const volPointInterpolation& pInterp,
|
const volPointInterpolation& pInterp,
|
||||||
|
const PtrList<PrimitivePatchInterpolation<primitivePatch> >&,
|
||||||
const IOobjectList& objects,
|
const IOobjectList& objects,
|
||||||
vtkDataArraySelection* fieldSelection,
|
vtkDataArraySelection* fieldSelection,
|
||||||
vtkMultiBlockDataSet* output
|
vtkMultiBlockDataSet* output
|
||||||
|
|||||||
@ -45,6 +45,7 @@ void Foam::vtkPV3Foam::convertVolFields
|
|||||||
(
|
(
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
const volPointInterpolation& pInterp,
|
const volPointInterpolation& pInterp,
|
||||||
|
const PtrList<PrimitivePatchInterpolation<primitivePatch> >& ppInterpList,
|
||||||
const IOobjectList& objects,
|
const IOobjectList& objects,
|
||||||
vtkDataArraySelection *fieldSelection,
|
vtkDataArraySelection *fieldSelection,
|
||||||
vtkMultiBlockDataSet* output
|
vtkMultiBlockDataSet* output
|
||||||
@ -153,7 +154,6 @@ void Foam::vtkPV3Foam::convertVolFields
|
|||||||
tf.boundaryField()[patchId]
|
tf.boundaryField()[patchId]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
isType<emptyFvPatchField<Type> >(ptf)
|
isType<emptyFvPatchField<Type> >(ptf)
|
||||||
@ -195,8 +195,7 @@ void Foam::vtkPV3Foam::convertVolFields
|
|||||||
convertPatchPointField
|
convertPatchPointField
|
||||||
(
|
(
|
||||||
tf.name(),
|
tf.name(),
|
||||||
tptf().boundaryField()[patchId]
|
ppInterpList[patchId].faceToPointInterpolate(ptf)(),
|
||||||
.patchInternalField()(),
|
|
||||||
output,
|
output,
|
||||||
selectInfoPatches_,
|
selectInfoPatches_,
|
||||||
selectedRegionDatasetIds_[regionId]
|
selectedRegionDatasetIds_[regionId]
|
||||||
|
|||||||
@ -114,6 +114,21 @@ void Foam::vtkPV3Foam::updateVolFields
|
|||||||
}
|
}
|
||||||
|
|
||||||
volPointInterpolation pInterp(mesh, pMesh);
|
volPointInterpolation pInterp(mesh, pMesh);
|
||||||
|
|
||||||
|
PtrList<PrimitivePatchInterpolation<primitivePatch> >
|
||||||
|
ppInterpList(mesh.boundaryMesh().size());
|
||||||
|
|
||||||
|
forAll(ppInterpList, i)
|
||||||
|
{
|
||||||
|
ppInterpList.set
|
||||||
|
(
|
||||||
|
i,
|
||||||
|
new PrimitivePatchInterpolation<primitivePatch>
|
||||||
|
(
|
||||||
|
mesh.boundaryMesh()[i]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
convertVolFields<Foam::label>
|
convertVolFields<Foam::label>
|
||||||
(
|
(
|
||||||
@ -122,23 +137,23 @@ void Foam::vtkPV3Foam::updateVolFields
|
|||||||
*/
|
*/
|
||||||
convertVolFields<Foam::scalar>
|
convertVolFields<Foam::scalar>
|
||||||
(
|
(
|
||||||
mesh, pInterp, objects, arraySelection, output
|
mesh, pInterp, ppInterpList, objects, arraySelection, output
|
||||||
);
|
);
|
||||||
convertVolFields<Foam::vector>
|
convertVolFields<Foam::vector>
|
||||||
(
|
(
|
||||||
mesh, pInterp, objects, arraySelection, output
|
mesh, pInterp, ppInterpList, objects, arraySelection, output
|
||||||
);
|
);
|
||||||
convertVolFields<Foam::sphericalTensor>
|
convertVolFields<Foam::sphericalTensor>
|
||||||
(
|
(
|
||||||
mesh, pInterp, objects, arraySelection, output
|
mesh, pInterp, ppInterpList, objects, arraySelection, output
|
||||||
);
|
);
|
||||||
convertVolFields<Foam::symmTensor>
|
convertVolFields<Foam::symmTensor>
|
||||||
(
|
(
|
||||||
mesh, pInterp, objects, arraySelection, output
|
mesh, pInterp, ppInterpList, objects, arraySelection, output
|
||||||
);
|
);
|
||||||
convertVolFields<Foam::tensor>
|
convertVolFields<Foam::tensor>
|
||||||
(
|
(
|
||||||
mesh, pInterp, objects, arraySelection, output
|
mesh, pInterp, ppInterpList, objects, arraySelection, output
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user