Go to the documentation of this file.
44 namespace surfaceWriters
79 open(surf, outputPath, parallel);
94 open(
points, faces, outputPath, parallel);
112 Info<<
"Writing points to " << surfaceDir/
"points" <<
endl;
124 if (!
isDir(surfaceDir))
161 Foam::fileName Foam::surfaceWriters::boundaryDataWriter::writeTemplate
163 const word& fieldName,
209 if (this->isPointData())
213 Info<<
"Writing points to "
214 << surfaceDir/
"points" <<
endl;
222 Info<<
"Writing face centres to "
223 << surfaceDir/
"points" <<
endl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
Base class for surface writers.
A class for handling file names.
A primitive field of type <T> with automated input and output.
static fileName envGlobalPath()
Global case (directory) from environment variable.
static std::string path(const std::string &str)
Return directory path name (part before last /)
A class for managing temporary objects.
A List obtained as a section of another List.
A surfaceWriter for outputting to a form useable for the timeVaryingMapped boundary condition....
virtual const faceList & faces() const =0
The faces used for the surface.
Abstract definition of a meshed surface defined by faces and points.
defineTypeName(boundaryDataWriter)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Convenience macros for instantiating surfaceWriter methods.
boundaryDataWriter()
Construct null.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream Info
Information stream (uses stdout - output is on the master only)
Istream and Ostream manipulators taking arguments.
virtual const pointField & points() const =0
The points used for the surface.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
defineSurfaceWriterWriteFields(Foam::surfaceWriters::boundaryDataWriter)
static autoPtr< Time > New()
Construct dummy time, without functionObjects or libraries.
Output to file stream, using an OSstream.
static bool master(const label communicator=0)
Am I the master process.
virtual fileName write()
Write surface geometry to file.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
addToRunTimeSelectionTable(surfaceWriter, boundaryDataWriter, word)
const Field< PointType > & faceCentres() const
Return face centres for patch.
bool writeData(Ostream &os) const
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
A list of faces which address into the list of points.