39 const scalar meshToMesh::directHitTol = 1
e-5;
54 cellAddressing_(toMesh_.nCells()),
55 boundaryAddressing_(toMesh_.boundaryMesh().size()),
56 inverseDistanceWeightsPtr_(NULL)
60 fromMeshPatches_.insert
62 fromMesh_.boundaryMesh()[
patchi].name(),
71 toMesh_.boundaryMesh()[
patchi].name(),
76 forAll (cuttingPatchNames, i)
78 if (toMeshPatches_.found(cuttingPatchNames[i]))
80 cuttingPatches_.insert
83 toMeshPatches_.find(cuttingPatchNames[i])()
90 "meshToMesh::meshToMesh"
91 "(const fvMesh& meshFrom, const fvMesh& meshTo,"
92 "const HashTable<word>& patchMap,"
93 "const wordList& cuttingPatchNames)"
94 ) <<
"Cannot find cutting-patch " << cuttingPatchNames[i]
95 <<
" in destination mesh" <<
endl;
102 if (isA<processorPolyPatch>(toMesh_.boundaryMesh()[
patchi]))
104 cuttingPatches_.insert
106 toMesh_.boundaryMesh()[
patchi].name(),
124 cellAddressing_(toMesh_.nCells()),
125 boundaryAddressing_(toMesh_.boundaryMesh().size()),
126 inverseDistanceWeightsPtr_(NULL)
130 if (fromMesh_.boundary().size() != toMesh_.boundary().size())
134 "meshToMesh::meshToMesh"
135 "(const fvMesh& meshFrom, const fvMesh& meshTo)"
136 ) <<
"Incompatible meshes: different number of patches, "
137 <<
"fromMesh = " << fromMesh_.boundary().size()
138 <<
", toMesh = " << toMesh_.boundary().size()
146 fromMesh_.boundaryMesh()[
patchi].name()
147 != toMesh_.boundaryMesh()[
patchi].name()
152 "meshToMesh::meshToMesh"
153 "(const fvMesh& meshFrom, const fvMesh& meshTo)"
154 ) <<
"Incompatible meshes: different patch names for patch "
156 <<
", fromMesh = " << fromMesh_.boundary()[
patchi].name()
157 <<
", toMesh = " << toMesh_.boundary()[
patchi].name()
163 fromMesh_.boundaryMesh()[
patchi].type()
164 != toMesh_.boundaryMesh()[
patchi].type()
169 "meshToMesh::meshToMesh"
170 "(const fvMesh& meshFrom, const fvMesh& meshTo)"
171 ) <<
"Incompatible meshes: different patch types for patch "
173 <<
", fromMesh = " << fromMesh_.boundary()[
patchi].type()
174 <<
", toMesh = " << toMesh_.boundary()[
patchi].type()
178 fromMeshPatches_.insert
180 fromMesh_.boundaryMesh()[
patchi].name(),
184 toMeshPatches_.insert
186 toMesh_.boundaryMesh()[
patchi].name(),
192 toMesh_.boundaryMesh()[
patchi].name(),
193 fromMesh_.boundaryMesh()[
patchi].name()