A coordSet(s) writer with suppressed output. More...


Public Member Functions | |
| TypeNameNoDebug ("none") | |
| Runtime type information (no debug) More... | |
| nullWriter () | |
| Default construct. More... | |
| nullWriter (const dictionary &options) | |
| Construct with some output options. More... | |
| nullWriter (const coordSet &coords, const fileName &outputPath, const dictionary &options=dictionary()) | |
| Construct from components. More... | |
| nullWriter (const UPtrList< coordSet > &tracks, const fileName &outputPath, const dictionary &options=dictionary()) | |
| Construct from components. More... | |
| virtual | ~nullWriter () |
| Destructor. More... | |
| virtual bool | enabled () const |
| False: The null writer is never enabled, which lets the caller skip various (possibly expensive) preparatory operations. More... | |
| virtual bool | buffering () const |
| False: no internal buffering possible. More... | |
| virtual bool | needsUpdate () const |
| False: never needs an update. More... | |
| virtual bool | wroteData () const |
| True: like a /dev/null device. More... | |
| virtual void | setCoordinates (const coordSet *) |
| Set coordinates (no-op). More... | |
| virtual void | setCoordinates (const coordSet &) |
| Set coordinates (no-op). More... | |
| virtual void | setTracks (const UPtrList< coordSet > &) |
| Set tracks (no-op). More... | |
| virtual fileName | path () const |
| Characteristic output file name - information only. Always an empty fileName. More... | |
| virtual void | open (const fileName &outputPath) |
| Open for output on specified path, using existing content (no-op) More... | |
| declareCoordSetWriterWriteMethod (label) | |
| declareCoordSetWriterWriteMethod (scalar) | |
| declareCoordSetWriterWriteMethod (vector) | |
| declareCoordSetWriterWriteMethod (sphericalTensor) | |
| declareCoordSetWriterWriteMethod (symmTensor) | |
| declareCoordSetWriterWriteMethod (tensor) | |
Public Member Functions inherited from coordSetWriter | |
| TypeName ("coordSetWriter") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, coordSetWriter, word,(),()) | |
| declareRunTimeSelectionTable (autoPtr, coordSetWriter, wordDict,(const dictionary &writeOptions),(writeOptions)) | |
| coordSetWriter () | |
| Default construct. More... | |
| coordSetWriter (const dictionary &options) | |
| Default construct with specified options. More... | |
| virtual | ~coordSetWriter () |
| Destructor. Calls close() More... | |
| virtual bool | buffering (const bool on) |
| Turn internal buffering on/off (only if supported by the writer) More... | |
| virtual bool | expire () |
| Mark that content changed and the writer will need an update, and set nFields = 0. More... | |
| virtual void | clear () |
| Close any open output, remove coordSet associations and expire the writer. More... | |
| virtual void | setTrackTimes (const UList< scalarField > ×) |
| Set track times. More... | |
| label | numPoints () const |
| The number of associated points (local processor) More... | |
| label | numTracks () const |
| The number of coordinate tracks. More... | |
| bool | hasCoords () const |
| Writer is associated with content. More... | |
| bool | empty () const |
| Writer is not associated with content. More... | |
| bool | is_open () const noexcept |
| Test if outputPath has been set. More... | |
| label | nFields () const noexcept |
| The number of expected output fields. More... | |
| label | nFields (const label n) noexcept |
| Set the number of expected output fields. More... | |
| bool | useTracks () const noexcept |
| Prefer tracks to points during single set writing. More... | |
| bool | useTracks (const bool on) noexcept |
| Enable/disable tracks preference. More... | |
| bool | useTimeDir () const noexcept |
| Should a time directory be spliced into the output path? More... | |
| bool | useTimeDir (const bool on) noexcept |
| Enable/disable use of spliced output path. More... | |
| bool | verbose () const noexcept |
| Get output verbosity. More... | |
| bool | verbose (bool on) noexcept |
| Enable/disable verbose output. More... | |
| bool | hasTime () const |
| True if there is a known time. More... | |
| const word & | timeName () const |
| The current time value/name. More... | |
| scalar | timeValue () const |
| The current time value/name. More... | |
| void | setTime (const instant &inst) |
| Set the current time. More... | |
| void | setTime (scalar timeValue) |
| Set current time from timeValue, auto generating the name. More... | |
| void | setTime (scalar timeValue, const word &timeName) |
| Set current time from timeValue and timeName. More... | |
| void | unsetTime () |
| Clear the current time. More... | |
| virtual void | beginTime (const Time &t) |
| Begin a time-step. More... | |
| virtual void | beginTime (const instant &inst) |
| Begin a time-step. More... | |
| virtual void | endTime () |
| End a time-step. More... | |
| virtual void | open (const coordSet &coords, const fileName &outputPath) |
| Open from components. More... | |
| virtual void | open (const UPtrList< coordSet > &tracks, const fileName &outputPath) |
| Open from components. More... | |
| virtual void | close (bool force=false) |
| Finish output, performing any necessary cleanup. More... | |
| virtual InfoProxy< coordSetWriter > | info () const |
| Return info proxy. More... | |
| virtual fileName | write (const word &fieldName, const Field< label > &field)=0 |
| Write field of label (point data) More... | |
| virtual fileName | write (const word &fieldName, const List< Field< label >> &fieldValues)=0 |
| Write track fields of label (point data) More... | |
| virtual fileName | write (const word &fieldName, const Field< scalar > &field)=0 |
| Write field of scalar (point data) More... | |
| virtual fileName | write (const word &fieldName, const List< Field< scalar >> &fieldValues)=0 |
| Write track fields of scalar (point data) More... | |
| virtual fileName | write (const word &fieldName, const Field< vector > &field)=0 |
| Write field of vector (point data) More... | |
| virtual fileName | write (const word &fieldName, const List< Field< vector >> &fieldValues)=0 |
| Write track fields of vector (point data) More... | |
| virtual fileName | write (const word &fieldName, const Field< sphericalTensor > &field)=0 |
| Write field of sphericalTensor (point data) More... | |
| virtual fileName | write (const word &fieldName, const List< Field< sphericalTensor >> &fieldValues)=0 |
| Write track fields of sphericalTensor (point data) More... | |
| virtual fileName | write (const word &fieldName, const Field< symmTensor > &field)=0 |
| Write field of symmTensor (point data) More... | |
| virtual fileName | write (const word &fieldName, const List< Field< symmTensor >> &fieldValues)=0 |
| Write track fields of symmTensor (point data) More... | |
| virtual fileName | write (const word &fieldName, const Field< tensor > &field)=0 |
| Write field of tensor (point data) More... | |
| virtual fileName | write (const word &fieldName, const List< Field< tensor >> &fieldValues)=0 |
| Write track fields of tensor (point data) More... | |
| template<class Type > | |
| Foam::UPtrList< const Foam::Field< Type > > | repackageFields (const Field< Type > &field) |
| template<class Type > | |
| Foam::UPtrList< const Foam::Field< Type > > | repackageFields (const UList< Field< Type >> &fieldValues) |
Additional Inherited Members | |
Static Public Member Functions inherited from coordSetWriter | |
| static dictionary | formatOptions (const dictionary &dict, const word &formatName, const word &entryName="formatOptions") |
| Same as fileFormats::getFormatOptions. More... | |
| static dictionary | formatOptions (const dictionary &dict, const dictionary &setDict, const word &formatName, const word &entryName="formatOptions") |
| Same as fileFormats::getFormatOptions. More... | |
| static bool | supportedType (const word &writeType) |
| True if New is likely to succeed for this writeType. More... | |
| static autoPtr< coordSetWriter > | New (const word &writeFormat) |
| Return a reference to the selected writer. More... | |
| static autoPtr< coordSetWriter > | New (const word &writeFormat, const dictionary &writeOptions) |
| Return a reference to the selected writer. More... | |
| static word | suffix (const word &fldName, const word &fileExt=word::null) |
| Name suffix based on fieldName (underscore separator) More... | |
| static word | suffix (const wordList &fieldNames, const word &fileExt=word::null) |
| Name suffix based on fieldNames (underscore separator) More... | |
Protected Member Functions inherited from coordSetWriter | |
| void | appendField (const word &fieldName, const Field< label > &vals) |
| void | appendField (const word &fieldName, const Field< scalar > &vals) |
| void | appendField (const word &fieldName, const Field< vector > &vals) |
| void | appendField (const word &fieldName, const Field< sphericalTensor > &vals) |
| void | appendField (const word &fieldName, const Field< symmTensor > &vals) |
| void | appendField (const word &fieldName, const Field< tensor > &vals) |
| void | clearBuffers () |
| Clear out buffering. More... | |
| label | nDataColumns () const |
| The number of buffer data columns, after splitting into components. More... | |
| virtual bool | writeBuffered () |
| Write buffered data. More... | |
| void | writeBufferContents (Ostream &os, const coordSet &coords, const char *sep) const |
| Write buffered data. More... | |
| void | getBufferLine (DynamicList< scalar > &buf, const coordSet &coords, const label pointi) const |
| Get buffered data line (components) More... | |
| fileName | getExpectedPath (const word &fileExt=word::null) const |
| Get expected (characteristic) output file name - information only. More... | |
| fileName | getFieldPrefixedPath (const word &fieldName, const word &fileExt=word::null) const |
| Get field-prefixed output file name. More... | |
| void | checkOpen () const |
| Verify that the outputPath_ has been set or FatalError. More... | |
| virtual bool | merge () const |
| Perform any merging if not already upToDate (parallel) or simply mark as being up-to-date. More... | |
| template<class Type > | |
| fileName | writeTemplate (const word &fieldName, const Field< Type > &values) |
| Dummy templated write operation. More... | |
| template<class Type > | |
| fileName | writeTemplate (const word &fieldName, const List< Field< Type >> &fieldValues) |
| Dummy templated write operation. Multiple tracks. More... | |
| coordSetWriter (const coordSetWriter &)=delete | |
| No copy construct. More... | |
| void | operator= (const coordSetWriter &)=delete |
| No copy assignment. More... | |
Static Protected Member Functions inherited from coordSetWriter | |
| static void | writeLine (Ostream &, const UList< word > &, const char *sep) |
| Write line contents (eg, buffered) More... | |
| static void | writeLine (Ostream &, const UList< scalar > &, const char *sep) |
| Write line contents (eg, buffered) More... | |
| template<class Type > | |
| static UPtrList< const Field< Type > > | repackageFields (const Field< Type > &field) |
| Repackage field into a UPtrList. More... | |
| template<class Type > | |
| static UPtrList< const Field< Type > > | repackageFields (const UList< Field< Type >> &fieldValues) |
| Repackage multiple fields into a UPtrList. More... | |
| template<class Type > | |
| static void | writeTable (Ostream &os, const coordSet &coords, const UList< Type > &values, const char *sep) |
| Write coordinates and values. More... | |
Protected Attributes inherited from coordSetWriter | |
| UPtrList< const coordSet > | coords_ |
| Reference to coordinate set(s) More... | |
| List< scalarField > | trackTimes_ |
| Track times (eg, streamlines), one per coords_ entry. More... | |
| bool | upToDate_ |
| The content is up-to-date? More... | |
| bool | wroteGeom_ |
| Track if geometry has been written since the last open. More... | |
| bool | buffering_ |
| Writer with buffering output. More... | |
| bool | useTracks_ |
| Prefer tracks to points during single set writing. More... | |
| bool | useTimeDir_ |
| Insert additional time sub-directory in the output path. More... | |
| bool | verbose_ |
| Additional output verbosity. More... | |
| label | nFields_ |
| The number of fields. More... | |
| instant | currTime_ |
| The current time value/name. More... | |
| fileName | outputPath_ |
| The full output directory and file (coords) name. More... | |
| DynamicList< word > | labelNames_ |
| PtrDynList< Field< label > > | labelFields_ |
| DynamicList< word > | scalarNames_ |
| PtrDynList< Field< scalar > > | scalarFields_ |
| DynamicList< word > | vectorNames_ |
| PtrDynList< Field< vector > > | vectorFields_ |
| DynamicList< word > | sphericalTensorNames_ |
| PtrDynList< Field< sphericalTensor > > | sphericalTensorFields_ |
| DynamicList< word > | symmTensorNames_ |
| PtrDynList< Field< symmTensor > > | symmTensorFields_ |
| DynamicList< word > | tensorNames_ |
| PtrDynList< Field< tensor > > | tensorFields_ |
A coordSet(s) writer with suppressed output.
Definition at line 48 of file nullCoordSetWriter.H.
| nullWriter | ( | ) |
Default construct.
Definition at line 40 of file nullCoordSetWriter.C.
|
explicit |
Construct with some output options.
Definition at line 46 of file nullCoordSetWriter.C.
| nullWriter | ( | const coordSet & | coords, |
| const fileName & | outputPath, | ||
| const dictionary & | options = dictionary() |
||
| ) |
Construct from components.
Definition at line 53 of file nullCoordSetWriter.C.
| nullWriter | ( | const UPtrList< coordSet > & | tracks, |
| const fileName & | outputPath, | ||
| const dictionary & | options = dictionary() |
||
| ) |
Construct from components.
Definition at line 64 of file nullCoordSetWriter.C.
|
virtual |
Destructor.
Definition at line 76 of file nullCoordSetWriter.C.
| TypeNameNoDebug | ( | "none" | ) |
Runtime type information (no debug)
|
virtual |
False: The null writer is never enabled, which lets the caller skip various (possibly expensive) preparatory operations.
Reimplemented from coordSetWriter.
Definition at line 82 of file nullCoordSetWriter.C.
|
virtual |
False: no internal buffering possible.
Reimplemented from coordSetWriter.
Definition at line 88 of file nullCoordSetWriter.C.
|
virtual |
False: never needs an update.
Reimplemented from coordSetWriter.
Definition at line 94 of file nullCoordSetWriter.C.
|
virtual |
True: like a /dev/null device.
Reimplemented from coordSetWriter.
Definition at line 100 of file nullCoordSetWriter.C.
|
virtual |
Set coordinates (no-op).
Reimplemented from coordSetWriter.
Definition at line 107 of file nullCoordSetWriter.C.
|
virtual |
Set coordinates (no-op).
Reimplemented from coordSetWriter.
Definition at line 114 of file nullCoordSetWriter.C.
Set tracks (no-op).
Reimplemented from coordSetWriter.
Definition at line 121 of file nullCoordSetWriter.C.
|
virtual |
Characteristic output file name - information only. Always an empty fileName.
Implements coordSetWriter.
Definition at line 127 of file nullCoordSetWriter.C.
|
virtual |
Open for output on specified path, using existing content (no-op)
Reimplemented from coordSetWriter.
Definition at line 133 of file nullCoordSetWriter.C.
| declareCoordSetWriterWriteMethod | ( | label | ) |
| declareCoordSetWriterWriteMethod | ( | scalar | ) |
| declareCoordSetWriterWriteMethod | ( | vector | ) |
| declareCoordSetWriterWriteMethod | ( | sphericalTensor | ) |
| declareCoordSetWriterWriteMethod | ( | symmTensor | ) |
| declareCoordSetWriterWriteMethod | ( | tensor | ) |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.