Go to the documentation of this file.
30 #ifndef ccmSolutionTable_H
31 #define ccmSolutionTable_H
48 Ostream&
operator<<(Ostream& os,
const fieldEntry& entry);
49 Ostream&
operator<<(Ostream& os,
const fieldTable& entry);
50 Ostream&
operator<<(Ostream& os,
const solutionEntry& entry);
80 if (iter().
name() == key)
95 if (iter().
name() == key)
121 matched[matchi++] =
name;
164 const word& shortName,
166 const char*
units =
nullptr
229 if (maxCellId_ < newMax)
239 if (maxFaceId_ < newMax)
254 os <<
entry.name_ <<
" => " <<
entry.fullName_
255 <<
" [" <<
entry.units_.c_str()
256 <<
"] maxCell: " <<
entry.maxCellId_
257 <<
" maxFace: " <<
entry.maxFaceId_;
330 os <<
entry.name_ <<
" =>"
331 <<
" iter: " <<
entry.iter_
332 <<
" time: " <<
entry.time_;
377 const label currMax = iter().maxCellId();
395 const label currMax = iter().maxFaceId();
415 os << static_cast<const namesList<fieldEntry>&>(tbl)
417 <<
"maxCell: " << tbl.maxCellId()
418 <<
" maxFace: " << tbl.maxFaceId();
A keyword and a list of tokens is an 'entry'.
iterator find(const word &key)
Find a list element has a name matching key.
namesList()
Null construct.
label maxFaceId() const
The max face id for the field.
A class for handling words, derived from Foam::string.
const word & name() const
The solution name.
List< word > findNames(const wordRes &white, const wordRes &black=wordRes()) const
Return a list of names matching white-list and not in black-list.
A ccm field entry with short name, name, maxId and type.
label maxCellId() const
The max cell id for the field.
A ccm solution entry with name, iteration and time.
A linked-list that is searchable by the 'name()' of the items.
typename SLList< solutionEntry >::const_iterator const_iterator
label iteration() const
The solution iteration/timestep.
const word & name() const
The field name (PROSTAR short name)
An STL-conforming iterator.
typename SLList< solutionEntry >::iterator iterator
A list of the available fields.
Ostream & operator<<(Ostream &os, const interfaceEntry &entry)
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
const iterator & end()
End of list for forward iterators.
Template class for non-intrusive linked lists.
const string & fullName() const
The full field name.
bool found(const word &key) const
Return true if a list element has a name that matches key.
const string & units() const
The field units.
void units(const std::string &units)
Set the field units.
label maxCellId() const
The maximum cell Id referenced in the list.
fieldEntry(const word &shortName, const string &fullName, const char *units=nullptr)
Construct from components with optional units.
word name(const complex &c)
Return string representation of complex.
fieldTable()
Null construct.
scalar timeValue() const
The solution time (sec)
#define forAllIters(container, iter)
Iterate across all elements in the container object.
solutionEntry(const word &name, const label iteration, const scalar timeValue=0)
Construct from components.
namesList< solutionEntry > solutionTable
forAllConstIters(mixture.phases(), phase)
Non-intrusive singly-linked list.
A List of wordRe with additional matching capabilities.
label maxFaceId() const
The maximum face Id referenced in the list.
void maxFaceId(const int newMax)
Set the max face Id for the field.
void maxCellId(const int newMax)
Set the max cell Id for the field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void setSize(const label newSize)
Alias for resize(const label)
An STL-conforming const_iterator.