Go to the documentation of this file.
58 const bool oldParRun = Pstream::parRun(
false);
84 changedFacesInfo.clear();
87 for (; startCelli < src.
nCells(); startCelli++)
89 if (!cellData[startCelli].valid(td))
102 label tgtCelli = tgt.
findCell(cc, polyMesh::CELL_TETS);
106 label facei = src.
cells()[startCelli][0];
107 changedFaces.
append(facei);
142 srcToTgtAddr[celli] = cellData[celli].tgtCell();
146 Pstream::parRun(oldParRun);
159 Foam::waveMethod::waveMethod
189 calculate(src_, tgt_, srcToTgt);
190 srcToTgtAddr.
setSize(srcToTgt.size());
191 srcToTgtWght.
setSize(srcToTgt.size());
192 forAll(srcToTgtAddr, celli)
194 srcToTgtAddr[celli].
setSize(1);
195 srcToTgtAddr[celli][0] = srcToTgt[celli];
196 srcToTgtWght[celli].
setSize(1);
197 srcToTgtWght[celli][0] = src_.cellVolumes()[celli];
203 calculate(tgt_, src_, tgtToSrc);
204 tgtToSrcAddr.
setSize(tgtToSrc.size());
205 tgtToSrcWght.
setSize(tgtToSrc.size());
206 forAll(tgtToSrcAddr, celli)
208 tgtToSrcAddr[celli].
setSize(1);
209 tgtToSrcAddr[celli][0] = tgtToSrc[celli];
210 tgtToSrcWght[celli].
setSize(1);
211 tgtToSrcWght[celli][0] = tgt_.cellVolumes()[celli];
int debug
Static debugging option.
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
static void calculate(const polyMesh &src, const polyMesh &tgt, labelList &srcToTgtAddr)
Calculate addressing.
Standard boundBox with extra functionality for use in octree.
const cellList & cells() const
void append(const T &val)
Append an element at the end of the list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
Transfers refinement levels such that slow transition between levels is maintained....
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
Base class for mesh-to-mesh calculation methods.
label nCells() const noexcept
Number of mesh cells.
Class used to pass non-cell data to the update function.
void setSize(const label n)
Alias for resize()
virtual ~waveMethod()
Destructor.
Macros for easy insertion into run-time selection tables.
Wave propagation of information through grid. Every iteration information goes through one layer of c...
const indexedOctree< treeDataCell > & cellTree() const
Return the cell search tree.
label findCell(const point &p, const cellDecomposition=CELL_TETS) const
Find cell enclosing this location and return index.
const vectorField & cellCentres() const
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
label nTotalCells() const noexcept
Return total number of cells in decomposed mesh.
label nFaces() const noexcept
Number of mesh faces.
const globalMeshData & globalData() const
Return parallel info.
defineTypeNameAndDebug(combustionModel, 0)
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.