39 layer_(2*pointLayer - 1)
47 if ((layer_ + 1) % 2 != 0)
50 <<
"Point layer index requested from edge layer info"
54 return (layer_ + 1)/2;
63 <<
"Edge layer index requested from point layer info"
71 template<
class TrackingData>
78 template<
class TrackingData>
90 template<
class TrackingData>
94 const label patchFacei,
101 template<
class TrackingData>
114 layer_ = edgeInfo.layer_ + 1;
118 if (!edgeInfo.
valid(td) || layer_ < edgeInfo.layer_)
124 <<
"Layer information collided. This is not a layered mesh"
131 template<
class TrackingData>
143 layer_ = newPointInfo.layer_;
148 <<
"Layer information collided. This is not a layered mesh"
155 template<
class TrackingData>
163 layer_ = newPointInfo.layer_;
168 template<
class TrackingData>
181 layer_ = pointInfo.layer_ + 1;
190 template<
class TrackingData>
203 inline bool Foam::pointEdgeLayerInfo::operator==
208 return layer_ == rhs.layer_;
212 inline bool Foam::pointEdgeLayerInfo::operator!=
217 return !(*
this == rhs);
225 return os << l.layer_;
231 return is >> l.layer_;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to be used with PointEdgeWave which enumerates layers of points.
bool updateEdge(const polyMesh &mesh, const label edgei, const label pointi, const pointEdgeLayerInfo &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgei, const pointEdgeLayerInfo &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
bool sameGeometry(const pointEdgeLayerInfo &, const scalar tol, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
bool valid(TrackingData &td) const
Check whether info has been changed at all or.
bool equal(const pointEdgeLayerInfo &, TrackingData &td) const
Same (like operator==)
pointEdgeLayerInfo()
Construct null.
label pointLayer() const
Return the point layer index.
label edgeLayer() const
Return the edge layer index.
void transform(const polyPatch &patch, const label patchPointi, const transformer &transform, TrackingData &td)
Transform across an interface.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool valid(const PtrList< ModelType > &l)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Istream & operator>>(Istream &, pistonPointEdgeData &)
dimensionSet transform(const dimensionSet &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
static const label labelMax