Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "slidingInterface.H"
00027 #include <dynamicMesh/polyTopoChange.H>
00028 #include <OpenFOAM/polyMesh.H>
00029 #include <dynamicMesh/polyTopoChanger.H>
00030 #include <dynamicMesh/polyRemovePoint.H>
00031 #include <dynamicMesh/polyRemoveFace.H>
00032
00033
00034
00035 void Foam::slidingInterface::clearCouple
00036 (
00037 polyTopoChange& ref
00038 ) const
00039 {
00040 if (debug)
00041 {
00042 Pout<< "void slidingInterface::clearCouple("
00043 << "polyTopoChange& ref) const for object " << name() << " : "
00044 << "Clearing old couple points and faces." << endl;
00045 }
00046
00047
00048
00049 const polyMesh& mesh = topoChanger().mesh();
00050
00051 const labelList& cutPointZoneLabels =
00052 mesh.pointZones()[cutPointZoneID_.index()];
00053
00054 forAll (cutPointZoneLabels, pointI)
00055 {
00056 ref.setAction(polyRemovePoint(cutPointZoneLabels[pointI]));
00057 }
00058
00059
00060 const labelList& cutFaceZoneLabels =
00061 mesh.faceZones()[cutFaceZoneID_.index()];
00062
00063 forAll (cutFaceZoneLabels, faceI)
00064 {
00065 ref.setAction(polyRemoveFace(cutFaceZoneLabels[faceI]));
00066 }
00067
00068 if (debug)
00069 {
00070 Pout<< "void slidingInterface::clearCouple("
00071 << "polyTopoChange& ref) const for object " << name() << " : "
00072 << "Finished clearing old couple points and faces." << endl;
00073 }
00074 }
00075
00076
00077