39 const 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]))
117 const fvMesh& meshFrom,
123 cellAddressing_(toMesh_.nCells()),
124 boundaryAddressing_(toMesh_.boundaryMesh().size()),
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()
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool found(const Key &key) const
Same as contains()
const word & name() const noexcept
Return the object name.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
const dimensionedScalar e
Elementary charge.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
iterator find(const Key &key)
Find and return an iterator set at the hashed entry.
label size() const noexcept
The number of entries in the list.
A HashTable similar to std::unordered_map.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
meshToMesh0(const fvMesh &fromMesh, const fvMesh &toMesh, const HashTable< word > &patchMap, const wordList &cuttingPatchNames)
Construct from the two meshes, the patch name map for the patches.