58 Foam::rawTopoChangerFvMesh::rawTopoChangerFvMesh
79 Info<<
"rawTopoChangerFvMesh : Checking for topology changes..."
89 const bool hasChanged =
bool(topoChangeMap);
93 Info<<
"rawTopoChangerFvMesh : Done topology changes..."
104 bitSet mappedFace(nFaces());
106 const label nOldInternal = topoChangeMap().oldPatchStarts()[0];
109 for (label facei = 0; facei < nInternalFaces(); facei++)
113 mappedFace.
set(facei);
116 for (label facei = nInternalFaces(); facei < nFaces(); facei++)
120 mappedFace.set(facei);
124 const List<objectMap>& fromFaces = topoChangeMap().facesFromFacesMap();
128 mappedFace.set(fromFaces[i].index());
131 const List<objectMap>& fromEdges = topoChangeMap().facesFromEdgesMap();
135 mappedFace.set(fromEdges[i].index());
138 const List<objectMap>& fromPts = topoChangeMap().facesFromPointsMap();
142 mappedFace.set(fromPts[i].index());
146 Info<<
"rawTopoChangerFvMesh : zeroing unmapped boundary values."
148 zeroUnmappedValues<scalar, fvPatchField, volMesh>(mappedFace);
149 zeroUnmappedValues<vector, fvPatchField, volMesh>(mappedFace);
150 zeroUnmappedValues<sphericalTensor, fvPatchField, volMesh>(mappedFace);
151 zeroUnmappedValues<symmTensor, fvPatchField, volMesh>(mappedFace);
152 zeroUnmappedValues<tensor, fvPatchField, volMesh>(mappedFace);
155 Info<<
"rawTopoChangerFvMesh :"
156 <<
" recreating phi for unmapped boundary values." <<
endl;
169 if (topoChangeMap().hasMotionPoints())
171 pointField newPoints = topoChangeMap().preMotionPoints();
174 Info<<
"rawTopoChangerFvMesh :"
175 <<
" calling modifyMotionPoints." <<
endl;
176 topoChanger_.modifyMotionPoints(newPoints);
179 Info<<
"rawTopoChangerFvMesh :"
180 <<
" calling movePoints." <<
endl;
182 movePoints(newPoints);