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()))
94 Map<label> newCellPairs(2*cellPairs.size());
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);
171 const primitiveMesh&
mesh,
182 return weight*pts[
e.end()] + (1-weight)*pts[
e.start()];
186 return pts[getVertex(
mesh,
cut)];
193 const primitiveMesh&
mesh,
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]);
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
virtual const pointField & points() const
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & writeCut(Ostream &os, const label cut, const scalar) const
static void updateLabels(const labelList &map, List< refineCell > &)
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Ostream & endl(Ostream &os)
const edgeList & edges() const
A HashTable with keys but without contents that is similar to std::unordered_set.
Generic templated field type.
void setSize(const label n)
static point coord(const primitiveMesh &, const label cut, const scalar weight)
Patchify triangles based on orientation w.r.t other (triangulated or triangulatable) surfaces.
const vector & direction() const
OBJstream os(runTime.globalPath()/outputName)
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)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const dimensionedScalar e
bool insert(const Key &key)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys and label hasher.
Ostream & writeCuts(Ostream &os, const labelList &, const scalarField &) const
#define WarningInFunction
Cell-face mesh analysis engine.