openfoam/tutorials/compressible/rhoSimpleFoam/squareBend/system/sampleCellCentres
Mark Olesen b2b77c9c13 ENH: add 'cellCentre' sampledSet (issue #869)
- samples on cell centres, can optionally limit based on a bounding box.
  Can be used, for example, to extract volume fields into CSV format.
2018-06-12 23:22:23 +02:00

35 lines
634 B
C++

// -*- C++ -*-
sampleSets
{
type sets;
libs ("libsampling.so");
log on;
enabled true;
writeControl timeStep;
writeInterval 10;
setFormat vtk;
setFormat csv;
interpolationScheme cell;
// fields ( U p );
fields ( U );
sets
(
centres
{
type cellCentre;
// axis xyz; // default: xyz
// bounds (-0.2 -1 -1) (-0.195 0 1);
bounds (-0.025 -1 -1) (-0.0225 0 1); // single cell layer
}
);
}
// ************************************************************************* //