- The writers have changed from being a generic state-less set of routines to more properly conforming to the normal notion of a writer. These changes allow us to combine output fields (eg, in a single VTK/vtp file for each timestep). Parallel data reduction and any associated bookkeeping is now part of the surface writers. This improves their re-usability and avoids unnecessary and premature data reduction at the sampling stage. It is now possible to have different output formats on a per-surface basis. - A new feature of the surface sampling is the ability to "store" the sampled surfaces and fields onto a registry for reuse by other function objects. Additionally, the "store" can be triggered at the execution phase as well
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#include "scalar.H"
|
|
#include "indirectPrimitivePatch.H"
|
|
#include "writer.H"
|
|
|
|
namespace Foam
|
|
{
|
|
class polyMesh;
|
|
class pointSet;
|
|
class faceSet;
|
|
class cellSet;
|
|
class fileName;
|
|
class polyMesh;
|
|
class surfaceWriter;
|
|
|
|
void printMeshStats(const polyMesh& mesh, const bool allTopology);
|
|
|
|
//- Generate merged surface on master and write. Needs input patch
|
|
// to be of mesh faces.
|
|
void mergeAndWrite
|
|
(
|
|
const polyMesh& mesh,
|
|
surfaceWriter& writer,
|
|
const word& name,
|
|
const indirectPrimitivePatch& setPatch,
|
|
const fileName& outputDir
|
|
);
|
|
|
|
//- Write vtk representation of (assembled) faceSet to surface file in
|
|
// postProcessing/ directory
|
|
void mergeAndWrite(surfaceWriter& writer, const faceSet& set);
|
|
|
|
//- Write vtk representation of (assembled) cellSet to surface file in
|
|
// postProcessing/ directory
|
|
void mergeAndWrite(surfaceWriter& writer, const cellSet& set);
|
|
|
|
//- Write vtk representation of (assembled) pointSet to 'set' file in
|
|
// postProcessing/ directory
|
|
void mergeAndWrite(const writer<scalar>& writer, const pointSet& set);
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|