37 const Foam::scalar Foam::meshToMesh0::directHitTol = 1
e-5;
53 cellAddressing_(toMesh_.nCells()),
54 boundaryAddressing_(toMesh_.boundaryMesh().size()),
55 inverseDistanceWeightsPtr_(NULL),
56 inverseVolumeWeightsPtr_(NULL),
57 cellToCellAddressingPtr_(NULL),
62 fromMeshPatches_.insert
64 fromMesh_.boundaryMesh()[
patchi].name(),
73 toMesh_.boundaryMesh()[
patchi].name(),
78 forAll(cuttingPatchNames, i)
80 if (toMeshPatches_.found(cuttingPatchNames[i]))
82 cuttingPatches_.insert
85 toMeshPatches_.find(cuttingPatchNames[i])()
92 "meshToMesh0::meshToMesh0" 93 "(const fvMesh& meshFrom, const fvMesh& meshTo," 94 "const HashTable<word>& patchMap," 95 "const wordList& cuttingPatchNames)" 96 ) <<
"Cannot find cutting-patch " << cuttingPatchNames[i]
97 <<
" in destination mesh" <<
endl;
104 if (isA<processorPolyPatch>(toMesh_.boundaryMesh()[
patchi]))
106 cuttingPatches_.insert
108 toMesh_.boundaryMesh()[
patchi].name(),
126 cellAddressing_(toMesh_.nCells()),
127 boundaryAddressing_(toMesh_.boundaryMesh().size()),
128 inverseDistanceWeightsPtr_(NULL),
129 inverseVolumeWeightsPtr_(NULL),
130 cellToCellAddressingPtr_(NULL),
135 if (fromMesh_.boundary().size() != toMesh_.boundary().size())
139 "meshToMesh0::meshToMesh0" 140 "(const fvMesh& meshFrom, const fvMesh& meshTo)" 141 ) <<
"Incompatible meshes: different number of patches, " 142 <<
"fromMesh = " << fromMesh_.boundary().size()
143 <<
", toMesh = " << toMesh_.boundary().size()
151 fromMesh_.boundaryMesh()[
patchi].name()
152 != toMesh_.boundaryMesh()[
patchi].name()
157 "meshToMesh0::meshToMesh0" 158 "(const fvMesh& meshFrom, const fvMesh& meshTo)" 159 ) <<
"Incompatible meshes: different patch names for patch " 161 <<
", fromMesh = " << fromMesh_.boundary()[
patchi].name()
162 <<
", toMesh = " << toMesh_.boundary()[
patchi].name()
168 fromMesh_.boundaryMesh()[
patchi].type()
169 != toMesh_.boundaryMesh()[
patchi].type()
174 "meshToMesh0::meshToMesh0" 175 "(const fvMesh& meshFrom, const fvMesh& meshTo)" 176 ) <<
"Incompatible meshes: different patch types for patch " 178 <<
", fromMesh = " << fromMesh_.boundary()[
patchi].type()
179 <<
", toMesh = " << toMesh_.boundary()[
patchi].type()
183 fromMeshPatches_.insert
185 fromMesh_.boundaryMesh()[
patchi].name(),
189 toMeshPatches_.insert
191 toMesh_.boundaryMesh()[
patchi].name(),
197 toMesh_.boundaryMesh()[
patchi].name(),
198 fromMesh_.boundaryMesh()[
patchi].name()
Mesh data needed to do the Finite Volume discretisation.
An STL-conforming hash table.
void deleteDemandDrivenData(DataPtr &dataPtr)
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
const double e
Elementary charge.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
Template functions to aid in the implementation of demand driven data.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
~meshToMesh0()
Destructor.
defineTypeNameAndDebug(combustionModel, 0)