ENH: wallBoundedStreamLine: -store one value per location -optional tracklength specification

This commit is contained in:
mattijs
2012-02-07 11:35:18 +00:00
parent 18e2c53007
commit 0dbdea4781
7 changed files with 88 additions and 32 deletions

View File

@ -408,6 +408,7 @@ void Foam::wallBoundedStreamLine::track()
vvInterp,
UIndex, // index of U in vvInterp
trackForward_, // track in +u direction?
trackLength_, // fixed track length
isWallPatch, // which faces are to follow
allTracks_,
@ -518,6 +519,14 @@ void Foam::wallBoundedStreamLine::read(const dictionary& dict)
<< "Illegal value " << lifeTime_ << " for lifeTime"
<< exit(FatalError);
}
trackLength_ = VGREAT;
if (dict.found("trackLength"))
{
dict.lookup("trackLength") >> trackLength_;
Info<< type() << " : fixed track length specified : "
<< trackLength_ << nl << endl;
}
interpolationScheme_ = dict.lookupOrDefault