Go to the documentation of this file.
51 label newCelli = map[oldCelli];
75 label newMaster = map[iter.key()];
81 newSlave = map[iter.val()];
84 if ((newMaster != iter.key()) || (newSlave != iter.val()))
99 label newMaster = map[iter.key()];
103 if (iter.val() != -1)
105 newSlave = map[iter.val()];
111 <<
"master cell:" << iter.key()
112 <<
" has disappeared" <<
endl;
116 newCellPairs.insert(newMaster, newSlave);
120 cellPairs = newCellPairs;
134 bool changed =
false;
138 const label newCelli = map[celli];
140 if (newCelli != celli)
155 const label newCelli = map[celli];
159 newCells.insert(newCelli);
183 return weight*pts[
e.end()] + (1-weight)*pts[
e.start()];
187 return pts[getVertex(
mesh,
cut)];
199 if (!isEdge(
mesh, cut0) && !isEdge(
mesh, cut1))
204 getVertex(
mesh, cut0),
205 getVertex(
mesh, cut1)
228 os <<
"edge:" << edgeI <<
e <<
' ' << coord(
cut, weight);
234 os <<
"vertex:" << vertI <<
' ' << coord(
cut, weight);
253 writeCut(os, cuts[cutI], weights[cutI]);
Ostream & writeCut(Ostream &os, const label cut, const scalar) const
Write cut description to Ostream.
static void updateLabels(const labelList &map, List< refineCell > &)
Update refine list from map. Used to update cell/face labels.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static point coord(const primitiveMesh &, const label cut, const scalar weight)
Return coordinate of cut (uses weight if edgeCut)
Patchify triangles based on orientation w.r.t other (triangulated or triangulatable) surfaces.
const vector & direction() const
Container with cells to refine. Refinement given as single direction.
forAllConstIters(mixture.phases(), phase)
static label cutPairToEdge(const primitiveMesh &, const label cut0, const label cut1)
Find mesh edge (or -1) between two cuts.
const dimensionedScalar e
Elementary charge.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeCuts(Ostream &os, const labelList &, const scalarField &) const
Write cut descriptions to Ostream.
void setSize(const label newSize)
Alias for resize(const label)
#define WarningInFunction
Report a warning using Foam::Warning.
Cell-face mesh analysis engine.