Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-6

This commit is contained in:
Henry Weller
2018-12-11 15:48:44 +00:00
2 changed files with 105 additions and 16 deletions

View File

@ -10,12 +10,111 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
nLines 20;
start (0 -4 1e-06); // Ensure that points do not coincide with
end (0 4 1e-06); // mesh faces, but instead lie inside cells
fields (U p);
// Must be last entry
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg" #includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"
fields (U p);
// Streamline direction: forward, backward, both
direction both;
// Select from methods with sub-dictionary settings below
seedMethod lineCell;
// Seeding along a line
lineCell
{
type lineCell; // lineCellFace, lineFace
start (0 -1 1);
end (0 1 1);
}
lineUniform
{
type lineUniform;
start (0 -1 1);
end (0 1 1);
nPoints 50;
}
circleRandom
{
type circleRandom;
centre (0 0 0);
radius 1;
normal (1 0 0);
nPoints 50;
}
arcUniform
{
type arcUniform;
centre (0 0 0);
normal (1 0 0);
radial (0 1 0);
startAngle 0; // rad
endAngle 3.14; // rad
nPoints 50;
}
// Seeding within a volume region
boxUniform
{
type boxUniform;
box (-1 -1 -1) (1 1 1);
nPoints (3 3 3);
}
sphereRandom
{
type sphereRandom;
centre (0 0 0);
radius 1;
nPoints 50;
}
// Seeding at points on a surface
triSurfaceMesh
{
type triSurfaceMesh;
surface <surfaceMeshFile>; // in constant/triSurface directory
}
// Seeding at a boundary
boundaryRandom
{
type boundaryRandom;
patches (<patch1> <patch2>);
nPoints 50;
}
// Seeding a set of points
points
{
type points;
points (
(0 -1 1)
(0 0 1)
(0 1 1)
);
ordered on;
}
boundaryPoints
{
type boundaryPoints;
points (
(0 -1 1)
(0 0 1)
(0 1 1)
);
maxDistance 1;
}
// DO NOT REMOVE from END of file; sets the seedSampleSet
seedSampleSet
{
${$seedMethod};
axis x;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -13,20 +13,10 @@ executeControl writeTime;
writeControl writeTime; writeControl writeTime;
setFormat vtk; setFormat vtk;
direction forward;
lifeTime 10000; lifeTime 10000;
nSubCycle 5; nSubCycle 5;
cloudName particleTracks; cloudName particleTracks;
seedSampleSet
{
type lineUniform;
axis x;
start $start;
end $end;
nPoints $nLines;
}
// ************************************************************************* // // ************************************************************************* //