37 #ifndef Foam_surfaceWriters_nullWriter_H 38 #define Foam_surfaceWriters_nullWriter_H 46 namespace surfaceWriters
Suppresses output of geometry and fields.
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void open(const fileName &outputPath)
Open for output on specified path, using existing surface (no-op)
static bool & parRun() noexcept
Test if this a parallel run.
nullWriter()
Default construct.
Abstract definition of a meshed surface defined by faces and points.
TypeNameNoDebug("none")
Declare type-name, virtual type (without debug switch)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual fileName write()
Write separate surface geometry to file.
declareSurfaceWriterWriteMethod(label)
virtual ~nullWriter()=default
Destructor.
Base class for surface writers.
virtual bool enabled() const
False: The null writer is never enabled, which lets the caller skip various (possibly expensive) prep...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Tensor of scalars, i.e. Tensor<scalar>.
virtual bool needsUpdate() const
False: never needs an update.
virtual bool wroteData() const
True: like a /dev/null device.
virtual void setSurface(const meshedSurf &s, bool parallel)
Change association with a surface (no-op).