Go to the documentation of this file.
49 label newCellI = map[oldCellI];
73 label newMaster = map[iter.key()];
79 newSlave = map[iter()];
82 if ((newMaster != iter.key()) || (newSlave != iter()))
97 label newMaster = map[iter.key()];
103 newSlave = map[iter()];
109 <<
"master cell:" << iter.key()
110 <<
" has disappeared" <<
endl;
114 newCellPairs.insert(newMaster, newSlave);
118 cellPairs = newCellPairs;
132 bool changed =
false;
136 const label newCellI = map[iter.key()];
138 if (newCellI != iter.key())
153 const label newCellI = map[iter.key()];
157 newCells.
insert(newCellI);
181 return weight*pts[
e.end()] + (1-weight)*pts[
e.start()];
185 return pts[getVertex(
mesh,
cut)];
197 if (!isEdge(
mesh, cut0) && !isEdge(
mesh, cut1))
202 getVertex(
mesh, cut0),
203 getVertex(
mesh, cut1)
226 os <<
"edge:" << edgeI <<
e <<
' ' << coord(
cut, weight);
232 os <<
"vertex:" << vertI <<
' ' << coord(
cut, weight);
251 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.
#define forAll(list, i)
Loop across all elements in list.
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
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
void setSize(const label)
Reset size of List.
Container with cells to refine. Refinement given as single direction.
static label cutPairToEdge(const primitiveMesh &, const label cut0, const label cut1)
Find mesh edge (or -1) between two cuts.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const dimensionedScalar e
Elementary charge.
bool insert(const Key &key)
Insert a new entry.
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.
#define WarningInFunction
Report a warning using Foam::Warning.
Cell-face mesh analysis engine.