Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
b8e69989
Commit
b8e69989
authored
Aug 25, 2009
by
mattijs
Browse files
debug printing
parent
f8db210a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/postProcessing/functionObjects/field/streamLine/streamLine.C
View file @
b8e69989
...
...
@@ -76,7 +76,7 @@ void Foam::streamLine::track()
}
label
nSeeds
=
returnReduce
(
particles
.
size
(),
sumOp
<
label
>
());
Info
<<
"Seeded "
<<
nSeeds
<<
" particles."
<<
nl
<<
endl
;
<<
" particles."
<<
endl
;
// Read or lookup fields
...
...
@@ -326,6 +326,8 @@ void Foam::streamLine::read(const dictionary& dict)
void
Foam
::
streamLine
::
execute
()
{
// 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;
//
...
...
src/postProcessing/functionObjects/field/streamLine/streamLineParticle.C
View file @
b8e69989
...
...
@@ -199,10 +199,13 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
{
if
(
lifeTime_
==
0
)
{
//Pout<< "Removing stagnant particle:"
// << static_cast<Particle<streamLineParticle> >(*this)
// << " sampled positions:" << sampledPositions_.size()
// << endl;
if
(
debug
)
{
Pout
<<
"streamLineParticle : Removing stagnant particle:"
<<
static_cast
<
Particle
<
streamLineParticle
>
>
(
*
this
)
<<
" sampled positions:"
<<
sampledPositions_
.
size
()
<<
endl
;
}
td
.
keepParticle
=
false
;
}
else
...
...
@@ -211,10 +214,13 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
sampledPositions_
.
append
(
position
());
interpolateFields
(
td
,
position
(),
cell
());
//Pout<< "Removing particle:"
// << static_cast<Particle<streamLineParticle> >(*this)
// << " sampled positions:" << sampledPositions_.size()
// << endl;
if
(
debug
)
{
Pout
<<
"streamLineParticle : Removing particle:"
<<
static_cast
<
Particle
<
streamLineParticle
>
>
(
*
this
)
<<
" sampled positions:"
<<
sampledPositions_
.
size
()
<<
endl
;
}
}
// Transfer particle data into trackData.
...
...
@@ -350,6 +356,7 @@ void Foam::streamLineParticle::hitWallPatch
)
{
// Keep particle
td
.
keepParticle
=
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment