ENH: streamLine/wallBoundedStreamLine - minor refactoring to enable new derived functionality

This commit is contained in:
Andrew Heather
2018-03-27 11:00:12 +01:00
parent ee2ca640d4
commit 801fb7bd5f
5 changed files with 204 additions and 121 deletions

View File

@ -63,7 +63,7 @@ class streamLineBase
:
public fvMeshFunctionObject
{
// Private data
protected:
//- Seed set engine
mutable autoPtr<sampledSet> sampledSetPtr_;
@ -71,8 +71,6 @@ class streamLineBase
//- Axis of the sampled points to output
mutable word sampledSetAxis_;
protected:
//- Input dictionary
dictionary dict_;
@ -184,6 +182,16 @@ protected:
//- Do the actual tracking to fill the track data
virtual void track() = 0;
//- Write tracks to file
virtual bool writeToFile();
//- Reset the field names
virtual void resetFieldNames
(
const word& newUName,
const wordList& newFieldNames
);
public:
@ -202,6 +210,15 @@ public:
const dictionary& dict
);
//- Construct from Time and dictionary and list of fields to sample
streamLineBase
(
const word& name,
const Time& runTime,
const dictionary& dict,
const wordList& fieldNames
);
//- Destructor
virtual ~streamLineBase();