Go to the documentation of this file.
36 const primitiveMesh&
mesh,
42 forAll(edgeLabels, edgeLabelI)
44 label edgeI = edgeLabels[edgeLabelI];
46 if (
mesh.edges()[edgeI] == edge(v0, v1))
53 <<
"Cannot find an edge among " << edgeLabels <<
endl
54 <<
"that uses vertices " << v0
70 label a1 = (a + 1) % size;
83 <<
"Problem : a:" << a <<
" b:" <<
b <<
" size:" << size
105 <<
"Illegal edge label:" << edgeI
106 <<
" when projecting cut edge from cell " << celli
107 <<
" to face " << facei
127 return lowest(
f.size(), fpA, fpB);
163 fpA =
f.find(e0.start());
164 fpB =
f.find(e0.end());
166 if ((fpA != -1) && (fpB != -1))
168 return lowest(
f.size(), fpA, fpB);
181 fpA =
f.find(e1.start());
182 fpB =
f.find(e1.end());
184 if ((fpA != -1) && (fpB != -1))
186 return lowest(
f.size(), fpA, fpB);
190 <<
"Found connected faces " <<
mesh.
faces()[f0I] <<
" and "
192 <<
"But none seems to be connected to face " << facei
212 os << wDist.index_ << wDist.n_;
218 reinterpret_cast<const char*
>(&wDist.index_),
232 is >> wDist.index_ >> wDist.n_;
248 reinterpret_cast<char*
>(&wDist.index_),
List< label > labelList
A List of labels.
static label edgeToFaceIndex(const primitiveMesh &mesh, const label celli, const label facei, const label edgeI)
Given edge on hex cell find corresponding edge on face. Is either.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
streamFormat format() const noexcept
Get the current stream format.
label nEdges() const
Number of mesh edges.
Cmpt * data() noexcept
Return pointer to the first data element.
Istream & operator>>(Istream &, directionInfo &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
#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.
virtual bool endRawRead()=0
End of low-level raw binary read.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
std::enable_if< std::is_integral< T >::value, bool >::type checkLabelSize() const
Holds direction in which to split cell (in fact a local coordinate axes). Information is a label and ...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
errorManip< error > abort(error &err)
virtual const faceList & faces() const
Return raw faces.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool beginRawRead()=0
Start of low-level raw binary read.
std::enable_if< std::is_floating_point< T >::value, bool >::type checkScalarSize() const
const dimensionedScalar e
Elementary charge.
A face is a list of labels corresponding to mesh vertices.
label readRawLabel(Istream &is)
Read raw label from binary stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static constexpr direction nComponents
Number of components in this vector space.
virtual Istream & read(token &)=0
Return next token from stream.
Cell-face mesh analysis engine.