ENH: meshRefinement: use cyclicSlip for pointMotion on cyclic patches

This commit is contained in:
mattijs
2011-06-03 01:42:24 +01:00
parent d4894117ce
commit d8102fc0bc

View File

@ -45,6 +45,7 @@ License
#include "slipPointPatchFields.H" #include "slipPointPatchFields.H"
#include "fixedValuePointPatchFields.H" #include "fixedValuePointPatchFields.H"
#include "calculatedPointPatchFields.H" #include "calculatedPointPatchFields.H"
#include "cyclicSlipPointPatchFields.H"
#include "processorPointPatch.H" #include "processorPointPatch.H"
#include "globalIndex.H" #include "globalIndex.H"
#include "meshTools.H" #include "meshTools.H"
@ -1458,6 +1459,10 @@ Foam::tmp<Foam::pointVectorField> Foam::meshRefinement::makeDisplacementField
{ {
patchFieldTypes[patchI] = calculatedPointPatchVectorField::typeName; patchFieldTypes[patchI] = calculatedPointPatchVectorField::typeName;
} }
else if (isA<cyclicPointPatch>(pointPatches[patchI]))
{
patchFieldTypes[patchI] = cyclicSlipPointPatchVectorField::typeName;
}
} }
// Note: time().timeName() instead of meshRefinement::timeName() since // Note: time().timeName() instead of meshRefinement::timeName() since