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 43 of file surfaceWriter.C.
surfaceWriter | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 54 of file surfaceWriter.C.
|
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 74 of file surfaceWriter.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and MeshedSurfaceProxy< Face >::writeTypes().
Referenced by checkMesh::execute(), surfaceFieldValue::initialise(), and sampledSurfaces::read().
|
static |
Select given a dictionary.
Definition at line 110 of file surfaceWriter.C.
|
pure virtual |
Write fields for a single surface to file.
Implemented in vtkSurfaceWriter, rawSurfaceWriter, proxySurfaceWriter, noSurfaceWriter, foamSurfaceWriter, and ensightSurfaceWriter.
Referenced by Foam::meshCheck::mergeAndWrite(), and surfaceWriter::write().
|
inlinevirtual |
Write fields for a single surface to file.
Reimplemented in vtkSurfaceWriter, rawSurfaceWriter, proxySurfaceWriter, noSurfaceWriter, foamSurfaceWriter, and ensightSurfaceWriter.
Definition at line 151 of file surfaceWriter.H.
References fieldNames, FieldTypeValuesParameter, Foam::FOR_ALL_FIELD_TYPES(), points, and surfaceWriter::write().
|
inline |
Write the surface geometry only.
Definition at line 182 of file surfaceWriter.H.
References FieldTypeValuesParameter, Foam::FOR_ALL_FIELD_TYPES(), points, 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 223 of file surfaceWriter.H.
References args, DeclareFieldTypeValues, fieldNames, FieldTypeValuesParameter, Foam::FOR_ALL_FIELD_TYPES(), points, 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.