Go to the documentation of this file.
58 const bool oldParRun = Pstream::parRun();
59 Pstream::parRun() =
false;
85 changedFacesInfo.clear();
88 for (; startCelli < src.
nCells(); startCelli++)
90 if (!cellData[startCelli].valid(td))
103 label tgtCelli = tgt.
findCell(cc, polyMesh::CELL_TETS);
107 label facei = src.
cells()[startCelli][0];
108 changedFaces.
append(facei);
143 srcToTgtAddr[celli] = cellData[celli].tgtCell();
147 Pstream::parRun() = oldParRun;
160 Foam::waveMethod::waveMethod
190 calculate(src_, tgt_, srcToTgt);
191 srcToTgtAddr.
setSize(srcToTgt.size());
192 srcToTgtWght.
setSize(srcToTgt.size());
193 forAll(srcToTgtAddr, celli)
195 srcToTgtAddr[celli].
setSize(1);
196 srcToTgtAddr[celli][0] = srcToTgt[celli];
197 srcToTgtWght[celli].
setSize(1);
198 srcToTgtWght[celli][0] = src_.cellVolumes()[celli];
204 calculate(tgt_, src_, tgtToSrc);
205 tgtToSrcAddr.
setSize(tgtToSrc.size());
206 tgtToSrcWght.
setSize(tgtToSrc.size());
207 forAll(tgtToSrcAddr, celli)
209 tgtToSrcAddr[celli].
setSize(1);
210 tgtToSrcAddr[celli][0] = tgtToSrc[celli];
211 tgtToSrcWght[celli].
setSize(1);
212 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.
label nFaces() const
Number of mesh faces.
Standard boundBox with extra functionality for use in octree.
const cellList & cells() const
label nTotalCells() const
Return total number of cells in decomposed mesh.
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
An Ostream wrapper for parallel output to std::cout.
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
Number of mesh cells.
Class used to pass non-cell data to the update function.
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.
const globalMeshData & globalData() const
Return parallel info.
void setSize(const label newSize)
Alias for resize(const label)
defineTypeNameAndDebug(combustionModel, 0)
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.