ENH: streamLine: add bidirectional tracking. Fixes #1466.

This commit is contained in:
mattijs
2019-10-23 16:52:27 +01:00
committed by Andrew Heather
parent 88ebf110ff
commit fb7698f6a1
10 changed files with 184 additions and 46 deletions

View File

@ -45,6 +45,7 @@ SourceFiles
#include "writer.H"
#include "indirectPrimitivePatch.H"
#include "interpolation.H"
#include "Enum.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -65,6 +66,22 @@ class streamLineBase
:
public fvMeshFunctionObject
{
public:
// Public data types
//- Enumeration defining the track direction
enum trackDirType : char
{
FORWARD,
BACKWARD,
BIDIRECTIONAL
};
//- Names for the trackDir
static const Enum<trackDirType> trackDirTypeNames;
protected:
//- Seed set engine
@ -85,8 +102,8 @@ protected:
//- Interpolation scheme to use
word interpolationScheme_;
//- Whether to use +u or -u
bool trackForward_;
//- Whether to use +u or -u or both
trackDirType trackDir_;
//- Maximum lifetime (= number of cells) of particle
label lifeTime_;