mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding bools to turn off initCellFacePt() for reconstruction, post-processing etc.
This commit is contained in:
@ -162,7 +162,8 @@ Foam::Particle<ParticleType>::Particle
|
||||
(
|
||||
const Cloud<ParticleType>& cloud,
|
||||
const vector& position,
|
||||
const label cellI
|
||||
const label cellI,
|
||||
bool doCellFacePt
|
||||
)
|
||||
:
|
||||
cloud_(cloud),
|
||||
@ -175,7 +176,10 @@ Foam::Particle<ParticleType>::Particle
|
||||
origProc_(Pstream::myProcNo()),
|
||||
origId_(cloud_.getNewParticleID())
|
||||
{
|
||||
initCellFacePt();
|
||||
if (doCellFacePt)
|
||||
{
|
||||
initCellFacePt();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -346,7 +346,8 @@ public:
|
||||
(
|
||||
const Cloud<ParticleType>&,
|
||||
const vector& position,
|
||||
const label cellI
|
||||
const label cellI,
|
||||
bool doCellFacePt = true
|
||||
);
|
||||
|
||||
//- Construct from Istream
|
||||
|
||||
@ -68,15 +68,17 @@ public:
|
||||
Particle<passiveParticle>(c, position, cellI, tetFaceI, tetPtI)
|
||||
{}
|
||||
|
||||
//- Construct from components, with searching for tetFace and tetPt
|
||||
//- Construct from components, with searching for tetFace and
|
||||
// tetPt unless disabled by doCellFacePt = false.
|
||||
passiveParticle
|
||||
(
|
||||
const Cloud<passiveParticle>& c,
|
||||
const vector& position,
|
||||
const label cellI
|
||||
const label cellI,
|
||||
bool doCellFacePt = true
|
||||
)
|
||||
:
|
||||
Particle<passiveParticle>(c, position, cellI)
|
||||
Particle<passiveParticle>(c, position, cellI, doCellFacePt)
|
||||
{}
|
||||
|
||||
//- Construct from Istream
|
||||
|
||||
@ -69,7 +69,8 @@ void Foam::reconstructLagrangianPositions
|
||||
(
|
||||
lagrangianPositions,
|
||||
ppi.position(),
|
||||
cellMap[ppi.cell()]
|
||||
cellMap[ppi.cell()],
|
||||
false
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user