63 template<
class TrackingData>
70 template<
class TrackingData>
79 return layer_ == l.layer_;
83 template<
class TrackingData>
87 const label patchFacei,
94 template<
class TrackingData>
98 const label thisCelli,
107 layer_ = neighbourInfo.layer_ + 1;
111 if (layer_ > neighbourInfo.layer_)
113 weight_ += neighbourInfo.weight_;
124 template<
class TrackingData>
129 const label neighbourCelli,
137 layer_ = neighbourInfo.layer_ + 1;
140 if (layer_ > neighbourInfo.layer_)
142 weight_ = neighbourInfo.weight_;
153 template<
class TrackingData>
163 if (layer_ < neighbourInfo.layer_)
165 layer_ = neighbourInfo.layer_;
166 weight_ = neighbourInfo.weight_;
173 template<
class TrackingData>
186 inline bool Foam::meshPhiPreCorrectInfo::operator==
191 return layer_ == rhs.layer_ && weight_ == rhs.weight_;
195 inline bool Foam::meshPhiPreCorrectInfo::operator!=
200 return !(*
this == rhs);
214 return is >> l.layer_ >> l.weight_;
bool updateFace(const fvMesh &mesh, const labelPair &thisPatchAndFacei, const label neighbourCelli, const meshPhiPreCorrectInfo &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
scalar weight() const
Return the weight.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
meshPhiPreCorrectInfo()
Construct null.
bool operator==(const meshPhiPreCorrectInfo &) const
void transform(const fvPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
bool updateCell(const fvMesh &mesh, const label thisCelli, const labelPair &neighbourPatchAndFacei, const meshPhiPreCorrectInfo &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
An ordered pair of two objects of type <T> with first() and second() elements.
Istream & operator>>(Istream &, directionInfo &)
static const label labelMax
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Mesh data needed to do the Finite Volume discretisation.
Ostream & operator<<(Ostream &, const ensightPart &)
bool valid(TrackingData &td) const
Check whether the meshPhiPreCorrectInfo has been changed at all.
label layer() const
Return the layer index.
bool equal(const meshPhiPreCorrectInfo &, TrackingData &td) const
Test equality.
bool sameGeometry(const fvMesh &mesh, const meshPhiPreCorrectInfo &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for checking.