Streamlines can now be tracked in both directions from the set of initial locations. The keyword controlling this behaviour is "direction", which can be set to "forward", "backward" or "both". This new keyword superseeds the "trackForward" entry, which has been retained for backwards compatibility.
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type streamLine;
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
executeControl writeTime;
|
|
writeControl writeTime;
|
|
|
|
setFormat vtk;
|
|
direction forward;
|
|
|
|
lifeTime 10000;
|
|
nSubCycle 5;
|
|
|
|
cloudName particleTracks;
|
|
|
|
seedSampleSet
|
|
{
|
|
type uniform;
|
|
axis x;
|
|
start $start;
|
|
end $end;
|
|
nPoints $nLines;
|
|
}
|
|
|
|
// ************************************************************************* //
|