39 const Foam::scalar Foam::meshToMesh0::directHitTol = 1
e-5;
55 cellAddressing_(toMesh_.nCells()),
56 boundaryAddressing_(toMesh_.boundaryMesh().size()),
57 inverseDistanceWeightsPtr_(
nullptr),
58 inverseVolumeWeightsPtr_(
nullptr),
59 cellToCellAddressingPtr_(
nullptr),
62 forAll(fromMesh_.boundaryMesh(), patchi)
64 fromMeshPatches_.insert
66 fromMesh_.boundaryMesh()[patchi].name(),
71 forAll(toMesh_.boundaryMesh(), patchi)
75 toMesh_.boundaryMesh()[patchi].name(),
80 forAll(cuttingPatchNames, i)
82 if (toMeshPatches_.found(cuttingPatchNames[i]))
84 cuttingPatches_.insert
87 toMeshPatches_.find(cuttingPatchNames[i])()
93 <<
"Cannot find cutting-patch " << cuttingPatchNames[i]
94 <<
" in destination mesh" <<
endl;
98 forAll(toMesh_.boundaryMesh(), patchi)
101 if (isA<processorPolyPatch>(toMesh_.boundaryMesh()[patchi]))
103 cuttingPatches_.insert
105 toMesh_.boundaryMesh()[patchi].name(),
123 cellAddressing_(toMesh_.nCells()),
124 boundaryAddressing_(toMesh_.boundaryMesh().size()),
125 inverseDistanceWeightsPtr_(
nullptr),
126 inverseVolumeWeightsPtr_(
nullptr),
127 cellToCellAddressingPtr_(
nullptr),
132 if (fromMesh_.boundary().size() != toMesh_.boundary().size())
135 <<
"Incompatible meshes: different number of patches, "
136 <<
"fromMesh = " << fromMesh_.boundary().size()
137 <<
", toMesh = " << toMesh_.boundary().size()
141 forAll(fromMesh_.boundaryMesh(), patchi)
145 fromMesh_.boundaryMesh()[patchi].name()
146 != toMesh_.boundaryMesh()[patchi].name()
150 <<
"Incompatible meshes: different patch names for patch "
152 <<
", fromMesh = " << fromMesh_.boundary()[patchi].name()
153 <<
", toMesh = " << toMesh_.boundary()[patchi].name()
159 fromMesh_.boundaryMesh()[patchi].type()
160 != toMesh_.boundaryMesh()[patchi].type()
164 <<
"Incompatible meshes: different patch types for patch "
166 <<
", fromMesh = " << fromMesh_.boundary()[patchi].type()
167 <<
", toMesh = " << toMesh_.boundary()[patchi].type()
171 fromMeshPatches_.insert
173 fromMesh_.boundaryMesh()[patchi].name(),
177 toMeshPatches_.insert
179 toMesh_.boundaryMesh()[patchi].name(),
185 toMesh_.boundaryMesh()[patchi].name(),
186 fromMesh_.boundaryMesh()[patchi].name()