Skip to content
Permalink
Browse files

streamlines: updated packaged function objects for new seeding methods

  • Loading branch information...
Chris Greenshields
Chris Greenshields committed Dec 10, 2018
1 parent 37396d1 commit bd2f275e0934a72eb9ea20d51b33cfa889eb9a9a
@@ -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
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"

fields (U p);

// Must be last entry
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"
// 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;
}

// ************************************************************************* //
@@ -13,20 +13,10 @@ executeControl writeTime;
writeControl writeTime;

setFormat vtk;
direction forward;

lifeTime 10000;
nSubCycle 5;

cloudName particleTracks;

seedSampleSet
{
type lineUniform;
axis x;
start $start;
end $end;
nPoints $nLines;
}

// ************************************************************************* //

0 comments on commit bd2f275

Please sign in to comment.
You can’t perform that action at this time.