Base class for surface writers. More...
Public Member Functions | |
TypeName ("surfaceWriter") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, surfaceWriter, word,(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression),(writeFormat, writeCompression)) | |
declareRunTimeSelectionTable (autoPtr, surfaceWriter, dict,(const dictionary &dict),(dict)) | |
surfaceWriter (const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression) | |
Construct given write options. More... | |
surfaceWriter (const dictionary &dict) | |
Construct from dictionary. More... | |
virtual | ~surfaceWriter () |
Destructor. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const wordList &fieldNames, const bool writePointValues #define FieldTypeValuesConstArg(Type, nullArg)) const =0 |
Write fields for a single surface to file. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const wordList &fieldNames, const bool writePointValues #define FieldTypeValuesConstArg(Type, nullArg)) const |
Write fields for a single surface to file. More... | |
void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces) const |
Write the surface geometry only. More... | |
template<class ... Args> | |
void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool writePointValues, const Args &... args) const |
Write fields for a single surface to file. For use in code where. More... | |
Static Public Member Functions | |
static autoPtr< surfaceWriter > | New (const word &writeType, const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression) |
Select given write options. More... | |
static autoPtr< surfaceWriter > | New (const word &writeType, const dictionary &dict) |
Select given a dictionary. More... | |
Protected Attributes | |
IOstream::streamFormat | writeFormat_ |
Write format. More... | |
IOstream::compressionType | writeCompression_ |
Write compression. More... | |
surfaceWriter | ( | const IOstream::streamFormat | writeFormat, |
const IOstream::compressionType | writeCompression | ||
) |
Construct given write options.
Definition at line 44 of file surfaceWriter.C.
surfaceWriter | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 54 of file surfaceWriter.C.
References surfaceWriter::New().
|
virtual |
Destructor.
Definition at line 148 of file surfaceWriter.C.
TypeName | ( | "surfaceWriter" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
surfaceWriter | , | ||
word | , | ||
(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression) | , | ||
(writeFormat, writeCompression) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
surfaceWriter | , | ||
dict | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
|
static |
Select given write options.
Definition at line 75 of file surfaceWriter.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and MeshedSurfaceProxy< Face >::writeTypes().
Referenced by surfaceFieldValue::initialise(), surfaceWriter::New(), sampledSurfaces::read(), and surfaceWriter::surfaceWriter().
|
static |
Select given a dictionary.
Definition at line 111 of file surfaceWriter.C.
References IOstream::ASCII, IOstream::compressionEnum(), dict, IOstream::formatEnum(), dictionary::found(), dictionary::lookup(), surfaceWriter::New(), and IOstream::UNCOMPRESSED.
|
pure virtual |
Write fields for a single surface to file.
Implemented in proxySurfaceWriter, foamSurfaceWriter, noSurfaceWriter, rawSurfaceWriter, vtkSurfaceWriter, and ensightSurfaceWriter.
Referenced by noSurfaceWriter::write(), and surfaceWriter::write().
|
inlinevirtual |
Write fields for a single surface to file.
Reimplemented in proxySurfaceWriter, foamSurfaceWriter, noSurfaceWriter, rawSurfaceWriter, vtkSurfaceWriter, and ensightSurfaceWriter.
Definition at line 152 of file surfaceWriter.H.
References field(), FieldTypeValuesParameter, Foam::FOR_ALL_FIELD_TYPES(), and surfaceWriter::write().
|
inline |
Write the surface geometry only.
Definition at line 183 of file surfaceWriter.H.
References FieldTypeValuesParameter, Foam::FOR_ALL_FIELD_TYPES(), and surfaceWriter::write().
|
inline |
Write fields for a single surface to file. For use in code where.
the fields that are to be written are known. Takes any number of name, values arguments at the end. E.g.:
write ( Output options "myDirectory", "mySurface",
Geometry pp.localPoints(), pp.localFaces(),
Fields "p", Field<scalar>(pp.size(), ...), "U", Field<vector>(pp.size(), ...) );
Definition at line 224 of file surfaceWriter.H.
References DeclareFieldTypeValues, field(), fieldNames, FieldTypeValuesParameter, Foam::FOR_ALL_FIELD_TYPES(), setWriter::unpackTypeValueSets(), and surfaceWriter::write().
|
protected |
Write format.
Definition at line 61 of file surfaceWriter.H.
|
protected |
Write compression.
Definition at line 64 of file surfaceWriter.H.