mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
debug printing
This commit is contained in:
@ -76,7 +76,7 @@ void Foam::streamLine::track()
|
|||||||
}
|
}
|
||||||
label nSeeds = returnReduce(particles.size(), sumOp<label>());
|
label nSeeds = returnReduce(particles.size(), sumOp<label>());
|
||||||
Info<< "Seeded " << nSeeds
|
Info<< "Seeded " << nSeeds
|
||||||
<< " particles." << nl << endl;
|
<< " particles." << endl;
|
||||||
|
|
||||||
|
|
||||||
// Read or lookup fields
|
// Read or lookup fields
|
||||||
@ -326,6 +326,8 @@ void Foam::streamLine::read(const dictionary& dict)
|
|||||||
void Foam::streamLine::execute()
|
void Foam::streamLine::execute()
|
||||||
{
|
{
|
||||||
// const Time& runTime = const_cast<Time&>(obr_.time());
|
// const Time& runTime = const_cast<Time&>(obr_.time());
|
||||||
|
// Pout<< "**streamLine::execute : time:" << runTime.timeName() << endl;
|
||||||
|
// Pout<< "**streamLine::execute : time:" << runTime.timeIndex() << endl;
|
||||||
//
|
//
|
||||||
// bool isOutputTime = false;
|
// bool isOutputTime = false;
|
||||||
//
|
//
|
||||||
|
|||||||
@ -199,10 +199,13 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
|
|||||||
{
|
{
|
||||||
if (lifeTime_ == 0)
|
if (lifeTime_ == 0)
|
||||||
{
|
{
|
||||||
//Pout<< "Removing stagnant particle:"
|
if (debug)
|
||||||
// << static_cast<Particle<streamLineParticle> >(*this)
|
{
|
||||||
// << " sampled positions:" << sampledPositions_.size()
|
Pout<< "streamLineParticle : Removing stagnant particle:"
|
||||||
// << endl;
|
<< static_cast<Particle<streamLineParticle> >(*this)
|
||||||
|
<< " sampled positions:" << sampledPositions_.size()
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
td.keepParticle = false;
|
td.keepParticle = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -211,10 +214,13 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
|
|||||||
sampledPositions_.append(position());
|
sampledPositions_.append(position());
|
||||||
interpolateFields(td, position(), cell());
|
interpolateFields(td, position(), cell());
|
||||||
|
|
||||||
//Pout<< "Removing particle:"
|
if (debug)
|
||||||
// << static_cast<Particle<streamLineParticle> >(*this)
|
{
|
||||||
// << " sampled positions:" << sampledPositions_.size()
|
Pout<< "streamLineParticle : Removing particle:"
|
||||||
// << endl;
|
<< static_cast<Particle<streamLineParticle> >(*this)
|
||||||
|
<< " sampled positions:" << sampledPositions_.size()
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transfer particle data into trackData.
|
// Transfer particle data into trackData.
|
||||||
@ -350,6 +356,7 @@ void Foam::streamLineParticle::hitWallPatch
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Keep particle
|
// Keep particle
|
||||||
|
td.keepParticle = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user