31#ifndef ccmSolutionTable_H
32#define ccmSolutionTable_H
49Ostream&
operator<<(Ostream&
os,
const fieldEntry& entry);
50Ostream&
operator<<(Ostream&
os,
const fieldTable& entry);
51Ostream&
operator<<(Ostream&
os,
const solutionEntry& entry);
80 if (iter().
name() == key)
95 if (iter().
name() == key)
121 matched[matchi++] =
name;
163 const word& shortName,
165 const char*
units =
nullptr
228 if (maxCellId_ < newMax)
238 if (maxFaceId_ < newMax)
254 <<
" [" <<
entry.units_.c_str()
255 <<
"] maxCell: " <<
entry.maxCellId_
256 <<
" maxFace: " <<
entry.maxFaceId_;
329 <<
" iter: " <<
entry.iter_
330 <<
" time: " <<
entry.time_;
374 const label currMax = iter().maxCellId();
392 const label currMax = iter().maxFaceId();
412 os << static_cast<const namesList<fieldEntry>&>(tbl)
414 <<
"maxCell: " << tbl.maxCellId()
415 <<
" maxFace: " << tbl.maxFaceId();
Non-intrusive singly-linked list.
An STL-conforming const_iterator.
An STL-conforming iterator.
Template class for non-intrusive linked lists.
const iterator & end()
End of list for forward iterators.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resize(const label len)
Adjust allocated size of list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A ccm field entry with short name, name, maxId and type.
void maxFaceId(const int newMax)
Set the max face Id for the field.
const string & units() const
The field units.
label maxCellId() const
The max cell id for the field.
const word & name() const
The field name (PROSTAR short name)
fieldEntry(const word &shortName, const string &fullName, const char *units=nullptr)
Construct from components with optional units.
label maxFaceId() const
The max face id for the field.
void units(const std::string &units)
Set the field units.
const string & fullName() const
The full field name.
void maxCellId(const int newMax)
Set the max cell Id for the field.
A list of the available fields.
label maxCellId() const
The maximum cell Id referenced in the list.
fieldTable()
Null construct.
label maxFaceId() const
The maximum face Id referenced in the list.
A linked-list that is searchable by the 'name()' of the items.
List< word > findNames(const wordRes &allow, const wordRes &deny=wordRes()) const
Return a list of names in allow-list and not in deny-list.
iterator find(const word &key)
Find a list element has a name matching key.
namesList()=default
Default construct.
typename SLList< T >::const_iterator const_iterator
bool found(const word &key) const
Return true if a list element has a name that matches key.
typename SLList< T >::iterator iterator
A ccm solution entry with name, iteration and time.
const word & name() const
The solution name.
scalar timeValue() const
The solution time (sec)
solutionEntry(const word &name, const label iteration, const scalar timeValue=0)
Construct from components.
label iteration() const
The solution iteration/timestep.
A keyword and a list of tokens is an 'entry'.
A List of wordRe with additional matching capabilities.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &os, const interfaceEntry &entry)
namesList< solutionEntry > solutionTable
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define forAllIters(container, iter)
Iterate across all elements in the container object.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.