39const Foam::scalar Foam::meshToMesh0::directHitTol = 1
e-5;
55 cellAddressing_(toMesh_.nCells()),
57 inverseDistanceWeightsPtr_(nullptr),
58 inverseVolumeWeightsPtr_(nullptr),
59 cellToCellAddressingPtr_(nullptr),
80 forAll(cuttingPatchNames, i)
82 if (toMeshPatches_.
found(cuttingPatchNames[i]))
87 toMeshPatches_.
find(cuttingPatchNames[i])()
93 <<
"Cannot find cutting-patch " << cuttingPatchNames[i]
94 <<
" in destination mesh" <<
endl;
101 if (isA<processorPolyPatch>(toMesh_.
boundaryMesh()[patchi]))
123 cellAddressing_(toMesh_.nCells()),
125 inverseDistanceWeightsPtr_(nullptr),
126 inverseVolumeWeightsPtr_(nullptr),
127 cellToCellAddressingPtr_(nullptr),
135 <<
"Incompatible meshes: different number of patches, "
150 <<
"Incompatible meshes: different patch names for patch "
152 <<
", fromMesh = " << fromMesh_.
boundary()[patchi].name()
153 <<
", toMesh = " << toMesh_.
boundary()[patchi].name()
164 <<
"Incompatible meshes: different patch types for patch "
166 <<
", fromMesh = " << fromMesh_.
boundary()[patchi].type()
167 <<
", toMesh = " << toMesh_.
boundary()[patchi].type()
A HashTable similar to std::unordered_map.
bool found(const Key &key) const
Return true if hashed entry is found in table.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
iterator find(const Key &key)
Find and return an iterator set at the hashed entry.
const word & name() const noexcept
Return the object name.
label size() const noexcept
The number of elements in the list.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Serial mesh to mesh interpolation class.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.