31 inline void Foam::meshPhiCorrectInfo::validateFace()
const 36 <<
"Face data requested from a non-face correction info" 42 inline void Foam::meshPhiCorrectInfo::validateCell()
const 47 <<
"Cell data requested from a non-cell correction info" 57 shape_(
shape::invalid),
65 delta_(s ==
shape::invalid ? NaN : 0)
99 template<
class TrackingData>
106 template<
class TrackingData>
119 template<
class TrackingData>
123 const label patchFacei,
130 template<
class TrackingData>
134 const label thisCelli,
141 const label neighbourPatchi = neighbourPatchAndFacei.
first();
142 const label neighbourFacei = neighbourPatchAndFacei.
second();
145 td.cellPci_[thisCelli];
147 neighbourPatchi == -1
148 ? td.internalFacePci_[neighbourFacei]
149 : td.patchFacePci_[neighbourPatchi][neighbourFacei];
160 neighbourPatchi == -1
161 ? (mesh.
owner()[neighbourFacei] == thisCelli ? +1 : -1)
175 template<
class TrackingData>
180 const label neighbourCelli,
186 const label thisPatchi = thisPatchAndFacei.
first();
187 const label thisFacei = thisPatchAndFacei.
second();
191 ? td.internalFacePci_[thisFacei]
192 : td.patchFacePci_[thisPatchi][thisFacei];
194 td.cellPci_[neighbourCelli];
206 ? (mesh.
owner()[thisFacei] == neighbourCelli ? +1 : -1)
211 *(td.dVdtError_[neighbourCelli] + neighbourInfo.
deltaDVdtError());
222 template<
class TrackingData>
244 template<
class TrackingData>
257 inline bool Foam::meshPhiCorrectInfo::operator==
262 return shape_ == rhs.shape_ && delta_ == rhs.delta_;
266 inline bool Foam::meshPhiCorrectInfo::operator!=
271 return !(*
this == rhs);
279 return os << static_cast<label>(l.shape_) <<
token::SPACE << l.delta_;
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
shape
Enumeration to define the mesh shape the info applies to.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
bool equal(const meshPhiCorrectInfo &, TrackingData &td) const
Test equality.
An ordered pair of two objects of type <T> with first() and second() elements.
Istream & operator>>(Istream &, directionInfo &)
bool updateCell(const fvMesh &mesh, const label thisCelli, const labelPair &neighbourPatchAndFacei, const meshPhiCorrectInfo &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
void transform(const fvPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
bool updateFace(const fvMesh &mesh, const labelPair &thisPatchAndFacei, const label neighbourCelli, const meshPhiCorrectInfo &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
meshPhiCorrectInfo()
Construct null.
scalar deltaPhi() const
Return the flux correction.
const labelUList & owner() const
Internal face owner.
const Type & second() const
Return second.
bool operator==(const meshPhiCorrectInfo &) const
bool valid(TrackingData &td) const
Check whether the meshPhiCorrectInfo has been changed at all.
Mesh data needed to do the Finite Volume discretisation.
Ostream & operator<<(Ostream &, const ensightPart &)
label layer() const
Return the layer index.
const Type & first() const
Return first.
scalar deltaDVdtError() const
Return the volume change rate error correction.
bool sameGeometry(const fvMesh &mesh, const meshPhiCorrectInfo &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for checking.