mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tetPtI -> tetPti
This commit is contained in:
@ -34,7 +34,7 @@ Foam::tetIndices::tetIndices()
|
||||
faceBasePtI_(-1),
|
||||
facePtAI_(-1),
|
||||
facePtBI_(-1),
|
||||
tetPtI_(-1)
|
||||
tetPti_(-1)
|
||||
{}
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ Foam::tetIndices::tetIndices
|
||||
faceBasePtI_(faceBasePtI),
|
||||
facePtAI_(facePtAI),
|
||||
facePtBI_(facePtBI),
|
||||
tetPtI_(tetPtI)
|
||||
tetPti_(tetPtI)
|
||||
{}
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@ Foam::tetIndices::tetIndices
|
||||
faceBasePtI_(-1),
|
||||
facePtAI_(-1),
|
||||
facePtBI_(-1),
|
||||
tetPtI_(tetPtI)
|
||||
tetPti_(tetPtI)
|
||||
{
|
||||
const faceList& pFaces = mesh.faces();
|
||||
const labelList& pOwner = mesh.faceOwner();
|
||||
@ -81,7 +81,7 @@ Foam::tetIndices::tetIndices
|
||||
|
||||
faceBasePtI_ = mesh.tetBasePtIs()[facei_];
|
||||
|
||||
label facePtI = (tetPtI_ + faceBasePtI_) % f.size();
|
||||
label facePtI = (tetPti_ + faceBasePtI_) % f.size();
|
||||
label otherFacePtI = f.fcIndex(facePtI);
|
||||
|
||||
if (own)
|
||||
|
||||
@ -104,7 +104,7 @@ class tetIndices
|
||||
|
||||
//- Point on the face, *relative to the base point*, which
|
||||
// characterises this tet on the face.
|
||||
label tetPtI_;
|
||||
label tetPti_;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -23,8 +23,6 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
Foam::label Foam::tetIndices::cell() const
|
||||
@ -59,7 +57,7 @@ Foam::label Foam::tetIndices::facePtB() const
|
||||
|
||||
Foam::label Foam::tetIndices::tetPt() const
|
||||
{
|
||||
return tetPtI_;
|
||||
return tetPti_;
|
||||
}
|
||||
|
||||
|
||||
@ -185,7 +183,7 @@ Foam::label& Foam::tetIndices::facePtB()
|
||||
|
||||
Foam::label& Foam::tetIndices::tetPt()
|
||||
{
|
||||
return tetPtI_;
|
||||
return tetPti_;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -34,7 +34,6 @@ void Foam::wallBoundedParticle::patchInteraction
|
||||
const scalar trackFraction
|
||||
)
|
||||
{
|
||||
// typedef TrackData::CloudType cloudType;
|
||||
typedef typename TrackData::cloudType::particleType particleType;
|
||||
|
||||
particleType& p = static_cast<particleType&>(*this);
|
||||
@ -45,7 +44,7 @@ void Foam::wallBoundedParticle::patchInteraction
|
||||
label origFacei = facei_;
|
||||
label patchi = patch(facei_);
|
||||
|
||||
// No action taken for tetPtI_ for tetFacei_ here, handled by
|
||||
// No action taken for tetPti_ for tetFacei_ here, handled by
|
||||
// patch interaction call or later during processor transfer.
|
||||
|
||||
|
||||
@ -175,7 +174,7 @@ Foam::scalar Foam::wallBoundedParticle::trackToEdge
|
||||
// Check angle to nbrCell tet. Is it in the direction of the
|
||||
// endposition? I.e. since volume of nbr tet is positive the
|
||||
// tracking direction should be into the tet.
|
||||
tetIndices nbrTi(nbrCelli, tetFacei_, tetPtI_, mesh_);
|
||||
tetIndices nbrTi(nbrCelli, tetFacei_, tetPti_, mesh_);
|
||||
if ((nbrTi.faceTri(mesh_).normal() & (endPosition-position())) < 0)
|
||||
{
|
||||
// Change into nbrCell. No need to change tetFace, tetPt.
|
||||
|
||||
@ -468,7 +468,7 @@ void Foam::DSMCCloud<ParcelType>::addNewParcel
|
||||
const scalar Ei,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId
|
||||
)
|
||||
{
|
||||
@ -480,7 +480,7 @@ void Foam::DSMCCloud<ParcelType>::addNewParcel
|
||||
Ei,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId
|
||||
);
|
||||
|
||||
|
||||
@ -455,7 +455,7 @@ public:
|
||||
const scalar Ei,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId
|
||||
);
|
||||
|
||||
|
||||
@ -183,7 +183,7 @@ public:
|
||||
const scalar Ei,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId
|
||||
);
|
||||
|
||||
|
||||
@ -60,11 +60,11 @@ inline Foam::DSMCParcel<ParcelType>::DSMCParcel
|
||||
const scalar Ei,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPti),
|
||||
U_(U),
|
||||
Ei_(Ei),
|
||||
typeId_(typeId)
|
||||
|
||||
@ -44,7 +44,7 @@ Foam::dsmcParcel::dsmcParcel
|
||||
const scalar Ei,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId
|
||||
)
|
||||
:
|
||||
@ -56,7 +56,7 @@ Foam::dsmcParcel::dsmcParcel
|
||||
Ei,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId
|
||||
)
|
||||
{}
|
||||
|
||||
@ -68,11 +68,11 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label index = 0
|
||||
)
|
||||
:
|
||||
particle(mesh, position, celli, tetFacei, tetPtI),
|
||||
particle(mesh, position, celli, tetFacei, tetPti),
|
||||
index_(index)
|
||||
{}
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ Foam::particle::particle
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
mesh_(mesh),
|
||||
@ -59,7 +59,7 @@ Foam::particle::particle
|
||||
facei_(-1),
|
||||
stepFraction_(0.0),
|
||||
tetFacei_(tetFacei),
|
||||
tetPtI_(tetPtI),
|
||||
tetPti_(tetPti),
|
||||
origProc_(Pstream::myProcNo()),
|
||||
origId_(getNewParticleID())
|
||||
{}
|
||||
@ -79,7 +79,7 @@ Foam::particle::particle
|
||||
facei_(-1),
|
||||
stepFraction_(0.0),
|
||||
tetFacei_(-1),
|
||||
tetPtI_(-1),
|
||||
tetPti_(-1),
|
||||
origProc_(Pstream::myProcNo()),
|
||||
origId_(getNewParticleID())
|
||||
{
|
||||
@ -98,7 +98,7 @@ Foam::particle::particle(const particle& p)
|
||||
facei_(p.facei_),
|
||||
stepFraction_(p.stepFraction_),
|
||||
tetFacei_(p.tetFacei_),
|
||||
tetPtI_(p.tetPtI_),
|
||||
tetPti_(p.tetPti_),
|
||||
origProc_(p.origProc_),
|
||||
origId_(p.origId_)
|
||||
{}
|
||||
@ -112,7 +112,7 @@ Foam::particle::particle(const particle& p, const polyMesh& mesh)
|
||||
facei_(p.facei_),
|
||||
stepFraction_(p.stepFraction_),
|
||||
tetFacei_(p.tetFacei_),
|
||||
tetPtI_(p.tetPtI_),
|
||||
tetPti_(p.tetPti_),
|
||||
origProc_(p.origProc_),
|
||||
origId_(p.origId_)
|
||||
{}
|
||||
|
||||
@ -156,7 +156,7 @@ protected:
|
||||
//- Index of the point on the face that defines the decomposed
|
||||
// tet that the particle is in. Relative to the face base
|
||||
// point.
|
||||
label tetPtI_;
|
||||
label tetPti_;
|
||||
|
||||
//- Originating processor id
|
||||
label origProc_;
|
||||
@ -189,7 +189,7 @@ protected:
|
||||
const label tetPlaneBasePtI,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const scalar tol
|
||||
) const;
|
||||
|
||||
@ -203,7 +203,7 @@ protected:
|
||||
const label tetPlaneBasePtI,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const scalar tol
|
||||
) const;
|
||||
|
||||
@ -211,12 +211,12 @@ protected:
|
||||
inline void tetNeighbour(label triI);
|
||||
|
||||
//- Cross the from the given face across the given edge of the
|
||||
// given cell to find the resulting face and tetPtI
|
||||
// given cell to find the resulting face and tetPti
|
||||
inline void crossEdgeConnectedFace
|
||||
(
|
||||
const label& celli,
|
||||
label& tetFacei,
|
||||
label& tetPtI,
|
||||
label& tetPti,
|
||||
const edge& e
|
||||
);
|
||||
|
||||
@ -316,7 +316,7 @@ public:
|
||||
DefinePropertyList
|
||||
(
|
||||
"(Px Py Pz) celli facei stepFraction "
|
||||
"tetFacei tetPtI origProc origId"
|
||||
"tetFacei tetPti origProc origId"
|
||||
);
|
||||
|
||||
//- Cumulative particle counter - used to provode unique ID
|
||||
@ -343,10 +343,10 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components, tetFacei_ and tetPtI_ are not
|
||||
//- Construct from components, tetFacei_ and tetPti_ are not
|
||||
// supplied so they will be deduced by a search
|
||||
particle
|
||||
(
|
||||
|
||||
@ -53,7 +53,7 @@ inline void Foam::particle::findTris
|
||||
tetPlaneBasePtIs[i],
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
tol
|
||||
);
|
||||
|
||||
@ -74,7 +74,7 @@ inline Foam::scalar Foam::particle::tetLambda
|
||||
const label tetPlaneBasePtI,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const scalar tol
|
||||
) const
|
||||
{
|
||||
@ -91,7 +91,7 @@ inline Foam::scalar Foam::particle::tetLambda
|
||||
tetPlaneBasePtI,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
tol
|
||||
);
|
||||
}
|
||||
@ -146,7 +146,7 @@ inline Foam::scalar Foam::particle::movingTetLambda
|
||||
const label tetPlaneBasePtI,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const scalar tol
|
||||
) const
|
||||
{
|
||||
@ -169,7 +169,7 @@ inline Foam::scalar Foam::particle::movingTetLambda
|
||||
vector n0 = Zero;
|
||||
|
||||
{
|
||||
tetIndices tetIs(celli, tetFacei, tetPtI, mesh_);
|
||||
tetIndices tetIs(celli, tetFacei, tetPti, mesh_);
|
||||
|
||||
// Tet at timestep start
|
||||
tetPointRef tet00 = tetIs.oldTet(mesh_);
|
||||
@ -337,7 +337,7 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
label facePtI = (tetPtI_ + tetBasePtI) % f.size();
|
||||
label facePtI = (tetPti_ + tetBasePtI) % f.size();
|
||||
label otherFacePtI = f.fcIndex(facePtI);
|
||||
|
||||
switch (triI)
|
||||
@ -348,7 +348,7 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
// neighbour cell over tetFacei
|
||||
|
||||
// Modification of celli_ will happen by other indexing,
|
||||
// tetFacei_ and tetPtI don't change.
|
||||
// tetFacei_ and tetPti don't change.
|
||||
|
||||
break;
|
||||
}
|
||||
@ -358,7 +358,7 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
(
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
Foam::edge(f[facePtI], f[otherFacePtI])
|
||||
);
|
||||
|
||||
@ -368,9 +368,9 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
{
|
||||
if (own)
|
||||
{
|
||||
if (tetPtI_ < f.size() - 2)
|
||||
if (tetPti_ < f.size() - 2)
|
||||
{
|
||||
tetPtI_ = f.fcIndex(tetPtI_);
|
||||
tetPti_ = f.fcIndex(tetPti_);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -378,16 +378,16 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
(
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
Foam::edge(f[tetBasePtI], f[otherFacePtI])
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tetPtI_ > 1)
|
||||
if (tetPti_ > 1)
|
||||
{
|
||||
tetPtI_ = f.rcIndex(tetPtI_);
|
||||
tetPti_ = f.rcIndex(tetPti_);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -395,7 +395,7 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
(
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
Foam::edge(f[tetBasePtI], f[facePtI])
|
||||
);
|
||||
}
|
||||
@ -407,9 +407,9 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
{
|
||||
if (own)
|
||||
{
|
||||
if (tetPtI_ > 1)
|
||||
if (tetPti_ > 1)
|
||||
{
|
||||
tetPtI_ = f.rcIndex(tetPtI_);
|
||||
tetPti_ = f.rcIndex(tetPti_);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -417,16 +417,16 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
(
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
Foam::edge(f[tetBasePtI], f[facePtI])
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tetPtI_ < f.size() - 2)
|
||||
if (tetPti_ < f.size() - 2)
|
||||
{
|
||||
tetPtI_ = f.fcIndex(tetPtI_);
|
||||
tetPti_ = f.fcIndex(tetPti_);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -434,7 +434,7 @@ inline void Foam::particle::tetNeighbour(label triI)
|
||||
(
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
Foam::edge(f[tetBasePtI], f[otherFacePtI])
|
||||
);
|
||||
}
|
||||
@ -458,7 +458,7 @@ inline void Foam::particle::crossEdgeConnectedFace
|
||||
(
|
||||
const label& celli,
|
||||
label& tetFacei,
|
||||
label& tetPtI,
|
||||
label& tetPti,
|
||||
const edge& e
|
||||
)
|
||||
{
|
||||
@ -542,17 +542,17 @@ inline void Foam::particle::crossEdgeConnectedFace
|
||||
{
|
||||
// The point is the base point, so this is first tet
|
||||
// in the face circulation
|
||||
tetPtI = 1;
|
||||
tetPti = 1;
|
||||
}
|
||||
else if (eIndex == otherFace.size() - 1)
|
||||
{
|
||||
// The point is the last before the base point, so
|
||||
// this is the last tet in the face circulation
|
||||
tetPtI = otherFace.size() - 2;
|
||||
tetPti = otherFace.size() - 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
tetPtI = eIndex;
|
||||
tetPti = eIndex;
|
||||
}
|
||||
|
||||
break;
|
||||
@ -621,19 +621,19 @@ inline Foam::label& Foam::particle::tetFace()
|
||||
|
||||
inline Foam::label Foam::particle::tetPt() const
|
||||
{
|
||||
return tetPtI_;
|
||||
return tetPti_;
|
||||
}
|
||||
|
||||
|
||||
inline Foam::label& Foam::particle::tetPt()
|
||||
{
|
||||
return tetPtI_;
|
||||
return tetPti_;
|
||||
}
|
||||
|
||||
|
||||
inline Foam::tetIndices Foam::particle::currentTetIndices() const
|
||||
{
|
||||
return tetIndices(celli_, tetFacei_, tetPtI_, mesh_);
|
||||
return tetIndices(celli_, tetFacei_, tetPti_, mesh_);
|
||||
}
|
||||
|
||||
|
||||
@ -676,21 +676,22 @@ inline void Foam::particle::initCellFacePt()
|
||||
position_,
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_
|
||||
tetPti_
|
||||
);
|
||||
|
||||
if (celli_ == -1)
|
||||
if (debug && celli_ == -1)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "cell, tetFace and tetPt search failure at position "
|
||||
<< position_ << abort(FatalError);
|
||||
WarningInFunction
|
||||
<< "cell, tetFace and tetPt search failure for position "
|
||||
<< position_
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mesh_.findTetFacePt(celli_, position_, tetFacei_, tetPtI_);
|
||||
mesh_.findTetFacePt(celli_, position_, tetFacei_, tetPti_);
|
||||
|
||||
if (tetFacei_ == -1 || tetPtI_ == -1)
|
||||
if (tetFacei_ == -1 || tetPti_ == -1)
|
||||
{
|
||||
label oldCelli = celli_;
|
||||
|
||||
@ -699,43 +700,45 @@ inline void Foam::particle::initCellFacePt()
|
||||
position_,
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_
|
||||
tetPti_
|
||||
);
|
||||
|
||||
if (celli_ == -1 || tetFacei_ == -1 || tetPtI_ == -1)
|
||||
if (celli_ == -1 || tetFacei_ == -1 || tetPti_ == -1)
|
||||
{
|
||||
// The particle has entered this function with a cell
|
||||
// number, but hasn't been able to find a cell to
|
||||
// occupy.
|
||||
// The particle has entered this function with a cell number,
|
||||
// but hasn't been able to find a cell to occupy.
|
||||
|
||||
if (!mesh_.pointInCellBB(position_, oldCelli, 0.1))
|
||||
{
|
||||
// If the position is not inside the (slightly
|
||||
// extended) bound-box of the cell that it thought
|
||||
// it should be in, then this is considered an
|
||||
// error.
|
||||
// If the position is not inside the (slightly extended)
|
||||
// bound-box of the cell that it thought it should be in,
|
||||
// then this is considered an error.
|
||||
|
||||
FatalErrorInFunction
|
||||
<< "position " << position_ << nl
|
||||
<< " for requested cell " << oldCelli << nl
|
||||
<< " If this is a restart or "
|
||||
"reconstruction/decomposition etc. it is likely that"
|
||||
" the write precision is not sufficient.\n"
|
||||
" Either increase 'writePrecision' or "
|
||||
"set 'writeFormat' to 'binary'"
|
||||
<< abort(FatalError);
|
||||
if (debug)
|
||||
{
|
||||
WarningInFunction
|
||||
<< "position " << position_
|
||||
<< " not in specified cell " << oldCelli
|
||||
<< " with centre " << mesh_.cellCentres()[oldCelli]
|
||||
<< endl;
|
||||
}
|
||||
|
||||
// The position is in the (slightly extended)
|
||||
// bound-box of the cell. This situation may arise
|
||||
// because the face decomposition of the cell is not
|
||||
// the same as when the particle acquired the cell
|
||||
// index. For example, it has been read into a mesh
|
||||
// that has made a different face base-point decision
|
||||
// for a boundary face and now this particle is in a
|
||||
// position that is not in the mesh. Gradually move
|
||||
// the particle towards the centre of the cell that it
|
||||
// thought that it was in.
|
||||
celli_ = -1;
|
||||
tetFacei_ = -1;
|
||||
tetPti_ = -1;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// The position is in the (slightly extended) bound-box of the
|
||||
// cell. This situation may arise because the face
|
||||
// decomposition of the cell is not the same as when the
|
||||
// particle acquired the cell index. For example, it has been
|
||||
// read into a mesh that has made a different face base-point
|
||||
// decision for a boundary face and now this particle is in a
|
||||
// position that is not in the mesh. Gradually move the
|
||||
// particle towards the centre of the cell that it thought that
|
||||
// it was in.
|
||||
|
||||
celli_ = oldCelli;
|
||||
|
||||
@ -756,7 +759,7 @@ inline void Foam::particle::initCellFacePt()
|
||||
celli_,
|
||||
newPosition,
|
||||
tetFacei_,
|
||||
tetPtI_
|
||||
tetPti_
|
||||
);
|
||||
|
||||
iterNo++;
|
||||
@ -777,7 +780,7 @@ inline void Foam::particle::initCellFacePt()
|
||||
<< " to " << newPosition
|
||||
<< " in cell " << celli_
|
||||
<< " tetFace " << tetFacei_
|
||||
<< " tetPt " << tetPtI_ << nl
|
||||
<< " tetPt " << tetPti_ << nl
|
||||
<< " (A fraction of "
|
||||
<< 1.0 - mag(cC - newPosition)/mag(cC - position_)
|
||||
<< " of the distance to the cell centre)"
|
||||
@ -797,7 +800,7 @@ inline void Foam::particle::initCellFacePt()
|
||||
<< " Found"
|
||||
<< " cell " << celli_
|
||||
<< " tetFace " << tetFacei_
|
||||
<< " tetPt " << tetPtI_ << nl
|
||||
<< " tetPt " << tetPti_ << nl
|
||||
<< " This is a different cell to that which was supplied"
|
||||
<< " (" << oldCelli << ")." << nl
|
||||
<< endl;
|
||||
|
||||
@ -51,7 +51,7 @@ Foam::particle::particle(const polyMesh& mesh, Istream& is, bool readFields)
|
||||
facei_(-1),
|
||||
stepFraction_(0.0),
|
||||
tetFacei_(-1),
|
||||
tetPtI_(-1),
|
||||
tetPti_(-1),
|
||||
origProc_(Pstream::myProcNo()),
|
||||
origId_(-1)
|
||||
{
|
||||
@ -64,7 +64,7 @@ Foam::particle::particle(const polyMesh& mesh, Istream& is, bool readFields)
|
||||
is >> facei_
|
||||
>> stepFraction_
|
||||
>> tetFacei_
|
||||
>> tetPtI_
|
||||
>> tetPti_
|
||||
>> origProc_
|
||||
>> origId_;
|
||||
}
|
||||
@ -111,7 +111,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const particle& p)
|
||||
<< token::SPACE << p.facei_
|
||||
<< token::SPACE << p.stepFraction_
|
||||
<< token::SPACE << p.tetFacei_
|
||||
<< token::SPACE << p.tetPtI_
|
||||
<< token::SPACE << p.tetPti_
|
||||
<< token::SPACE << p.origProc_
|
||||
<< token::SPACE << p.origId_;
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ void Foam::particle::correctAfterParallelTransfer
|
||||
tetFacei_ = facei_ + ppp.start();
|
||||
|
||||
// Faces either side of a coupled patch have matched base indices,
|
||||
// tetPtI is specified relative to the base point, already and
|
||||
// tetPti is specified relative to the base point, already and
|
||||
// opposite circulation directions by design, so if the vertices
|
||||
// are:
|
||||
// source:
|
||||
@ -108,7 +108,7 @@ void Foam::particle::correctAfterParallelTransfer
|
||||
// This relationship can be verified for other points and sizes of
|
||||
// face.
|
||||
|
||||
tetPtI_ = mesh_.faces()[tetFacei_].size() - 1 - tetPtI_;
|
||||
tetPti_ = mesh_.faces()[tetFacei_].size() - 1 - tetPti_;
|
||||
|
||||
// Reset the face index for the next tracking operation
|
||||
if (stepFraction_ > (1.0 - SMALL))
|
||||
@ -226,7 +226,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
// Pout<< "stepFraction " << stepFraction_ << nl
|
||||
// << "celli " << celli_ << nl
|
||||
// << "tetFacei " << tetFacei_ << nl
|
||||
// << "tetPtI " << tetPtI_
|
||||
// << "tetPti " << tetPti_
|
||||
// << endl;
|
||||
|
||||
scalar trackFraction = 0.0;
|
||||
@ -245,10 +245,10 @@ Foam::scalar Foam::particle::trackToFace
|
||||
// + pA and pB are the remaining points on the face, such that
|
||||
// the circulation, {basePt, pA, pB} produces a positive
|
||||
// normal by the right-hand rule. pA and pB are chosen from
|
||||
// tetPtI_ do accomplish this depending if the cell owns the
|
||||
// face, tetPtI_ is the vertex that characterises the tet, and
|
||||
// tetPti_ do accomplish this depending if the cell owns the
|
||||
// face, tetPti_ is the vertex that characterises the tet, and
|
||||
// is the first vertex on the tet when circulating around the
|
||||
// face. Therefore, the same tetPtI represents the same face
|
||||
// face. Therefore, the same tetPti represents the same face
|
||||
// triangle for both the owner and neighbour cell.
|
||||
//
|
||||
// Each tet has its four triangles represented in the same order:
|
||||
@ -309,7 +309,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
|
||||
label basePtI = f[tetBasePtI];
|
||||
|
||||
label facePtI = (tetPtI_ + tetBasePtI) % f.size();
|
||||
label facePtI = (tetPti_ + tetBasePtI) % f.size();
|
||||
label otherFacePtI = f.fcIndex(facePtI);
|
||||
|
||||
label fPtAI = -1;
|
||||
@ -430,7 +430,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
tetPlaneBasePtIs[tI],
|
||||
celli_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
lambdaDistanceTolerance
|
||||
);
|
||||
|
||||
@ -457,7 +457,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
tetBasePtI,
|
||||
fPtAI,
|
||||
fPtBI,
|
||||
tetPtI_
|
||||
tetPti_
|
||||
);
|
||||
}
|
||||
else if (triI > 0)
|
||||
@ -470,7 +470,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
// << " " << celli_
|
||||
// << " " << facei_
|
||||
// << " " << tetFacei_
|
||||
// << " " << tetPtI_
|
||||
// << " " << tetPti_
|
||||
// << " " << triI
|
||||
// << " " << lambdaMin
|
||||
// << " " << trackFraction
|
||||
@ -479,7 +479,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
// Pout<< "# Tracking loop tet "
|
||||
// << origId_ << " " << origProc_<< nl
|
||||
// << "# face: " << tetFacei_ << nl
|
||||
// << "# tetPtI: " << tetPtI_ << nl
|
||||
// << "# tetPti: " << tetPti_ << nl
|
||||
// << "# tetBasePtI: " << mesh_.tetBasePtIs()[tetFacei_] << nl
|
||||
// << "# tet.mag(): " << tet.mag() << nl
|
||||
// << "# tet.quality(): " << tet.quality()
|
||||
@ -555,7 +555,7 @@ Foam::scalar Foam::particle::trackToFace
|
||||
label origFacei = facei_;
|
||||
label patchi = patch(facei_);
|
||||
|
||||
// No action taken for tetPtI_ for tetFacei_ here, handled by
|
||||
// No action taken for tetPti_ for tetFacei_ here, handled by
|
||||
// patch interaction call or later during processor transfer.
|
||||
|
||||
if
|
||||
@ -1000,8 +1000,8 @@ void Foam::particle::hitCyclicPatch
|
||||
|
||||
tetFacei_ = facei_;
|
||||
|
||||
// See note in correctAfterParallelTransfer for tetPtI_ addressing.
|
||||
tetPtI_ = mesh_.faces()[tetFacei_].size() - 1 - tetPtI_;
|
||||
// See note in correctAfterParallelTransfer for tetPti_ addressing.
|
||||
tetPti_ = mesh_.faces()[tetFacei_].size() - 1 - tetPti_;
|
||||
|
||||
const cyclicPolyPatch& receiveCpp = cpp.neighbPatch();
|
||||
label patchFacei = receiveCpp.whichFace(facei_);
|
||||
@ -1053,10 +1053,15 @@ void Foam::particle::hitCyclicAMIPatch
|
||||
|
||||
if (patchFacei < 0)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
// If the patch face of the particle is not known assume that
|
||||
// the particle is lost and to be deleted
|
||||
td.keepParticle = false;
|
||||
|
||||
WarningInFunction
|
||||
<< "Particle lost across " << cyclicAMIPolyPatch::typeName
|
||||
<< " patches " << cpp.name() << " and " << receiveCpp.name()
|
||||
<< " at position " << position_ << abort(FatalError);
|
||||
<< " at position " << position_
|
||||
<< endl;
|
||||
}
|
||||
|
||||
// Convert face index into global numbering
|
||||
@ -1066,8 +1071,8 @@ void Foam::particle::hitCyclicAMIPatch
|
||||
|
||||
tetFacei_ = facei_;
|
||||
|
||||
// See note in correctAfterParallelTransfer for tetPtI_ addressing.
|
||||
tetPtI_ = mesh_.faces()[tetFacei_].size() - 1 - tetPtI_;
|
||||
// See note in correctAfterParallelTransfer for tetPti_ addressing.
|
||||
tetPti_ = mesh_.faces()[tetFacei_].size() - 1 - tetPti_;
|
||||
|
||||
// Now the particle is on the receiving side
|
||||
|
||||
|
||||
@ -64,10 +64,10 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
particle(mesh, position, celli, tetFacei, tetPtI)
|
||||
particle(mesh, position, celli, tetFacei, tetPti)
|
||||
{}
|
||||
|
||||
//- Construct from components, with searching for tetFace and
|
||||
|
||||
@ -171,7 +171,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
@ -181,7 +181,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -66,10 +66,10 @@ inline Foam::CollidingParcel<ParcelType>::CollidingParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(owner, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(owner, position, celli, tetFacei, tetPti),
|
||||
f_(Zero),
|
||||
angularMomentum_(Zero),
|
||||
torque_(Zero),
|
||||
@ -84,7 +84,7 @@ inline Foam::CollidingParcel<ParcelType>::CollidingParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -102,7 +102,7 @@ inline Foam::CollidingParcel<ParcelType>::CollidingParcel
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId,
|
||||
nParticle0,
|
||||
d0,
|
||||
|
||||
@ -328,7 +328,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
@ -338,7 +338,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -76,10 +76,10 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(owner, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(owner, position, celli, tetFacei, tetPti),
|
||||
active_(true),
|
||||
typeId_(-1),
|
||||
nParticle_(0),
|
||||
@ -103,7 +103,7 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -112,7 +112,7 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
|
||||
const constantProperties& constProps
|
||||
)
|
||||
:
|
||||
ParcelType(owner, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(owner, position, celli, tetFacei, tetPti),
|
||||
active_(true),
|
||||
typeId_(typeId),
|
||||
nParticle_(nParticle0),
|
||||
|
||||
@ -189,7 +189,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
@ -199,7 +199,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -32,10 +32,10 @@ inline Foam::MPPICParcel<ParcelType>::MPPICParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(owner, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(owner, position, celli, tetFacei, tetPti),
|
||||
UCorrect_(Zero)
|
||||
{}
|
||||
|
||||
@ -47,7 +47,7 @@ inline Foam::MPPICParcel<ParcelType>::MPPICParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -63,7 +63,7 @@ inline Foam::MPPICParcel<ParcelType>::MPPICParcel
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId,
|
||||
nParticle0,
|
||||
d0,
|
||||
|
||||
@ -278,7 +278,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
|
||||
@ -289,7 +289,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -71,10 +71,10 @@ inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPti),
|
||||
YGas_(0),
|
||||
YLiquid_(0),
|
||||
YSolid_(0),
|
||||
@ -89,7 +89,7 @@ inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -111,7 +111,7 @@ inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId,
|
||||
nParticle0,
|
||||
d0,
|
||||
|
||||
@ -232,7 +232,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
@ -242,7 +242,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -66,10 +66,10 @@ inline Foam::ReactingParcel<ParcelType>::ReactingParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPti),
|
||||
mass0_(0.0),
|
||||
Y_(0),
|
||||
pc_(0.0)
|
||||
@ -83,7 +83,7 @@ inline Foam::ReactingParcel<ParcelType>::ReactingParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -102,7 +102,7 @@ inline Foam::ReactingParcel<ParcelType>::ReactingParcel
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId,
|
||||
nParticle0,
|
||||
d0,
|
||||
|
||||
@ -288,7 +288,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
@ -298,7 +298,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -77,10 +77,10 @@ inline Foam::ThermoParcel<ParcelType>::ThermoParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPti),
|
||||
T_(0.0),
|
||||
Cp_(0.0),
|
||||
Tc_(0.0),
|
||||
@ -95,7 +95,7 @@ inline Foam::ThermoParcel<ParcelType>::ThermoParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -113,7 +113,7 @@ inline Foam::ThermoParcel<ParcelType>::ThermoParcel
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId,
|
||||
nParticle0,
|
||||
d0,
|
||||
|
||||
@ -320,13 +320,13 @@ void Foam::CellZoneInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
position = positions_[parcelI];
|
||||
cellOwner = injectorCells_[parcelI];
|
||||
tetFacei = injectorTetFaces_[parcelI];
|
||||
tetPtI = injectorTetPts_[parcelI];
|
||||
tetPti = injectorTetPts_[parcelI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -157,7 +157,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -241,7 +241,7 @@ void Foam::ConeInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
const label i = parcelI % positionAxis_.size();
|
||||
@ -249,7 +249,7 @@ void Foam::ConeInjection<CloudType>::setPositionAndCell
|
||||
position = positionAxis_[i].first();
|
||||
cellOwner = injectorCells_[i];
|
||||
tetFacei = injectorTetFaces_[i];
|
||||
tetPtI = injectorTetPts_[i];
|
||||
tetPti = injectorTetPts_[i];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -172,7 +172,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -49,7 +49,7 @@ void Foam::ConeNozzleInjection<CloudType>::setInjectionMethod()
|
||||
(
|
||||
injectorCell_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
position_,
|
||||
false
|
||||
);
|
||||
@ -111,7 +111,7 @@ Foam::ConeNozzleInjection<CloudType>::ConeNozzleInjection
|
||||
position_(this->coeffDict().lookup("position")),
|
||||
injectorCell_(-1),
|
||||
tetFacei_(-1),
|
||||
tetPtI_(-1),
|
||||
tetPti_(-1),
|
||||
direction_(this->coeffDict().lookup("direction")),
|
||||
parcelsPerSecond_
|
||||
(
|
||||
@ -215,7 +215,7 @@ Foam::ConeNozzleInjection<CloudType>::ConeNozzleInjection
|
||||
position_(im.position_),
|
||||
injectorCell_(im.injectorCell_),
|
||||
tetFacei_(im.tetFacei_),
|
||||
tetPtI_(im.tetPtI_),
|
||||
tetPti_(im.tetPti_),
|
||||
direction_(im.direction_),
|
||||
parcelsPerSecond_(im.parcelsPerSecond_),
|
||||
flowRateProfile_(im.flowRateProfile_),
|
||||
@ -252,7 +252,7 @@ void Foam::ConeNozzleInjection<CloudType>::updateMesh()
|
||||
(
|
||||
injectorCell_,
|
||||
tetFacei_,
|
||||
tetPtI_,
|
||||
tetPti_,
|
||||
position_
|
||||
);
|
||||
}
|
||||
@ -316,7 +316,7 @@ void Foam::ConeNozzleInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
cachedRandom& rndGen = this->owner().rndGen();
|
||||
@ -331,7 +331,7 @@ void Foam::ConeNozzleInjection<CloudType>::setPositionAndCell
|
||||
position = position_;
|
||||
cellOwner = injectorCell_;
|
||||
tetFacei = tetFacei_;
|
||||
tetPtI = tetPtI_;
|
||||
tetPti = tetPti_;
|
||||
|
||||
break;
|
||||
}
|
||||
@ -346,7 +346,7 @@ void Foam::ConeNozzleInjection<CloudType>::setPositionAndCell
|
||||
(
|
||||
cellOwner,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
position,
|
||||
false
|
||||
);
|
||||
|
||||
@ -131,7 +131,7 @@ private:
|
||||
label tetFacei_;
|
||||
|
||||
//- Index of tet point for injector cell
|
||||
label tetPtI_;
|
||||
label tetPti_;
|
||||
|
||||
//- Injector direction []
|
||||
vector direction_;
|
||||
@ -244,7 +244,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -201,13 +201,13 @@ void Foam::FieldActivatedInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
position = positions_[parcelI];
|
||||
cellOwner = injectorCells_[parcelI];
|
||||
tetFacei = injectorTetFaces_[parcelI];
|
||||
tetPtI = injectorTetPts_[parcelI];
|
||||
tetPti = injectorTetPts_[parcelI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -174,7 +174,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -446,7 +446,7 @@ void Foam::InflationInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
position = newParticles_[parcelI].first().first();
|
||||
@ -455,7 +455,7 @@ void Foam::InflationInjection<CloudType>::setPositionAndCell
|
||||
(
|
||||
cellOwner,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
position,
|
||||
false
|
||||
);
|
||||
|
||||
@ -170,7 +170,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -73,7 +73,7 @@ bool Foam::InjectionModel<CloudType>::prepareForNextTimeStep
|
||||
}
|
||||
else
|
||||
{
|
||||
// injection should have started, but not sufficient volume to
|
||||
// Injection should have started, but not sufficient volume to
|
||||
// produce (at least) 1 parcel - hold value of timeStep0_
|
||||
validInjection = false;
|
||||
}
|
||||
@ -93,7 +93,7 @@ bool Foam::InjectionModel<CloudType>::findCellAtPosition
|
||||
(
|
||||
label& celli,
|
||||
label& tetFacei,
|
||||
label& tetPtI,
|
||||
label& tetPti,
|
||||
vector& position,
|
||||
bool errorOnNotFound
|
||||
)
|
||||
@ -107,7 +107,7 @@ bool Foam::InjectionModel<CloudType>::findCellAtPosition
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI
|
||||
tetPti
|
||||
);
|
||||
|
||||
label proci = -1;
|
||||
@ -125,7 +125,7 @@ bool Foam::InjectionModel<CloudType>::findCellAtPosition
|
||||
{
|
||||
celli = -1;
|
||||
tetFacei = -1;
|
||||
tetPtI = -1;
|
||||
tetPti = -1;
|
||||
}
|
||||
|
||||
// Last chance - find nearest cell and try that one - the point is
|
||||
@ -138,7 +138,15 @@ bool Foam::InjectionModel<CloudType>::findCellAtPosition
|
||||
{
|
||||
position += SMALL*(cellCentres[celli] - position);
|
||||
|
||||
if (this->owner().mesh().pointInCell(position, celli))
|
||||
this->owner().mesh().findCellFacePt
|
||||
(
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPti
|
||||
);
|
||||
|
||||
if (celli > 0)
|
||||
{
|
||||
proci = Pstream::myProcNo();
|
||||
}
|
||||
@ -150,7 +158,7 @@ bool Foam::InjectionModel<CloudType>::findCellAtPosition
|
||||
{
|
||||
celli = -1;
|
||||
tetFacei = -1;
|
||||
tetPtI = -1;
|
||||
tetPti = -1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -377,9 +385,7 @@ Foam::InjectionModel<CloudType>::~InjectionModel()
|
||||
|
||||
template<class CloudType>
|
||||
void Foam::InjectionModel<CloudType>::updateMesh()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
{}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
@ -443,7 +449,7 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
|
||||
// tetFace and tetPt
|
||||
label celli = -1;
|
||||
label tetFacei = -1;
|
||||
label tetPtI = -1;
|
||||
label tetPti = -1;
|
||||
|
||||
vector pos = Zero;
|
||||
|
||||
@ -455,7 +461,7 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
|
||||
pos,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI
|
||||
tetPti
|
||||
);
|
||||
|
||||
if (celli > -1)
|
||||
@ -468,7 +474,7 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
|
||||
|
||||
// Create a new parcel
|
||||
parcelType* pPtr =
|
||||
new parcelType(mesh, pos, celli, tetFacei, tetPtI);
|
||||
new parcelType(mesh, pos, celli, tetFacei, tetPti);
|
||||
|
||||
// Check/set new parcel thermo properties
|
||||
cloud.setParcelThermoProperties(*pPtr, dt);
|
||||
@ -563,7 +569,7 @@ void Foam::InjectionModel<CloudType>::injectSteadyState
|
||||
// tetFace and tetPt
|
||||
label celli = -1;
|
||||
label tetFacei = -1;
|
||||
label tetPtI = -1;
|
||||
label tetPti = -1;
|
||||
|
||||
vector pos = Zero;
|
||||
|
||||
@ -575,7 +581,7 @@ void Foam::InjectionModel<CloudType>::injectSteadyState
|
||||
pos,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI
|
||||
tetPti
|
||||
);
|
||||
|
||||
if (celli > -1)
|
||||
@ -585,7 +591,7 @@ void Foam::InjectionModel<CloudType>::injectSteadyState
|
||||
|
||||
// Create a new parcel
|
||||
parcelType* pPtr =
|
||||
new parcelType(mesh, pos, celli, tetFacei, tetPtI);
|
||||
new parcelType(mesh, pos, celli, tetFacei, tetPti);
|
||||
|
||||
// Check/set new parcel thermo properties
|
||||
cloud.setParcelThermoProperties(*pPtr, 0.0);
|
||||
|
||||
@ -160,7 +160,7 @@ protected:
|
||||
(
|
||||
label& celli,
|
||||
label& tetFacei,
|
||||
label& tetPtI,
|
||||
label& tetPti,
|
||||
vector& position,
|
||||
bool errorOnNotFound = true
|
||||
);
|
||||
@ -320,7 +320,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
) = 0;
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -176,7 +176,7 @@ void Foam::KinematicLookupTableInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
label injectorI = 0;
|
||||
@ -193,7 +193,7 @@ void Foam::KinematicLookupTableInjection<CloudType>::setPositionAndCell
|
||||
position = injectors_[injectorI].x();
|
||||
cellOwner = injectorCells_[injectorI];
|
||||
tetFacei = injectorTetFaces_[injectorI];
|
||||
tetPtI = injectorTetPts_[injectorI];
|
||||
tetPti = injectorTetPts_[injectorI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -160,7 +160,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -206,13 +206,13 @@ void Foam::ManualInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
position = positions_[parcelI];
|
||||
cellOwner = injectorCells_[parcelI];
|
||||
tetFacei = injectorTetFaces_[parcelI];
|
||||
tetPtI = injectorTetPts_[parcelI];
|
||||
tetPti = injectorTetPts_[parcelI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -151,7 +151,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -106,7 +106,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
virtual void setProperties
|
||||
|
||||
@ -221,7 +221,7 @@ void Foam::PatchFlowRateInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
patchInjectionBase::setPositionAndCell
|
||||
@ -231,7 +231,7 @@ void Foam::PatchFlowRateInjection<CloudType>::setPositionAndCell
|
||||
position,
|
||||
cellOwner,
|
||||
tetFacei,
|
||||
tetPtI
|
||||
tetPti
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -157,7 +157,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
virtual void setProperties
|
||||
|
||||
@ -176,7 +176,7 @@ void Foam::PatchInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
patchInjectionBase::setPositionAndCell
|
||||
@ -186,7 +186,7 @@ void Foam::PatchInjection<CloudType>::setPositionAndCell
|
||||
position,
|
||||
cellOwner,
|
||||
tetFacei,
|
||||
tetPtI
|
||||
tetPti
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -152,7 +152,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
virtual void setProperties
|
||||
|
||||
@ -153,7 +153,7 @@ void Foam::patchInjectionBase::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
scalar areaFraction = rnd.globalPosition(scalar(0), patchArea_);
|
||||
@ -209,13 +209,13 @@ void Foam::patchInjectionBase::setPositionAndCell
|
||||
// the base point on the face as the tetPt. The tracking will pick
|
||||
// the cell consistent with the motion in the first tracking step
|
||||
tetFacei = mesh.cells()[cellOwner][0];
|
||||
tetPtI = 1;
|
||||
tetPti = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cellOwner = -1;
|
||||
tetFacei = -1;
|
||||
tetPtI = -1;
|
||||
tetPti = -1;
|
||||
|
||||
// Dummy position
|
||||
position = pTraits<vector>::max;
|
||||
@ -225,7 +225,7 @@ void Foam::patchInjectionBase::setPositionAndCell
|
||||
{
|
||||
cellOwner = -1;
|
||||
tetFacei = -1;
|
||||
tetPtI = -1;
|
||||
tetPti = -1;
|
||||
|
||||
// Dummy position
|
||||
position = pTraits<vector>::max;
|
||||
|
||||
@ -121,7 +121,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@ -152,7 +152,7 @@ void Foam::SurfaceFilmModel<CloudType>::inject(TrackData& td)
|
||||
// point as the tetPt. The tracking will pick the cell
|
||||
// consistent with the motion in the first tracking step.
|
||||
const label tetFacei = this->owner().mesh().cells()[celli][0];
|
||||
const label tetPtI = 1;
|
||||
const label tetPti = 1;
|
||||
|
||||
// const point& pos = this->owner().mesh().C()[celli];
|
||||
|
||||
@ -172,7 +172,7 @@ void Foam::SurfaceFilmModel<CloudType>::inject(TrackData& td)
|
||||
pos,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI
|
||||
tetPti
|
||||
);
|
||||
|
||||
// Check/set new parcel thermo properties
|
||||
|
||||
@ -175,7 +175,7 @@ void Foam::ReactingLookupTableInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
label injectorI = 0;
|
||||
@ -192,7 +192,7 @@ void Foam::ReactingLookupTableInjection<CloudType>::setPositionAndCell
|
||||
position = injectors_[injectorI].x();
|
||||
cellOwner = injectorCells_[injectorI];
|
||||
tetFacei = injectorTetFaces_[injectorI];
|
||||
tetPtI = injectorTetPts_[injectorI];
|
||||
tetPti = injectorTetPts_[injectorI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -160,7 +160,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -181,7 +181,7 @@ void Foam::ReactingMultiphaseLookupTableInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
label injectorI = 0;
|
||||
@ -198,7 +198,7 @@ void Foam::ReactingMultiphaseLookupTableInjection<CloudType>::setPositionAndCell
|
||||
position = injectors_[injectorI].x();
|
||||
cellOwner = injectorCells_[injectorI];
|
||||
tetFacei = injectorTetFaces_[injectorI];
|
||||
tetPtI = injectorTetPts_[injectorI];
|
||||
tetPti = injectorTetPts_[injectorI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -162,7 +162,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -176,7 +176,7 @@ void Foam::ThermoLookupTableInjection<CloudType>::setPositionAndCell
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
)
|
||||
{
|
||||
label injectorI = 0;
|
||||
@ -193,7 +193,7 @@ void Foam::ThermoLookupTableInjection<CloudType>::setPositionAndCell
|
||||
position = injectors_[injectorI].x();
|
||||
cellOwner = injectorCells_[injectorI];
|
||||
tetFacei = injectorTetFaces_[injectorI];
|
||||
tetPtI = injectorTetPts_[injectorI];
|
||||
tetPti = injectorTetPts_[injectorI];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -160,7 +160,7 @@ public:
|
||||
vector& position,
|
||||
label& cellOwner,
|
||||
label& tetFacei,
|
||||
label& tetPtI
|
||||
label& tetPti
|
||||
);
|
||||
|
||||
//- Set the parcel properties
|
||||
|
||||
@ -242,7 +242,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const tensor& Q,
|
||||
const vector& v,
|
||||
const vector& a,
|
||||
|
||||
@ -223,7 +223,7 @@ inline Foam::molecule::molecule
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const tensor& Q,
|
||||
const vector& v,
|
||||
const vector& a,
|
||||
@ -236,7 +236,7 @@ inline Foam::molecule::molecule
|
||||
|
||||
)
|
||||
:
|
||||
particle(mesh, position, celli, tetFacei, tetPtI),
|
||||
particle(mesh, position, celli, tetFacei, tetPti),
|
||||
Q_(Q),
|
||||
v_(v),
|
||||
a_(a),
|
||||
|
||||
@ -133,7 +133,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const scalar d,
|
||||
const vector& U
|
||||
);
|
||||
|
||||
@ -48,12 +48,12 @@ inline Foam::solidParticle::solidParticle
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const scalar d,
|
||||
const vector& U
|
||||
)
|
||||
:
|
||||
particle(mesh, position, celli, tetFacei, tetPtI),
|
||||
particle(mesh, position, celli, tetFacei, tetPti),
|
||||
d_(d),
|
||||
U_(U)
|
||||
{}
|
||||
|
||||
@ -192,7 +192,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
@ -202,7 +202,7 @@ public:
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
|
||||
@ -110,10 +110,10 @@ inline Foam::SprayParcel<ParcelType>::SprayParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI
|
||||
const label tetPti
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPtI),
|
||||
ParcelType(mesh, position, celli, tetFacei, tetPti),
|
||||
d0_(this->d()),
|
||||
position0_(position),
|
||||
sigma_(0.0),
|
||||
@ -137,7 +137,7 @@ inline Foam::SprayParcel<ParcelType>::SprayParcel
|
||||
const vector& position,
|
||||
const label celli,
|
||||
const label tetFacei,
|
||||
const label tetPtI,
|
||||
const label tetPti,
|
||||
const label typeId,
|
||||
const scalar nParticle0,
|
||||
const scalar d0,
|
||||
@ -165,7 +165,7 @@ inline Foam::SprayParcel<ParcelType>::SprayParcel
|
||||
position,
|
||||
celli,
|
||||
tetFacei,
|
||||
tetPtI,
|
||||
tetPti,
|
||||
typeId,
|
||||
nParticle0,
|
||||
d0,
|
||||
|
||||
Reference in New Issue
Block a user