31 #ifndef ccmSolutionTable_H 32 #define ccmSolutionTable_H 49 Ostream&
operator<<(Ostream&
os,
const fieldEntry& entry);
50 Ostream&
operator<<(Ostream&
os,
const fieldTable& entry);
51 Ostream&
operator<<(Ostream&
os,
const solutionEntry& entry);
121 matched[matchi++] =
name;
163 const word& shortName,
165 const char*
units =
nullptr 196 const string&
units()
const 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();
label maxCellId() const
The max cell id for the field.
void resize(const label len)
Adjust allocated size of list.
label maxFaceId() const
The max face id for the field.
const string & units() const
The field units.
const iterator & end()
End of list for forward iterators.
Template class for non-intrusive linked lists.
constexpr char nl
The newline '\n' character (0x0a)
An STL-conforming const_iterator.
An STL-conforming iterator.
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.
label maxFaceId() const
The maximum face Id referenced in the list.
fieldTable()
Null construct.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
bool found(const word &key) const
Return true if a list element has a name that matches key.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
A List of wordRe with additional matching capabilities.
solutionEntry(const word &name, const label iteration, const scalar timeValue=0)
Construct from components.
const word & name() const
The field name (PROSTAR short name)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
A ccm field entry with short name, name, maxId and type.
label iteration() const
The solution iteration/timestep.
namesList< solutionEntry > solutionTable
A list of the available fields.
namesList()=default
Default construct.
List< word > findNames(const wordRes &allow, const wordRes &deny=wordRes()) const
Return a list of names in allow-list and not in deny-list.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
typename SLList< solutionEntry >::iterator iterator
A linked-list that is searchable by the 'name()' of the items.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
Ostream & operator<<(Ostream &os, const interfaceEntry &entry)
const string & fullName() const
The full field name.
Non-intrusive singly-linked list.
const word & name() const
The solution name.
typename SLList< solutionEntry >::const_iterator const_iterator
iterator find(const word &key)
Find a list element has a name matching key.
forAllConstIters(mixture.phases(), phase)
A keyword and a list of tokens is an 'entry'.
scalar timeValue() const
The solution time (sec)