Go to the documentation of this file.
48 label oldCelli = refCell.
cellNo();
50 label newCelli = map[oldCelli];
74 label newMaster = map[iter.key()];
80 newSlave = map[iter.val()];
83 if ((newMaster != iter.key()) || (newSlave != iter.val()))
98 label newMaster = map[iter.key()];
102 if (iter.val() != -1)
104 newSlave = map[iter.val()];
110 <<
"master cell:" << iter.key()
111 <<
" has disappeared" <<
endl;
115 newCellPairs.insert(newMaster, newSlave);
119 cellPairs = newCellPairs;
133 bool changed =
false;
135 for (
const label celli :
cells)
137 const label newCelli = map[celli];
139 if (newCelli != celli)
152 for (
const label celli :
cells)
154 const label newCelli = map[celli];
158 newCells.insert(newCelli);
182 return weight*pts[
e.end()] + (1-weight)*pts[
e.start()];
186 return pts[getVertex(
mesh,
cut)];
198 if (!isEdge(
mesh, cut0) && !isEdge(
mesh, cut1))
203 getVertex(
mesh, cut0),
204 getVertex(
mesh, cut1)
223 label edgeI = getEdge(
cut);
227 os <<
"edge:" << edgeI <<
e <<
' ' << coord(
cut, weight);
231 label vertI = getVertex(
cut);
233 os <<
"vertex:" << vertI <<
' ' << coord(
cut, weight);
252 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.
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.