ENH: improvements for dataCloud function object (issue #1044)

- now supports a parcel selection mechanism like vtkCloud,
  giving the ability to select a subset of parcels.
  For example, a given stride, or removal of parcels with a small
  diameter.

  Eg,
      dataCloud output Time: 3.2
      Applying parcel filtering to 994 parcels
      - add stride 4
      - subtract field U : (less 0.2)
      After filtering using 214/994 parcels

- add output precision control for dataCloud
This commit is contained in:
Mark Olesen
2018-11-24 13:14:57 +01:00
parent 05353da5f4
commit 58dae2de43
12 changed files with 302 additions and 99 deletions

View File

@ -1,5 +1,6 @@
// -*- C++ -*-
// Minimal example of using the dataCloud function object.
dataCloud
{
type dataCloud;

View File

@ -53,6 +53,7 @@ maxDeltaT 1;
functions
{
#include "dataCloud"
#include "vtkCloud"
#include "vtkWrite"
}

View File

@ -0,0 +1,42 @@
// -*- C++ -*-
dataCloud
{
type dataCloud;
libs ("liblagrangianFunctionObjects.so");
log true;
// Nothing happens before this anyhow
timeStart 0.5;
writeControl writeTime;
// cloud reactingCloud1;
clouds ( ".*" );
// Field to output
field d;
// Optional selection mechanism
selection
{
// Reduced number of output parcels
stride
{
action add;
source stride;
stride 4;
}
Umin
{
action subtract;
source field;
field U;
accept (less 0.2);
}
}
}
// ************************************************************************* //

View File

@ -28,6 +28,7 @@ cloudWrite
//- Output directory name - Default postProcessing
// directory "VTK";
// Optional selection mechanism
selection
{
all