84 changedFacesInfo.
clear();
87 for (; startCelli <
src.
nCells(); startCelli++)
89 if (!cellData[startCelli].valid(td))
106 label facei =
src.
cells()[startCelli][0];
107 changedFaces.
append(facei);
142 srcToTgtAddr[celli] = cellData[celli].tgtCell();
189 calculate(src_, tgt_, srcToTgt);
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);
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];
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void append(const T &val)
Copy append an element to the end of this list.
Wave propagation of information through grid. Every iteration information goes through one layer of c...
void setSize(const label n)
Alias for resize()
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
static bool & parRun() noexcept
Test if this a parallel run.
label nTotalCells() const noexcept
Return total number of cells in decomposed mesh.
Class used to pass non-cell data to the update function.
Transfers refinement levels such that slow transition between levels is maintained....
Base class for mesh-to-mesh calculation methods.
const polyMesh & src() const
Return const access to the source mesh.
const polyMesh & tgt() const
Return const access to the target mesh.
Mesh consisting of general polyhedral cells.
label findCell(const point &p, const cellDecomposition=CELL_TETS) const
Find cell enclosing this location and return index.
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.
const globalMeshData & globalData() const
Return parallel info.
const indexedOctree< treeDataCell > & cellTree() const
Return the cell search tree.
const vectorField & cellCentres() const
label nCells() const noexcept
Number of mesh cells.
label nFaces() const noexcept
Number of mesh faces.
const cellList & cells() const
Standard boundBox with extra functionality for use in octree.
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
Direct (one-to-one cell correspondence) mesh-to-mesh interpolation class.
virtual ~waveMethod()
Destructor.
static void calculate(const polyMesh &src, const polyMesh &tgt, labelList &srcToTgtAddr)
Calculate addressing.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
#define forAll(list, i)
Loop across all elements in list.