Go to the documentation of this file.
41 #ifndef surfaceWriters_writerCaching_H
42 #define surfaceWriters_writerCaching_H
53 namespace surfaceWriters
81 label readPreviousTimes
84 const scalar timeValue
91 bool remove(
const word& fieldName);
123 return max(0, times_.size()-1);
145 const scalar timeValue,
146 const bool geomChanged,
147 const word& fieldName,
148 const word& fieldType,
A class for handling words, derived from Foam::string.
A class for handling file names.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
const dictionary & fieldsDict() const
Get or create the 'fields' information dictionary.
label latestTimeIndex() const
The most current time index.
virtual ~writerCaching()=default
Destructor.
label find_last() const
Locate the last bit set.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
void clear()
Clear all values.
bool update(const fileName &baseDir, const scalar timeValue, const bool geomChanged, const word &fieldName, const word &fieldType, const word &varName=word::null)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const bitSet & geometries() const
Indices in times() when geometry (mesh) has been written.
label latestGeomIndex() const
The most current geometry index.
const scalarList & times() const
The output times for fields.
static const word null
An empty word.
Information for surface writers with collated times.
writerCaching(const word &cacheFileName)
Construct with specified cache name.